Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of undeclared crate or module proc_macro #298

Closed
dblock opened this issue Sep 3, 2021 · 1 comment
Closed

use of undeclared crate or module proc_macro #298

dblock opened this issue Sep 3, 2021 · 1 comment

Comments

@dblock
Copy link

dblock commented Sep 3, 2021

Forgive me if this is a noob question, could someone please help me with idanarye/rust-typed-builder#57? I am not sure whether the issue is in proc_macro2 or in rust-typed-builder, or how to fix this.

Trying to use cargo-publish-all --dry-run in lycheeverse/lychee#304 seeing this:

rustc --edition=2018 --crate-name typed_builder /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/typed-builder-0.9.0/src/lib.rs --color always --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=72ebad225c590f6d -C extra-filename=-72ebad225c590f6d --out-dir /home/ubuntu/source/lychee/dblock-lychee/target/package/lychee-lib-0.7.1/target/debug/deps -L dependency=/home/ubuntu/source/lychee/dblock-lychee/target/package/lychee-lib-0.7.1/target/debug/deps --extern proc_macro2=/home/ubuntu/source/lychee/dblock-lychee/target/package/lychee-lib-0.7.1/target/debug/deps/libproc_macro2-6f5ad8ea0bdf5b2f.rlib --extern quote=/home/ubuntu/source/lychee/dblock-lychee/target/package/lychee-lib-0.7.1/target/debug/deps/libquote-9b9b7563b6863207.rlib --extern syn=/home/ubuntu/source/lychee/dblock-lychee/target/package/lychee-lib-0.7.1/target/debug/deps/libsyn-c3d8aa50fc12e127.rlib --cap-lints allow
   Verifying lychee-lib
error[E0433]: failed to resolve: use of undeclared crate or module `proc_macro`
   --> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/typed-builder-0.9.0/src/lib.rs:138:36
    |
138 | pub fn derive_typed_builder(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    |                                    ^^^^^^^^^^ use of undeclared crate or module `proc_macro`

error[E0433]: failed to resolve: use of undeclared crate or module `proc_macro`
   --> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/typed-builder-0.9.0/src/lib.rs:138:64
    |
138 | pub fn derive_typed_builder(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    |                                                                ^^^^^^^^^^ use of undeclared crate or module `proc_macro`

Ideas?

@dblock
Copy link
Author

dblock commented Sep 3, 2021

Fixed via idanarye/rust-typed-builder#57

@dblock dblock closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant