Skip to content

Commit 6fccd3a

Browse files
committed
Support for CxxVector<*mut T> and CxxVector<*const T>
1 parent 9629375 commit 6fccd3a

38 files changed

+2893
-2080
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@ jobs:
1717
name: ${{matrix.name || format('Rust {0}', matrix.rust)}}
1818
needs: pre_ci
1919
if: needs.pre_ci.outputs.continue
20-
runs-on: ${{matrix.os || 'ubuntu'}}-latest
20+
runs-on: ${{matrix.os}}-latest
2121
strategy:
2222
fail-fast: false
2323
matrix:
24+
rust: [nightly, beta, stable, 1.67.0, 1.70.0, 1.74.0]
25+
os: [ubuntu]
2426
include:
25-
- rust: nightly
26-
- rust: beta
27-
- rust: stable
28-
- rust: 1.67.0
29-
- rust: 1.70.0
30-
- rust: 1.74.0
3127
- name: Cargo on macOS
3228
rust: nightly
3329
os: macos
@@ -59,7 +55,7 @@ jobs:
5955
echo RUSTFLAGS=$RUSTFLAGS >> $GITHUB_ENV
6056
echo exclude=--exclude cxx-test-suite ${{matrix.rust == '1.70.0' && '--exclude cxxbridge-cmd' || ''}} >> $GITHUB_OUTPUT
6157
env:
62-
RUSTFLAGS: ${{env.RUSTFLAGS}} ${{matrix.os && github.event_name != 'schedule' && '--cfg skip_ui_tests' || ''}}
58+
RUSTFLAGS: ${{env.RUSTFLAGS}} ${{matrix.os != 'ubuntu' && github.event_name != 'schedule' && '--cfg skip_ui_tests' || ''}}
6359
id: testsuite
6460
shell: bash
6561
- run: cargo run --manifest-path demo/Cargo.toml
@@ -71,6 +67,11 @@ jobs:
7167
- run: cargo check --no-default-features
7268
env:
7369
RUSTFLAGS: --cfg compile_error_if_alloc --cfg cxx_experimental_no_alloc ${{env.RUSTFLAGS}}
70+
- uses: actions/upload-artifact@v4
71+
if: matrix.os == 'ubuntu' && matrix.rust == 'nightly' && always()
72+
with:
73+
name: Cargo.lock
74+
path: Cargo.lock
7475

7576
reindeer:
7677
name: Reindeer
@@ -145,6 +146,8 @@ jobs:
145146
runs-on: ubuntu-latest
146147
if: github.event_name != 'pull_request'
147148
timeout-minutes: 45
149+
env:
150+
RUSTFLAGS: -Dwarnings
148151
steps:
149152
- uses: actions/checkout@v4
150153
- uses: dtolnay/rust-toolchain@nightly

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxx"
3-
version = "1.0.126"
3+
version = "1.0.128"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
55
categories = ["development-tools::ffi", "api-bindings", "no-std"]
66
description = "Safe interop between Rust and C++"
@@ -23,15 +23,15 @@ alloc = []
2323
std = ["alloc"]
2424

2525
[dependencies]
26-
cxxbridge-macro = { version = "=1.0.126", path = "macro" }
26+
cxxbridge-macro = { version = "=1.0.128", path = "macro" }
2727
link-cplusplus = "1.0.9"
2828

2929
[build-dependencies]
3030
cc = "1.0.83"
31-
cxxbridge-flags = { version = "=1.0.126", path = "flags", default-features = false }
31+
cxxbridge-flags = { version = "=1.0.128", path = "flags", default-features = false }
3232

3333
[dev-dependencies]
34-
cxx-build = { version = "=1.0.126", path = "gen/build" }
34+
cxx-build = { version = "=1.0.128", path = "gen/build" }
3535
cxx-gen = { version = "0.7", path = "gen/lib" }
3636
cxx-test-suite = { version = "0", path = "tests/ffi" }
3737
rustversion = "1.0.13"

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module(name = "cxx.rs")
22

33
bazel_dep(name = "bazel_skylib", version = "1.7.1")
4-
bazel_dep(name = "rules_rust", version = "0.49.3")
4+
bazel_dep(name = "rules_rust", version = "0.50.0")
55

66
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
77
rust.toolchain(
8-
versions = ["1.80.1"],
8+
versions = ["1.81.0"],
99
)
1010
use_repo(rust, "rust_toolchains")
1111

0 commit comments

Comments
 (0)