Replies: 2 comments 1 reply
-
Reproduce: WORKSPACE.bazel
Compile tokio
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I found that as a workaround, you can do
where For my purposes (compiling tokio-console), I also needed to add
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to compile tokio with
--cfg tokio_unstable
with rust rules. This works fine by adding it in thecrate.annotations
rustflag options. It also seems to get picked up by when compiling because I see that the compiler invocations have (bazel build -s --config local @crate_index//:tokio
). But when compiling I get an erroruse of undeclared crate or module tracing
indicating that the tracing dependency was not added when compiling. In the bazel lock file I see this:How can I instruct bazel to add the tracing dependency when compiling?
I will try to come up with a small repro for this.
Beta Was this translation helpful? Give feedback.
All reactions