hobofan / cargo-nono

Check your crate for (possible) no_std compatibility
Apache License 2.0
209 stars 12 forks source link

Improved ergonomics of CLI `--package` selector #58

Closed regexident closed 3 years ago

regexident commented 4 years ago

This fixes https://github.com/hobofan/cargo-nono/issues/55 and https://github.com/hobofan/cargo-nono/issues/56 by adding support for:

cargo nono check --package <package name>

replacing the tedious:

cargo nono check --package "<package name> <package version> (<package url>)"

It also adds a ⚠️ to make the warning stand out more.

regexident commented 4 years ago

Selecting packages by name is nice and all, but why not also detect a package when running from its sub-directory?

As such this PR now also allows for omitting the --package foo entirely, when running from the foo package's directory. 💪🏻

hobofan commented 3 years ago

Thanks you so much for the PR! It originaly had this behaviour but regressed at some point. The automatic package detection is a cool feature!

I'll see that I can push out a new release with this ASAP.

hobofan commented 3 years ago

Released as 0.1.9 🎉

regexident commented 3 years ago

Awesome, thanks!