forked from mozilla/cbindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.25.0 * Re-release of yanked 0.24.6 as a major release * Update MSRV to 1.57 * Support variadic arguments (`...`) (mozilla#805) * Add --depfile option (mozilla#820) * Breaking changes: The `Config` struct now has a private member.
- Loading branch information
Showing
8 changed files
with
48 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,29 +17,25 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install stable | ||
uses: actions-rs/toolchain@v1 | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: clippy, rustfmt | ||
components: "clippy, rustfmt" | ||
|
||
- name: Run rustfmt | ||
run: | | ||
cargo fmt --check | ||
cargo +stable fmt --check | ||
- name: Run clippy | ||
run: | | ||
cargo clippy --workspace -- -D warnings | ||
cargo +stable clippy --workspace -- -D warnings | ||
- name: Install minimum supported Rust version | ||
id: msrv | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.57 | ||
override: true | ||
uses: dtolnay/[email protected] | ||
|
||
- name: Build with minimum supported Rust version | ||
run: | | ||
cargo test nonexistent-test --verbose | ||
cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose | ||
build: | ||
|
||
|
@@ -48,10 +44,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Install stable Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
|
@@ -65,23 +59,21 @@ jobs: | |
- name: Build | ||
run: | | ||
cargo build --verbose | ||
cargo +stable build --verbose | ||
- name: Build no-default-features | ||
run: | | ||
cargo build --verbose --no-default-features | ||
cargo +stable build --verbose --no-default-features | ||
- name: Test package | ||
env: | ||
CBINDGEN_TEST_VERIFY: 1 | ||
run: | | ||
cargo package --verbose | ||
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose) | ||
cargo +stable package --verbose | ||
(cd target/package/cbindgen-$(cargo +stable run -- --version | cut -d ' ' -f 2) && cargo +stable test --verbose) | ||
- name: Install nightly Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
uses: dtolnay/rust-toolchain@nightly | ||
|
||
- name: Test | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cbindgen" | ||
version = "0.24.6" | ||
version = "0.25.0" | ||
authors = [ | ||
"Emilio Cobos Álvarez <[email protected]>", | ||
"Jeff Muizelaar <[email protected]>", | ||
|
@@ -13,7 +13,7 @@ keywords = ["bindings", "ffi", "code-generation"] | |
categories = ["external-ffi-bindings", "development-tools::ffi"] | ||
repository = "https://github.com/eqrion/cbindgen" | ||
edition = "2018" | ||
rust-version = "1.57" | ||
rust-version = "1.64" | ||
exclude = [ | ||
"tests/profile.rs", # Test relies in a sub-crate, see https://github.com/rust-lang/cargo/issues/9017 | ||
] | ||
|
@@ -26,7 +26,7 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"] } | |
serde_json = "1.0" | ||
tempfile = "3" | ||
toml = "0.5" | ||
proc-macro2 = "1" | ||
proc-macro2 = "1.0.60" | ||
quote = "1" | ||
heck = "0.4" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters