Skip to content

Commit

Permalink
Bump to 2021 edition
Browse files Browse the repository at this point in the history
This will make it possible to introduce C-string literals and possibly other language features in separate PRs
  • Loading branch information
nyurik authored and emilio committed Nov 29, 2024
1 parent 887dc73 commit d2e30fb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bindgen-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository = "https://github.com/rust-lang/rust-bindgen"
documentation = "https://docs.rs/bindgen"
homepage = "https://rust-lang.github.io/rust-bindgen/"
version = "0.70.1"
edition = "2018"
edition = "2021"
rust-version = "1.70.0"

[[bin]]
Expand Down
2 changes: 1 addition & 1 deletion bindgen-integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "A package to test various bindgen features"
version = "0.1.0"
authors = ["Emilio Cobos Álvarez <emilio@crisal.io>"]
publish = false
edition = "2018"
edition = "2021"
build = "build.rs"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bindgen-integration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ fn test_matching_with_rename() {

#[test]
fn test_macro_customintkind_path() {
let v: &std::any::Any = &bindings::TESTMACRO_CUSTOMINTKIND_PATH;
let v: &dyn std::any::Any = &bindings::TESTMACRO_CUSTOMINTKIND_PATH;
assert!(v.is::<MacroInteger>())
}

Expand Down
2 changes: 1 addition & 1 deletion bindgen-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bindgen-tests"
edition = "2018"
edition = "2021"
version = "0.1.0"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion bindgen-tests/tests/expectations/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
"Emilio Cobos Álvarez <emilio@crisal.io>",
"The Servo project developers",
]
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bindgen-tests/tests/quickchecking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Bindgen property tests with quickcheck. Generate random valid C c
version = "0.0.0"
publish = false
rust-version = "1.70"
edition = "2018"
edition = "2021"

[lib]
name = "quickchecking"
Expand Down
2 changes: 1 addition & 1 deletion bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repository = "https://github.com/rust-lang/rust-bindgen"
documentation = "https://docs.rs/bindgen"
homepage = "https://rust-lang.github.io/rust-bindgen/"
version = "0.70.1"
edition = "2018"
edition = "2021"
build = "build.rs"
# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml
rust-version = "1.70.0"
Expand Down

0 comments on commit d2e30fb

Please sign in to comment.