hobofan / cargo-nono

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

Build Failure #69

Open tadeohepperle opened 8 months ago

tadeohepperle commented 8 months ago

I tried to build cargo nono, but got these errors (target: x86_64-unknown-linux-gnu):

error[E0433]: failed to resolve: could not find `quote` in `__private`
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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: found an item that was configured out
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
   |
11 | pub extern crate quote;
   |                  ^^^^^
   = note: the item is gated behind the `printing` feature
   = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check.rs:52:37
   |
52 |         let not_ident: syn::Ident = syn::parse_quote!(not);
   |                                     ^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
   |
note: found an item that was configured out
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
   |
11 | pub extern crate quote;
   |                  ^^^^^
   = note: the item is gated behind the `printing` feature
   = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check.rs:53:41
   |
53 |         let feature_ident: syn::Ident = syn::parse_quote!(feature);
   |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
   |
note: found an item that was configured out
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
   |
11 | pub extern crate quote;
   |                  ^^^^^
   = note: the item is gated behind the `printing` feature
   = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check.rs:54:47
   |
54 |         let equal_punct: proc_macro2::Punct = syn::parse_quote!(=);
   |                                               ^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
   |
note: found an item that was configured out
  --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
   |
11 | pub extern crate quote;
   |                  ^^^^^
   = note: the item is gated behind the `printing` feature
   = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check_source.rs:180:44
    |
180 |             let no_std_ident: syn::Ident = syn::parse_quote!(no_std);
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
    |
note: found an item that was configured out
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
    |
11  | pub extern crate quote;
    |                  ^^^^^
    = note: the item is gated behind the `printing` feature
    = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check_source.rs:202:33
    |
202 |     let std_ident: syn::Ident = syn::parse_quote!(std);
    |                                 ^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
    |
note: found an item that was configured out
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
    |
11  | pub extern crate quote;
    |                  ^^^^^
    = note: the item is gated behind the `printing` feature
    = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check_source.rs:222:45
    |
222 |         let always_no_std: syn::Attribute = syn::parse_quote!(#![no_std]);
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
    |
note: found an item that was configured out
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
    |
11  | pub extern crate quote;
    |                  ^^^^^
    = note: the item is gated behind the `printing` feature
    = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `quote` in `__private`
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check_source.rs:225:51
    |
225 |             let not_test_no_std: syn::Attribute = syn::parse_quote!(#![cfg_attr(not(test), no_std)]);
    |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `quote` in `__private`
    |
note: found an item that was configured out
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/export.rs:11:18
    |
11  | pub extern crate quote;
    |                  ^^^^^
    = note: the item is gated behind the `printing` feature
    = note: this error originates in the macro `syn::parse_quote` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `clone` found for enum `UseTree` in the current scope
   --> /home/tadeo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-nono-0.1.9/src/check_source.rs:210:55
    |
210 |                         item_tree: use_statement.tree.clone(),
    |                                                       ^^^^^ method not found in `UseTree`
h4n0 commented 2 weeks ago

ran into the same issue, any workarounds?

h4n0 commented 2 weeks ago

workaround:

cargo install cargo-nono --locked