You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading the deps for the hello_cargo_library example to log = "0.4.8" and fern = "0.6.0" results in:
error[E0425]: cannot find function set_boxed_logger in module log
--> cargo/vendor/fern-0.6.0/src/builders.rs:607:14
|
607 | log::set_boxed_logger(log)?;
| ^^^^^^^^^^^^^^^^ not found in log
According to the log doc, "The set_boxed_logger function is available with the std Cargo feature". Ok, cargo/vendor/log-0.4.8/BUILD.bazel has:
crate_features = [
"std",
],
Which looks about right to me (who have no experience with Rust but a fair amount of Bazel experience). So I added the same attrib to the root BUILD.bazel file; this had no discernable effect. According to the cargo-raze docs, I should see -cfg feature="std" in the compile command, but I don't. So I tried to use rustc_flags, but that attrib seems to have no effect, no matter what I put in it.
I hope this is resolvable, I'd really like to use rules_rust to bazelize a library.
Upgrading the deps for the hello_cargo_library example to log = "0.4.8" and fern = "0.6.0" results in:
error[E0425]: cannot find function
set_boxed_logger
in modulelog
--> cargo/vendor/fern-0.6.0/src/builders.rs:607:14
|
607 | log::set_boxed_logger(log)?;
| ^^^^^^^^^^^^^^^^ not found in
log
According to the log doc, "The set_boxed_logger function is available with the std Cargo feature". Ok, cargo/vendor/log-0.4.8/BUILD.bazel has:
crate_features = [
"std",
],
Which looks about right to me (who have no experience with Rust but a fair amount of Bazel experience). So I added the same attrib to the root BUILD.bazel file; this had no discernable effect. According to the cargo-raze docs, I should see
-cfg feature="std"
in the compile command, but I don't. So I tried to use rustc_flags, but that attrib seems to have no effect, no matter what I put in it.I hope this is resolvable, I'd really like to use rules_rust to bazelize a library.
Thanks, Gregg
The compile command:
The text was updated successfully, but these errors were encountered: