| [toolchain] | ||
| channel = "nightly" |
| { | ||
| "git": { | ||
| "sha1": "cbd3541614d03a115c423a683328a78f6935f93d" | ||
| "sha1": "dd9a550152cd162a3aa01757a55dd22fc56d0d8a" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
@@ -20,25 +20,21 @@ name: cbindgen | ||
| - 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/rust-toolchain@1.64 | ||
| - name: Build with minimum supported Rust version | ||
| run: | | ||
| cargo test nonexistent-test --verbose | ||
| cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose | ||
@@ -52,6 +48,4 @@ build: | ||
| - name: Install stable | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| - name: Install stable Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
@@ -70,7 +64,7 @@ - name: Install Python | ||
| 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 | ||
@@ -81,9 +75,7 @@ - name: Test package | ||
| 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 | ||
@@ -90,0 +82,0 @@ - name: Test |
@@ -11,4 +11,9 @@ name: deploy | ||
| linux-binaries: | ||
| permissions: | ||
| # Grant the GITHUB_TOKEN additional permissions necessary for creating a release. | ||
| # We only run this action for tags, so any code has already been reviewed by | ||
| # someone with permissions to create a tag. | ||
| contents: write | ||
| runs-on: ubuntu-latest | ||
| runs-on: ubuntu-20.04 | ||
@@ -19,9 +24,12 @@ steps: | ||
| - name: Install stable | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| uses: dtolnay/rust-toolchain@stable | ||
| - name: semver | ||
| run: | | ||
| cargo +stable install cargo-semver-checks --locked | ||
| cargo semver-checks check-release | ||
| - name: Build cbindgen | ||
| run: | | ||
| cargo build --release | ||
| cargo +stable build --release | ||
@@ -46,9 +54,6 @@ - name: Strip cbindgen | ||
| - name: Create a release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| name: v${{ steps.tagName.outputs.version }} | ||
| body_path: CHANGES.txt | ||
| files: | | ||
| target/release/cbindgen | ||
| run: | | ||
| TAG=${{ steps.tagName.outputs.version }} | ||
| gh release create ${TAG} --title "${TAG}" --notes-file "CHANGES.txt" --draft 'target/release/cbindgen#cbindgen-ubuntu20.04' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
+3
-3
@@ -30,3 +30,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "cbindgen" | ||
| version = "0.24.6" | ||
| version = "0.25.0" | ||
| dependencies = [ | ||
@@ -196,5 +196,5 @@ "clap", | ||
| name = "proc-macro2" | ||
| version = "1.0.58" | ||
| version = "1.0.66" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "fa1fb82fc0c281dd9671101b66b771ebbe1eaf967b96ac8740dcba4b70005ca8" | ||
| checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" | ||
| dependencies = [ | ||
@@ -201,0 +201,0 @@ "unicode-ident", |
+3
-3
@@ -14,5 +14,5 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| edition = "2018" | ||
| rust-version = "1.57" | ||
| rust-version = "1.64" | ||
| name = "cbindgen" | ||
| version = "0.24.6" | ||
| version = "0.25.0" | ||
| authors = [ | ||
@@ -63,3 +63,3 @@ "Emilio Cobos Álvarez <emilio@crisal.io>", | ||
| [dependencies.proc-macro2] | ||
| version = "1" | ||
| version = "1.0.60" | ||
@@ -66,0 +66,0 @@ [dependencies.quote] |
+9
-1
@@ -1,7 +0,15 @@ | ||
| ## 0.24.6 | ||
| ## 0.25.0 | ||
| * Re-release of yanked 0.24.6 as a major release | ||
| * Update MSRV to 1.57 | ||
| * Support variadic arguments (`...`) (#805) | ||
| * Add --depfile option (#820) | ||
| * Breaking changes: The `Config` struct now has a private member. | ||
| ## 0.24.6 (YANKED: depfile option was breaking, see #841) | ||
| * Update MSRV to 1.57 | ||
| * Support variadic arguments (`...`) (#805) | ||
| * Add --depfile option (#820) | ||
| ## 0.24.5 | ||
@@ -8,0 +16,0 @@ |
+1
-0
@@ -19,2 +19,3 @@ # Contributing | ||
| (`python -m pip install Cython`) for checking Cython bindings generated from tests (`.pyx` files). | ||
| Note that the tests will be failed with Cython 3.x or later. | ||
@@ -21,0 +22,0 @@ Please run `cargo test` before filing a pull request to be sure that all tests pass. This will also update the test expectations. |
@@ -144,3 +144,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| .iter() | ||
| .chain(self.config.config_path.as_ref().into_iter()) | ||
| .chain(self.config.config_path.as_ref()) | ||
| .map(|p| p.canonicalize().unwrap()) | ||
@@ -147,0 +147,0 @@ .collect(); |
Sorry, the diff of this file is not supported yet