Release 1.0.0
diff --git a/Cargo.toml b/Cargo.toml
index 7e65237..4fad728 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cxx"
-version = "0.5.10" # remember to update html_root_url
+version = "1.0.0" # remember to update html_root_url
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
links = "cxxbridge1"
@@ -21,16 +21,16 @@
"c++20" = ["cxxbridge-flags/c++20"]
[dependencies]
-cxxbridge-macro = { version = "=0.5.10", path = "macro" }
+cxxbridge-macro = { version = "=1.0.0", path = "macro" }
link-cplusplus = "1.0"
[build-dependencies]
cc = "1.0.49"
-cxxbridge-flags = { version = "=0.5.10", path = "flags", default-features = false }
+cxxbridge-flags = { version = "=1.0.0", path = "flags", default-features = false }
[dev-dependencies]
-cxx-build = { version = "=0.5.10", path = "gen/build" }
-cxx-gen = { version = "0.6", path = "gen/lib" }
+cxx-build = { version = "=1.0.0", path = "gen/build" }
+cxx-gen = { version = "0.7", path = "gen/lib" }
cxx-test-suite = { version = "0", path = "tests/ffi" }
rustversion = "1.0"
trybuild = { version = "1.0.33", features = ["diff"] }
diff --git a/README.md b/README.md
index a4f3b9c..bc76006 100644
--- a/README.md
+++ b/README.md
@@ -18,10 +18,10 @@
```toml
[dependencies]
-cxx = "0.5"
+cxx = "1.0"
[build-dependencies]
-cxx-build = "0.5"
+cxx-build = "1.0"
```
*Compiler support: requires rustc 1.48+ and c++11 or newer*<br>
@@ -235,7 +235,7 @@
# Cargo.toml
[build-dependencies]
-cxx-build = "0.5"
+cxx-build = "1.0"
```
```rust
@@ -323,11 +323,11 @@
<tr><td>String</td><td>rust::String</td><td></td></tr>
<tr><td>&str</td><td>rust::Str</td><td></td></tr>
<tr><td>&[u8]</td><td>rust::Slice<const uint8_t></td><td><sup><i>arbitrary &[T] not implemented yet</i></sup></td></tr>
-<tr><td><a href="https://docs.rs/cxx/0.5/cxx/struct.CxxString.html">CxxString</a></td><td>std::string</td><td><sup><i>cannot be passed by value</i></sup></td></tr>
+<tr><td><a href="https://docs.rs/cxx/1.0/cxx/struct.CxxString.html">CxxString</a></td><td>std::string</td><td><sup><i>cannot be passed by value</i></sup></td></tr>
<tr><td>Box<T></td><td>rust::Box<T></td><td><sup><i>cannot hold opaque C++ type</i></sup></td></tr>
-<tr><td><a href="https://docs.rs/cxx/0.5/cxx/struct.UniquePtr.html">UniquePtr<T></a></td><td>std::unique_ptr<T></td><td><sup><i>cannot hold opaque Rust type</i></sup></td></tr>
+<tr><td><a href="https://docs.rs/cxx/1.0/cxx/struct.UniquePtr.html">UniquePtr<T></a></td><td>std::unique_ptr<T></td><td><sup><i>cannot hold opaque Rust type</i></sup></td></tr>
<tr><td>Vec<T></td><td>rust::Vec<T></td><td><sup><i>cannot hold opaque C++ type</i></sup></td></tr>
-<tr><td><a href="https://docs.rs/cxx/0.5/cxx/struct.CxxVector.html">CxxVector<T></a></td><td>std::vector<T></td><td><sup><i>cannot be passed by value, cannot hold opaque Rust type</i></sup></td></tr>
+<tr><td><a href="https://docs.rs/cxx/1.0/cxx/struct.CxxVector.html">CxxVector<T></a></td><td>std::vector<T></td><td><sup><i>cannot be passed by value, cannot hold opaque Rust type</i></sup></td></tr>
<tr><td>fn(T, U) -> V</td><td>rust::Fn<V(T, U)></td><td><sup><i>only passing from Rust to C++ is implemented so far</i></sup></td></tr>
<tr><td>Result<T></td><td>throw/catch</td><td><sup><i>allowed as return type only</i></sup></td></tr>
</table>
diff --git a/flags/Cargo.toml b/flags/Cargo.toml
index cd9072e..2d21aa1 100644
--- a/flags/Cargo.toml
+++ b/flags/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cxxbridge-flags"
-version = "0.5.10"
+version = "1.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
diff --git a/gen/build/Cargo.toml b/gen/build/Cargo.toml
index fa5a1f1..b232919 100644
--- a/gen/build/Cargo.toml
+++ b/gen/build/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cxx-build"
-version = "0.5.10"
+version = "1.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
@@ -21,7 +21,7 @@
syn = { version = "1.0.20", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
[dev-dependencies]
-cxx-gen = { version = "0.6", path = "../lib" }
+cxx-gen = { version = "0.7", path = "../lib" }
pkg-config = "0.3"
[package.metadata.docs.rs]
diff --git a/gen/cmd/Cargo.toml b/gen/cmd/Cargo.toml
index c930b7e..b38aa68 100644
--- a/gen/cmd/Cargo.toml
+++ b/gen/cmd/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cxxbridge-cmd"
-version = "0.5.10"
+version = "1.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
diff --git a/gen/lib/Cargo.toml b/gen/lib/Cargo.toml
index c1af1c2..250fa3f 100644
--- a/gen/lib/Cargo.toml
+++ b/gen/lib/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cxx-gen"
-version = "0.6.7"
+version = "0.7.0"
authors = ["Adrian Taylor <adetaylor@chromium.org>"]
edition = "2018"
license = "MIT OR Apache-2.0"
diff --git a/macro/Cargo.toml b/macro/Cargo.toml
index 21ea513..61c8b14 100644
--- a/macro/Cargo.toml
+++ b/macro/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cxxbridge-macro"
-version = "0.5.10"
+version = "1.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
@@ -20,7 +20,7 @@
syn = { version = "1.0.20", features = ["full"] }
[dev-dependencies]
-cxx = { version = "0.5", path = ".." }
+cxx = { version = "1.0", path = ".." }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
diff --git a/src/lib.rs b/src/lib.rs
index f114ab3..cf9212c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -242,7 +242,7 @@
//! # Cargo.toml
//!
//! [build-dependencies]
-//! cxx-build = "0.5"
+//! cxx-build = "1.0"
//! ```
//!
//! ```no_run
@@ -361,7 +361,7 @@
//! </table>
#![no_std]
-#![doc(html_root_url = "https://docs.rs/cxx/0.5.10")]
+#![doc(html_root_url = "https://docs.rs/cxx/1.0.0")]
#![deny(improper_ctypes)]
#![allow(non_camel_case_types)]
#![allow(
diff --git a/third-party/Cargo.lock b/third-party/Cargo.lock
index b074415..5f35669 100644
--- a/third-party/Cargo.lock
+++ b/third-party/Cargo.lock
@@ -59,7 +59,7 @@
[[package]]
name = "cxx"
-version = "0.5.10"
+version = "1.0.0"
dependencies = [
"cc",
"cxx-build",
@@ -74,7 +74,7 @@
[[package]]
name = "cxx-build"
-version = "0.5.10"
+version = "1.0.0"
dependencies = [
"cc",
"codespan-reporting",
@@ -89,7 +89,7 @@
[[package]]
name = "cxx-gen"
-version = "0.6.7"
+version = "0.7.0"
dependencies = [
"cc",
"codespan-reporting",
@@ -109,7 +109,7 @@
[[package]]
name = "cxxbridge-cmd"
-version = "0.5.10"
+version = "1.0.0"
dependencies = [
"clap",
"codespan-reporting",
@@ -120,11 +120,11 @@
[[package]]
name = "cxxbridge-flags"
-version = "0.5.10"
+version = "1.0.0"
[[package]]
name = "cxxbridge-macro"
-version = "0.5.10"
+version = "1.0.0"
dependencies = [
"cxx",
"proc-macro2",