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
The build script uses env!("CARGO_PKG_VERSION"), relying on that variable being set by cargo when the build script is compiled. However, the docs state that inputs to the build script are passed at run time (of the build script):
When the build script is run, there are a number of inputs to the build script, all passed in the form of environment variables.
(emphasis mine)
In particular, that is for example what the bazel wrapper around rust rules expects, so that any crate depending on this one will fail to build with bazel.
The text was updated successfully, but these errors were encountered:
Some time ago I've opened #17. I'm currently using that as a workaround, adding to our Cargo.toml (that is used as a base for generating the bazel build configuration) this snippet:
The build script uses
env!("CARGO_PKG_VERSION")
, relying on that variable being set bycargo
when the build script is compiled. However, the docs state that inputs to the build script are passed at run time (of the build script):(emphasis mine)
In particular, that is for example what the bazel wrapper around rust rules expects, so that any crate depending on this one will fail to build with bazel.
The text was updated successfully, but these errors were encountered: