Skip to content

Commit fa8964f

Browse files
committed
Upgrade bindgen
1 parent 73179c8 commit fa8964f

6 files changed

Lines changed: 30 additions & 228 deletions

File tree

.github/workflows/rust-bindings.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
- name: Set up Rust
3434
uses: dtolnay/rust-toolchain@master
3535
with:
36-
toolchain: "1.71.1"
37-
targets: wasm32-wasi
36+
toolchain: stable
37+
targets: wasm32-wasip1
3838
- uses: actions/cache@v4
3939
with:
4040
path: |
@@ -65,7 +65,7 @@ jobs:
6565
- name: Set up Rust
6666
uses: dtolnay/rust-toolchain@master
6767
with:
68-
toolchain: "1.71.1"
68+
toolchain: stable
6969
components: clippy, rustfmt
7070
- uses: actions/cache@v4
7171
with:
@@ -100,7 +100,7 @@ jobs:
100100
run: bundle exec rake cargo:build
101101
- uses: dtolnay/rust-toolchain@master
102102
with:
103-
toolchain: nightly-2023-10-24
103+
toolchain: stable
104104
target: "x86_64-unknown-linux-gnu"
105105
components: "rust-src"
106106
- name: Test with sanitizer
@@ -126,7 +126,7 @@ jobs:
126126
# uses: dtolnay/rust-toolchain@master
127127
# with:
128128
# toolchain: "1.71.1"
129-
# targets: wasm32-wasi
129+
# targets: wasm32-wasip1
130130
# - uses: actions/cache@v4
131131
# with:
132132
# path: |

rust/Cargo.lock

Lines changed: 19 additions & 219 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ruby-prism-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ build = "build/main.rs"
2222
include = ["src/", "build/", "Cargo.toml", "Cargo.lock", "README.md", "vendor"]
2323

2424
[build-dependencies]
25-
bindgen = "0.66"
25+
bindgen = "0.72"
2626
cc = { version = "1.0", optional = true }
2727

2828
[features]

rust/ruby-prism-sys/build/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn generate_bindings(ruby_include_path: &Path) -> bindgen::Bindings {
108108
.impl_debug(true)
109109
.layout_tests(true)
110110
.merge_extern_blocks(true)
111-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
111+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
112112
.parse_callbacks(Box::new(Callbacks))
113113
.prepend_enum_name(false)
114114
.size_t_is_usize(true)

0 commit comments

Comments
 (0)