Giter Site home page Giter Site logo

Comments (5)

hmvp avatar hmvp commented on September 21, 2024

Cargo modules only shows test modules if you enable conditional modules. If you don't use that option it won't show them. It still analyses them though.

I assume that this suits your needs. However it might be an idea to distinguish between test only and other conditional modules... In case someone has a lot of those...

from cargo-modules.

asomers avatar asomers commented on September 21, 2024

Close, but not quite. Cargo modules still doesn't show a module if it's imported like this:

#[cfg(not(test))]
use something;

from cargo-modules.

asomers avatar asomers commented on September 21, 2024

In the latest build (of the edition-2018-graph-with-dependencies branch) conditional modules seem to be enabled by default, with no way to disable them.

I would suggest that the best behavior would be to display the modules in non-test mode, allowing the user to set any crate features on the command line.

from cargo-modules.

muhuk avatar muhuk commented on September 21, 2024

This seems to be something I have overlooked. Could you drop a note on the patch, I'll try to fix it.

from cargo-modules.

regexident avatar regexident commented on September 21, 2024

This should now be fixed with #66 having been merged. 🎉 😃
(The release still needs a it more work. If you're feeling lucky you can install from source and give it a try, though.)

from cargo-modules.

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.