GithubHelp home page GithubHelp logo

While following the tutorial I get "can't find crate for `test`" while compiling for unit test execution about rust-raspberrypi-os-tutorials HOT 2 CLOSED

rust-embedded avatar rust-embedded commented on June 5, 2024
While following the tutorial I get "can't find crate for `test`" while compiling for unit test execution

from rust-raspberrypi-os-tutorials.

Comments (2)

andre-richter avatar andre-richter commented on June 5, 2024

Hi,

specific to my tutorial, you would get this whenever rustc comes across a #[test] and not a #[test_case] as it is emitted by the macro (https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials/blob/master/13_integrated_testing/test-macros/src/lib.rs#L22).
I had this case while writing the tutorial and couldn't figure out whats going on. Turned out a third-party dependency that I pulled in through cargo had a macro that not only emitted code, but also a unit-test with it (it was the tock-registers). That was very hard to find.

I can't tell anything about building std with cargo, since I haven't touched that yet. Until now, just using the precompiled std for aarch64-unknown-none-softfloat is sufficient.

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on June 5, 2024

Closing this for now since no action on the issue.

Please reopen for follow-up questions.

from rust-raspberrypi-os-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.