From bf1000f40e3755a2cebfcd59b35f30b591765749 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 16 Nov 2020 23:47:01 -0800 Subject: [PATCH] Release 1.0.0 --- Cargo.toml | 10 +++++----- README.md | 12 ++++++------ flags/Cargo.toml | 2 +- gen/build/Cargo.toml | 4 ++-- gen/cmd/Cargo.toml | 2 +- gen/lib/Cargo.toml | 2 +- macro/Cargo.toml | 4 ++-- src/lib.rs | 4 ++-- third-party/Cargo.lock | 12 ++++++------ 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7e652376d..4fad728f8 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 "] edition = "2018" links = "cxxbridge1" @@ -21,16 +21,16 @@ default = ["cxxbridge-flags/default"] # c++11 "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 a4f3b9cf9..bc7600640 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ can be 100% safe. ```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*
@@ -235,7 +235,7 @@ set up any additional source files and compiler flags as normal. # Cargo.toml [build-dependencies] -cxx-build = "0.5" +cxx-build = "1.0" ``` ```rust @@ -323,11 +323,11 @@ returns of functions. Stringrust::String &strrust::Str &[u8]rust::Slice<const uint8_t>arbitrary &[T] not implemented yet -CxxStringstd::stringcannot be passed by value +CxxStringstd::stringcannot be passed by value Box<T>rust::Box<T>cannot hold opaque C++ type -UniquePtr<T>std::unique_ptr<T>cannot hold opaque Rust type +UniquePtr<T>std::unique_ptr<T>cannot hold opaque Rust type Vec<T>rust::Vec<T>cannot hold opaque C++ type -CxxVector<T>std::vector<T>cannot be passed by value, cannot hold opaque Rust type +CxxVector<T>std::vector<T>cannot be passed by value, cannot hold opaque Rust type fn(T, U) -> Vrust::Fn<V(T, U)>only passing from Rust to C++ is implemented so far Result<T>throw/catchallowed as return type only diff --git a/flags/Cargo.toml b/flags/Cargo.toml index cd9072ee9..2d21aa1f1 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 "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/gen/build/Cargo.toml b/gen/build/Cargo.toml index fa5a1f17a..b232919c8 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 "] edition = "2018" license = "MIT OR Apache-2.0" @@ -21,7 +21,7 @@ scratch = "1.0" 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 c930b7e96..b38aa683f 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 "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/gen/lib/Cargo.toml b/gen/lib/Cargo.toml index c1af1c281..250fa3ff0 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 "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 21ea51300..61c8b1468 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 "] edition = "2018" license = "MIT OR Apache-2.0" @@ -20,7 +20,7 @@ quote = "1.0.4" 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 f114ab39c..cf9212c0d 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 @@ //! #![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 b07441575..5f356690d 100644 --- a/third-party/Cargo.lock +++ b/third-party/Cargo.lock @@ -59,7 +59,7 @@ dependencies = [ [[package]] name = "cxx" -version = "0.5.10" +version = "1.0.0" dependencies = [ "cc", "cxx-build", @@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "cxx-build" -version = "0.5.10" +version = "1.0.0" dependencies = [ "cc", "codespan-reporting", @@ -89,7 +89,7 @@ dependencies = [ [[package]] name = "cxx-gen" -version = "0.6.7" +version = "0.7.0" dependencies = [ "cc", "codespan-reporting", @@ -109,7 +109,7 @@ dependencies = [ [[package]] name = "cxxbridge-cmd" -version = "0.5.10" +version = "1.0.0" dependencies = [ "clap", "codespan-reporting", @@ -120,11 +120,11 @@ dependencies = [ [[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",