mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-21 08:31:11 +00:00
Release 0.5.0
This commit is contained in:
parent
8f16ae75f3
commit
c499950924
10
Cargo.toml
10
Cargo.toml
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cxx"
|
||||
version = "0.4.7" # remember to update html_root_url
|
||||
version = "0.5.0" # remember to update html_root_url
|
||||
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||
edition = "2018"
|
||||
links = "cxxbridge05"
|
||||
@ -20,16 +20,16 @@ default = ["cxxbridge-flags/default"] # c++11
|
||||
"c++20" = ["cxxbridge-flags/c++20"]
|
||||
|
||||
[dependencies]
|
||||
cxxbridge-macro = { version = "=0.4.7", path = "macro" }
|
||||
cxxbridge-macro = { version = "=0.5.0", path = "macro" }
|
||||
link-cplusplus = "1.0"
|
||||
|
||||
[build-dependencies]
|
||||
cc = "1.0.49"
|
||||
cxxbridge-flags = { version = "=0.4.7", path = "flags", default-features = false }
|
||||
cxxbridge-flags = { version = "=0.5.0", path = "flags", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
cxx-build = { version = "=0.4.7", path = "gen/build" }
|
||||
cxx-gen = { version = "0.4", path = "gen/lib" }
|
||||
cxx-build = { version = "=0.5.0", path = "gen/build" }
|
||||
cxx-gen = { version = "0.5", path = "gen/lib" }
|
||||
cxx-test-suite = { version = "0", path = "tests/ffi" }
|
||||
rustversion = "1.0"
|
||||
trybuild = { version = "1.0.33", features = ["diff"] }
|
||||
|
12
README.md
12
README.md
@ -18,10 +18,10 @@ can be 100% safe.
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
cxx = "0.4"
|
||||
cxx = "0.5"
|
||||
|
||||
[build-dependencies]
|
||||
cxx-build = "0.4"
|
||||
cxx-build = "0.5"
|
||||
```
|
||||
|
||||
*Compiler support: requires rustc 1.42+ and c++11 or newer*<br>
|
||||
@ -222,7 +222,7 @@ set up any additional source files and compiler flags as normal.
|
||||
# Cargo.toml
|
||||
|
||||
[build-dependencies]
|
||||
cxx-build = "0.4"
|
||||
cxx-build = "0.5"
|
||||
```
|
||||
|
||||
```rust
|
||||
@ -310,11 +310,11 @@ returns of functions.
|
||||
<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<uint8_t></td><td><sup><i>arbitrary &[T] not implemented yet</i></sup></td></tr>
|
||||
<tr><td><a href="https://docs.rs/cxx/0.4/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/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>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.4/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/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>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.4/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/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>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>
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cxxbridge-flags"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cxx-build"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
@ -20,7 +20,7 @@ scratch = "1.0"
|
||||
syn = { version = "1.0.20", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
|
||||
|
||||
[dev-dependencies]
|
||||
cxx-gen = { version = "0.4", path = "../lib" }
|
||||
cxx-gen = { version = "0.5", path = "../lib" }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cxxbridge-cmd"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cxx-gen"
|
||||
version = "0.4.1"
|
||||
version = "0.5.0"
|
||||
authors = ["Adrian Taylor <adetaylor@chromium.org>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cxxbridge-macro"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
@ -19,7 +19,7 @@ quote = "1.0.4"
|
||||
syn = { version = "1.0.20", features = ["full"] }
|
||||
|
||||
[dev-dependencies]
|
||||
cxx = { version = "0.4", path = ".." }
|
||||
cxx = { version = "0.5", path = ".." }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
@ -228,7 +228,7 @@
|
||||
//! # Cargo.toml
|
||||
//!
|
||||
//! [build-dependencies]
|
||||
//! cxx-build = "0.4"
|
||||
//! cxx-build = "0.5"
|
||||
//! ```
|
||||
//!
|
||||
//! ```no_run
|
||||
@ -349,7 +349,7 @@
|
||||
//! [https://github.com/dtolnay/cxx]: https://github.com/dtolnay/cxx
|
||||
|
||||
#![no_std]
|
||||
#![doc(html_root_url = "https://docs.rs/cxx/0.4.7")]
|
||||
#![doc(html_root_url = "https://docs.rs/cxx/0.5.0")]
|
||||
#![deny(improper_ctypes)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(
|
||||
|
12
third-party/Cargo.lock
generated
vendored
12
third-party/Cargo.lock
generated
vendored
@ -59,7 +59,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxx"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"cxx-build",
|
||||
@ -74,7 +74,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxx-build"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"codespan-reporting",
|
||||
@ -88,7 +88,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxx-gen"
|
||||
version = "0.4.1"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"codespan-reporting",
|
||||
@ -108,7 +108,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxxbridge-cmd"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"codespan-reporting",
|
||||
@ -119,11 +119,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxxbridge-flags"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
|
||||
[[package]]
|
||||
name = "cxxbridge-macro"
|
||||
version = "0.4.7"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"cxx",
|
||||
"proc-macro2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user