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

recognize .cargo/config.toml #152

Open
xxchan opened this issue Feb 10, 2023 · 0 comments
Open

recognize .cargo/config.toml #152

xxchan opened this issue Feb 10, 2023 · 0 comments

Comments

@xxchan
Copy link

xxchan commented Feb 10, 2023

I have

[target.'cfg(all())']
rustflags = [
    "--cfg",
    "tokio_unstable"
]

in the project's .cargo/config.toml. But it seems this is not recognized by cargo-udeps, unlike other cargo commands. 🤔 After manually setting export RUSTFLAGS="--cfg tokio_unstable" it works fine.

It causes errors like this are produced:

error[E0433]: failed to resolve: use of undeclared crate or module `tracing`
   --> /Users/xxchan/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/time/interval.rs:403:20
    |
403 |     resource_span: tracing::Span,
    |                    ^^^^^^^ use of undeclared crate or module `tracing`
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