-
Notifications
You must be signed in to change notification settings - Fork 177
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
Rust bindings reference non-existent "std" feature #186
Comments
And the problem is... But on a serious note, Cargo.toml is not the only way to engage a feature, and the referred line is a conscious choice in the context. If you want to complain that you can't control it, then you have to recognize that you couldn't do so in the previous version either. In other words, there are no observable changes for current users. That's the point. But there is new possibility to compile blst for bare-metal platforms for new users. |
Sorry, I don't quite understand? |
Again, there are no observable changes for current users. In other words, if you had a reference to blst 0.3.10, then no modifications shall be needed upon update, new version shall keep working exactly as it was before. If you're disputing this assertion, then tell what is it that stopped working or changed behaviour. |
I don't know what you're trying to say to be honest. If you run warning: unexpected `cfg` condition value: `std`
--> src/lib.rs:5:17
|
5 | #![cfg_attr(not(feature = "std"), no_std)]
| ^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `default`, `force-adx`, `no-threads`, `portable`, `serde`, and `serde-secret`
= help: consider adding `std` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition value: `std`
--> src/lib.rs:20:7
|
20 | #[cfg(feature = "std")]
| ^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `default`, `force-adx`, `no-threads`, `portable`, `serde`, and `serde-secret`
= help: consider adding `std` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
... This is simply fixed by adding I was just making this known to you, as this feature is completely unavailable for Cargo users if this is not done. |
The goal was to arrange it so that "before" and "after" looks exactly the same on before-supported platforms. There was no std option before and you still can't specify it after. And no matter what you do on the cargo command line, the outcome of the compilation on before-supported platform would be the same in respect to the feature in question even after.
And this is intentional. It's not an option we provide, but a way to support |
lib.rs:
blst/bindings/rust/src/lib.rs
Line 5 in 78fee18
But no
std
feature is declared inCargo.toml
.The text was updated successfully, but these errors were encountered: