-
Notifications
You must be signed in to change notification settings - Fork 746
Generated core bindings use types beyond MSRV #2324
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
Comments
I'm not actually sure if the MSRV is supposed to be 1) the minimum version of Rust that can build |
Seems related to #2277 |
Ah I see the This is probably not an issue then? Maybe just improving the MSRV statement to include some references to |
**Description** - Increase MSRV to `1.64.0` and add README line stating MSRV. - Using the `bindgen::Builder::rust_target` function, set the rustc version required to `1.64.0` to access FFI types from `core`. **Motivation** Previous MSRV bump to `1.57.0` failed because `bindgen` generated bindings which required `1.64.0`. See issue rust-lang/rust-bindgen#2324 for slightly more context. **Testing Done** - `cargo +1.57.0 build` fails - `cargo +1.64.0 build` succeeds
If you set the rust target to anything below 1.64.0, bindgen will use The MSRV is the minimum version that can be used to compile bindgen. However, bindgen itself can produce code for targets below the current MSRV. Maybe we should clarify this in the readme. |
Fixed via: d86db07 Thanks for the report and please feel free to reopen if you think this is not an adequate solution |
**Description** - Increase MSRV to `1.64.0` and add README line stating MSRV. - Using the `bindgen::Builder::rust_target` function, set the rustc version required to `1.64.0` to access FFI types from `core`. **Motivation** Previous MSRV bump to `1.57.0` failed because `bindgen` generated bindings which required `1.64.0`. See issue rust-lang/rust-bindgen#2324 for slightly more context. **Testing Done** - `cargo +1.57.0 build` fails - `cargo +1.64.0 build` succeeds
**Description** - Increase MSRV to `1.64.0` and add README line stating MSRV. - Using the `bindgen::Builder::rust_target` function, set the rustc version required to `1.64.0` to access FFI types from `core`. **Motivation** Previous MSRV bump to `1.57.0` failed because `bindgen` generated bindings which required `1.64.0`. See issue rust-lang/rust-bindgen#2324 for slightly more context. **Testing Done** - `cargo +1.57.0 build` fails - `cargo +1.64.0 build` succeeds
Input C/C++ Header
In
/tmp/bindgen-msrv/vendor/header.h
:Bindgen Invocation
Actual Results
In
/tmp/bindgen-msrv/target/debug/build/bindgen-msrv-76670de3f461768b/out/bindings.rs
:and while running
cargo +1.57.0 build
:core::ffi::c_uchar
was introduced in Rust version 1.64.0.Expected Results
Should compile without errors.
The text was updated successfully, but these errors were encountered: