Raise required compiler to rust 1.67

Required by recent versions of the cc crate.

    error: package `cc v1.0.106` cannot be built because it requires rustc 1.67 or newer, while the currently active rustc version is 1.63.0
This commit is contained in:
David Tolnay 2024-07-08 20:31:19 -07:00
parent afd4aa3f3d
commit 3ea1e9f654
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
13 changed files with 17 additions and 13 deletions

View File

@ -25,8 +25,7 @@ jobs:
- rust: nightly
- rust: beta
- rust: stable
- rust: 1.63.0
- rust: 1.64.0
- rust: 1.67.0
- rust: 1.70.0
- rust: 1.74.0
- name: Cargo on macOS
@ -65,7 +64,7 @@ jobs:
shell: bash
- run: cargo run --manifest-path demo/Cargo.toml
- run: cargo test --workspace ${{steps.testsuite.outputs.exclude}}
if: matrix.rust != '1.63.0' && matrix.rust != '1.64.0'
if: matrix.rust != '1.67.0'
- run: cargo check --no-default-features --features alloc
env:
RUSTFLAGS: --cfg compile_error_if_std ${{env.RUSTFLAGS}}

View File

@ -12,7 +12,7 @@ keywords = ["ffi", "c++"]
license = "MIT OR Apache-2.0"
links = "cxxbridge1"
repository = "https://github.com/dtolnay/cxx"
rust-version = "1.63"
rust-version = "1.67"
[features]
default = ["std", "cxxbridge-flags/default"] # c++11

View File

@ -24,7 +24,7 @@ cxx = "1.0"
cxx-build = "1.0"
```
*Compiler support: requires rustc 1.63+ and c++11 or newer*<br>
*Compiler support: requires rustc 1.67+ and c++11 or newer*<br>
*[Release notes](https://github.com/dtolnay/cxx/releases)*
<br>

View File

@ -37,8 +37,8 @@ fn main() {
println!("cargo:rustc-check-cfg=cfg(skip_ui_tests)");
}
if rustc.minor < 63 {
println!("cargo:warning=The cxx crate requires a rustc version 1.63.0 or newer.");
if rustc.minor < 67 {
println!("cargo:warning=The cxx crate requires a rustc version 1.67.0 or newer.");
println!(
"cargo:warning=You appear to be building with: {}",
rustc.version,

View File

@ -7,7 +7,7 @@ description = "Compiler configuration of the `cxx` crate (implementation detail)
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/cxx"
rust-version = "1.63"
rust-version = "1.67"
[features]
default = [] # c++11

View File

@ -11,7 +11,7 @@ homepage = "https://cxx.rs"
keywords = ["ffi", "build-dependencies"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/cxx"
rust-version = "1.63"
rust-version = "1.67"
[features]
parallel = ["cc/parallel"]

View File

@ -58,6 +58,7 @@
clippy::inherent_to_string,
clippy::into_iter_without_iter,
clippy::items_after_statements,
clippy::manual_let_else,
clippy::match_bool,
clippy::match_on_vec_items,
clippy::match_same_arms,

View File

@ -10,7 +10,7 @@ exclude = ["build.rs"]
keywords = ["ffi"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/cxx"
rust-version = "1.63"
rust-version = "1.67"
[dependencies]
codespan-reporting = "0.11.1"

View File

@ -20,6 +20,7 @@
clippy::inherent_to_string,
clippy::into_iter_without_iter,
clippy::items_after_statements,
clippy::manual_let_else,
clippy::match_bool,
clippy::match_on_vec_items,
clippy::match_same_arms,

View File

@ -10,7 +10,7 @@ homepage = "https://cxx.rs"
keywords = ["ffi"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/cxx"
rust-version = "1.63"
rust-version = "1.67"
[lib]
proc-macro = true

View File

@ -9,6 +9,7 @@
clippy::into_iter_without_iter,
clippy::items_after_statements,
clippy::large_enum_variant,
clippy::manual_let_else,
clippy::match_bool,
clippy::match_same_arms,
clippy::module_name_repetitions,

View File

@ -18,7 +18,7 @@
//!
//! <br>
//!
//! *Compiler support: requires rustc 1.63+ and c++11 or newer*<br>
//! *Compiler support: requires rustc 1.67+ and c++11 or newer*<br>
//! *[Release notes](https://github.com/dtolnay/cxx/releases)*
//!
//! <br>
@ -400,6 +400,7 @@
clippy::or_fun_call,
clippy::ptr_arg,
clippy::ptr_as_ptr,
clippy::ptr_cast_constness,
clippy::toplevel_ref_arg,
clippy::transmute_undefined_repr, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/8417
clippy::uninlined_format_args,

View File

@ -4,8 +4,9 @@
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::float_cmp,
clippy::needless_pass_by_value,
clippy::needless_pass_by_ref_mut,
clippy::needless_pass_by_value,
clippy::ptr_cast_constness,
clippy::unit_cmp,
clippy::unseparated_literal_suffix
)]