Skip to content

Commit 9d72bed

Browse files
committed
Merge branch 'dtolnay:master' into master
2 parents 355e569 + dcc80b5 commit 9d72bed

28 files changed

+206
-541
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxx"
3-
version = "1.0.143"
3+
version = "1.0.145"
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,24 +23,24 @@ alloc = []
2323
std = ["alloc", "foldhash/std"]
2424

2525
[dependencies]
26-
cxxbridge-macro = { version = "=1.0.143", path = "macro" }
26+
cxxbridge-macro = { version = "=1.0.145", path = "macro" }
2727
foldhash = { version = "0.1", default-features = false }
2828
link-cplusplus = "1.0.9"
2929

3030
[build-dependencies]
3131
cc = "1.0.83"
32-
cxxbridge-flags = { version = "=1.0.143", path = "flags", default-features = false }
32+
cxxbridge-flags = { version = "=1.0.145", path = "flags", default-features = false }
3333

3434
[dev-dependencies]
35-
cxx-build = { version = "=1.0.143", path = "gen/build" }
35+
cxx-build = { version = "=1.0.145", path = "gen/build" }
3636
cxx-gen = { version = "0.7", path = "gen/lib" }
3737
cxx-test-suite = { version = "0", path = "tests/ffi" }
3838
rustversion = "1.0.13"
3939
trybuild = { version = "1.0.81", features = ["diff"] }
4040

4141
# Disallow incompatible cxxbridge-cmd version appearing in the same lockfile.
4242
[target.'cfg(any())'.build-dependencies]
43-
cxxbridge-cmd = { version = "=1.0.143", path = "gen/cmd" }
43+
cxxbridge-cmd = { version = "=1.0.145", path = "gen/cmd" }
4444

4545
[workspace]
4646
members = ["demo", "flags", "gen/build", "gen/cmd", "gen/lib", "macro", "tests/ffi"]

MODULE.bazel

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
module(name = "cxx.rs")
1+
module(
2+
name = "cxx.rs",
3+
version = "1.0.145",
4+
bazel_compatibility = [">=7.2.1"],
5+
compatibility_level = 1,
6+
)
27

8+
bazel_dep(name = "bazel_features", version = "1.21.0")
39
bazel_dep(name = "bazel_skylib", version = "1.7.1")
10+
bazel_dep(name = "platforms", version = "0.0.11")
411
bazel_dep(name = "rules_cc", version = "0.1.1")
512
bazel_dep(name = "rules_rust", version = "0.58.0")
613

@@ -13,4 +20,8 @@ use_repo(rust, "rust_toolchains")
1320
register_toolchains("@rust_toolchains//:all")
1421

1522
crate_repositories = use_extension("//tools/bazel:extension.bzl", "crate_repositories")
16-
use_repo(crate_repositories, "crates.io")
23+
use_repo(
24+
crate_repositories,
25+
"crates.io",
26+
"vendor",
27+
)

MODULE.bazel.lock

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

flags/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxxbridge-flags"
3-
version = "1.0.143"
3+
version = "1.0.145"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
55
categories = ["development-tools::ffi", "compilers"]
66
description = "Compiler configuration of the `cxx` crate (implementation detail)"

gen/build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxx-build"
3-
version = "1.0.143"
3+
version = "1.0.145"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
55
categories = ["development-tools::build-utils", "development-tools::ffi"]
66
description = "C++ code generator for integrating `cxx` crate into a Cargo build."

gen/build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//! $ cxxbridge src/main.rs > path/to/mybridge.cc
4646
//! ```
4747
48-
#![doc(html_root_url = "https://docs.rs/cxx-build/1.0.143")]
48+
#![doc(html_root_url = "https://docs.rs/cxx-build/1.0.145")]
4949
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
5050
#![allow(
5151
clippy::cast_sign_loss,

gen/cmd/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxxbridge-cmd"
3-
version = "1.0.143"
3+
version = "1.0.145"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
55
categories = ["development-tools::build-utils", "development-tools::ffi"]
66
description = "C++ code generator for integrating `cxx` crate into a non-Cargo build."

gen/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxx-gen"
3-
version = "0.7.143"
3+
version = "0.7.145"
44
authors = ["Adrian Taylor <adetaylor@chromium.org>"]
55
categories = ["development-tools::ffi"]
66
description = "C++ code generator for integrating `cxx` crate into higher level tools."

gen/lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! [dtolnay/cxx#235]: https://github.com/dtolnay/cxx/issues/235
88
//! [https://github.com/google/autocxx]: https://github.com/google/autocxx
99
10-
#![doc(html_root_url = "https://docs.rs/cxx-gen/0.7.143")]
10+
#![doc(html_root_url = "https://docs.rs/cxx-gen/0.7.145")]
1111
#![deny(missing_docs)]
1212
#![allow(dead_code)]
1313
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]

include/cxx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class String final {
5252
String(const char *, std::size_t);
5353
String(const char16_t *);
5454
String(const char16_t *, std::size_t);
55-
#if __cplusplus >= 202002L
55+
#ifdef __cpp_char8_t
5656
String(const char8_t *s);
5757
String(const char8_t *s, std::size_t len);
5858
#endif

0 commit comments

Comments
 (0)