hobofan / cargo-nono

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

Build failure without lockfile #67

Open steffahn opened 1 year ago

steffahn commented 1 year ago

I'm getting a build failure when trying to build without a lockfile.

error[E0433]: failed to resolve: could not find `quote` in `__private`
  --> /home/frank/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-nono-0.1.9/src/check.rs:24:40
   |
24 |         let cfg_attr_path: syn::Path = syn::parse_quote!(cfg_attr);
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
   |
   = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

(and a bunch more similar errors)

I haven't investigated anything yet, but at a first glance, it looks like presumably some dependency used to imply the quote feature of syn which appears to be used by cargo-nono even though the Cargo.toml does not specify it; in that case, probably just the quote feature would be needed in the Cargo.toml file. I might come around to test this hypothesis within the next days.

matthias-stemmler commented 1 year ago

It turned out that the printing and clone-impls features were missing. I created #68 for the fix.