Skip to content

Commit

Permalink
Merge tag 'v0.24.4'
Browse files Browse the repository at this point in the history
v0.24.4

      * Move expand infinite recursion fix (mozilla#799)
      * Add with_cpp_compat to the builder (mozilla#796)
      * Handle never type in return position consistently (mozilla#780)
      * Fix warnings (mozilla#816, mozilla#819)
      * Updated documentation (mozilla#788, mozilla#791, mozilla#792, mozilla#810, mozilla#823)

# Conflicts:
#	src/bindgen/cdecl.rs
#	src/bindgen/ir/function.rs
#	src/main.rs
  • Loading branch information
mhallin committed May 25, 2024
2 parents 8ff7c56 + 288073a commit e61e91d
Show file tree
Hide file tree
Showing 43 changed files with 553 additions and 307 deletions.
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Specify the minimum supported Rust version
msrv = "1.40.0"
msrv = "1.54.0"
57 changes: 23 additions & 34 deletions .github/workflows/cbindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,43 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
components: "clippy, rustfmt"

- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

- name: Install clippy
uses: dtolnay/rust-toolchain@clippy
run: |
cargo fmt --check
- name: Run clippy
run: |
cargo clippy --workspace -- -D warnings
- name: Install minimum supported Rust version
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.54.0
id: msrv
uses: dtolnay/rust-toolchain@1.54

- name: Build with minimum supported Rust version
run: |
cargo +1.54.0 test nonexistent-test --verbose
cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable

- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.8.*'
python-version: '3.8'

- name: Install Cython
run: |
Expand All @@ -79,20 +65,23 @@ jobs:
run: |
cargo build --verbose --no-default-features
- name: Test
- name: Test package
env:
CBINDGEN_TEST_VERIFY: 1
run: |
cargo test --verbose
cargo package --verbose
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose)
- name: Test package
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@nightly

- name: Test
env:
CBINDGEN_TEST_VERIFY: 1
run: |
cargo package --verbose
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose)
cargo +nightly test --verbose
- name: Test minimal-versions
run: |
cargo update -Zminimal-versions
cargo test
cargo +nightly update -Zminimal-versions
cargo +nightly test
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build cbindgen
run: |
Expand Down
8 changes: 8 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.24.4

* Move expand infinite recursion fix (#799)
* Add with_cpp_compat to the builder (#796)
* Handle never type in return position consistently (#780)
* Fix warnings (#816, #819)
* Updated documentation (#788, #791, #792, #810, #823)

## 0.24.3

* Make struct expressions correctly generated through typedefs (#768).
Expand Down

0 comments on commit e61e91d

Please sign in to comment.