Skip to content

Commit 5f3fb89

Browse files
committed
Release 0.4.0
1 parent 591dcb6 commit 5f3fb89

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

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 = "0.3.9" # remember to update html_root_url
3+
version = "0.4.0" # remember to update html_root_url
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
links = "cxxbridge04"
@@ -20,15 +20,15 @@ default = ["cxxbridge-flags/default"] # c++11
2020
"c++20" = ["cxxbridge-flags/c++20"]
2121

2222
[dependencies]
23-
cxxbridge-macro = { version = "=0.3.9", path = "macro" }
23+
cxxbridge-macro = { version = "=0.4.0", path = "macro" }
2424
link-cplusplus = "1.0"
2525

2626
[build-dependencies]
2727
cc = "1.0.49"
28-
cxxbridge-flags = { version = "=0.3.9", path = "flags", default-features = false }
28+
cxxbridge-flags = { version = "=0.4.0", path = "flags", default-features = false }
2929

3030
[dev-dependencies]
31-
cxx-build = { version = "=0.3.9", path = "gen/build" }
31+
cxx-build = { version = "=0.4.0", path = "gen/build" }
3232
cxx-test-suite = { version = "0", path = "tests/ffi" }
3333
rustversion = "1.0"
3434
trybuild = { version = "1.0.33", features = ["diff"] }

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ can be 100% safe.
1818

1919
```toml
2020
[dependencies]
21-
cxx = "0.3"
21+
cxx = "0.4"
2222
```
2323

2424
*Compiler support: requires rustc 1.42+ and c++11 or newer*<br>
@@ -219,7 +219,7 @@ set up any additional source files and compiler flags as normal.
219219
# Cargo.toml
220220

221221
[build-dependencies]
222-
cxx-build = "0.3"
222+
cxx-build = "0.4"
223223
```
224224

225225
```rust
@@ -307,11 +307,11 @@ returns of functions.
307307
<tr><td>String</td><td>rust::String</td><td></td></tr>
308308
<tr><td>&amp;str</td><td>rust::Str</td><td></td></tr>
309309
<tr><td>&amp;[u8]</td><td>rust::Slice&lt;uint8_t&gt;</td><td><sup><i>arbitrary &amp;[T] not implemented yet</i></sup></td></tr>
310-
<tr><td><a href="https://docs.rs/cxx/0.3/cxx/struct.CxxString.html">CxxString</a></td><td>std::string</td><td><sup><i>cannot be passed by value</i></sup></td></tr>
310+
<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>
311311
<tr><td>Box&lt;T&gt;</td><td>rust::Box&lt;T&gt;</td><td><sup><i>cannot hold opaque C++ type</i></sup></td></tr>
312-
<tr><td><a href="https://docs.rs/cxx/0.3/cxx/struct.UniquePtr.html">UniquePtr&lt;T&gt;</a></td><td>std::unique_ptr&lt;T&gt;</td><td><sup><i>cannot hold opaque Rust type</i></sup></td></tr>
312+
<tr><td><a href="https://docs.rs/cxx/0.4/cxx/struct.UniquePtr.html">UniquePtr&lt;T&gt;</a></td><td>std::unique_ptr&lt;T&gt;</td><td><sup><i>cannot hold opaque Rust type</i></sup></td></tr>
313313
<tr><td>Vec&lt;T&gt;</td><td>rust::Vec&lt;T&gt;</td><td><sup><i>cannot hold opaque C++ type</i></sup></td></tr>
314-
<tr><td><a href="https://docs.rs/cxx/0.3/cxx/struct.CxxVector.html">CxxVector&lt;T&gt;</a></td><td>std::vector&lt;T&gt;</td><td><sup><i>cannot be passed by value, cannot hold opaque Rust type</i></sup></td></tr>
314+
<tr><td><a href="https://docs.rs/cxx/0.4/cxx/struct.CxxVector.html">CxxVector&lt;T&gt;</a></td><td>std::vector&lt;T&gt;</td><td><sup><i>cannot be passed by value, cannot hold opaque Rust type</i></sup></td></tr>
315315
<tr><td>fn(T, U) -&gt; V</td><td>rust::Fn&lt;V(T, U)&gt;</td><td><sup><i>only passing from Rust to C++ is implemented so far</i></sup></td></tr>
316316
<tr><td>Result&lt;T&gt;</td><td>throw/catch</td><td><sup><i>allowed as return type only</i></sup></td></tr>
317317
</table>

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 = "0.3.9"
3+
version = "0.4.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

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 = "0.3.9"
3+
version = "0.4.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

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 = "0.3.9"
3+
version = "0.4.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

macro/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxxbridge-macro"
3-
version = "0.3.9"
3+
version = "0.4.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
@@ -19,7 +19,7 @@ quote = "1.0.4"
1919
syn = { version = "1.0.20", features = ["full"] }
2020

2121
[dev-dependencies]
22-
cxx = { version = "0.3", path = ".." }
22+
cxx = { version = "0.4", path = ".." }
2323

2424
[package.metadata.docs.rs]
2525
targets = ["x86_64-unknown-linux-gnu"]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
//! # Cargo.toml
229229
//!
230230
//! [build-dependencies]
231-
//! cxx-build = "0.3"
231+
//! cxx-build = "0.4"
232232
//! ```
233233
//!
234234
//! ```no_run
@@ -348,7 +348,7 @@
348348
//!
349349
//! [https://github.com/dtolnay/cxx]: https://github.com/dtolnay/cxx
350350
351-
#![doc(html_root_url = "https://docs.rs/cxx/0.3.9")]
351+
#![doc(html_root_url = "https://docs.rs/cxx/0.4.0")]
352352
#![deny(improper_ctypes)]
353353
#![allow(non_camel_case_types)]
354354
#![allow(

third-party/Cargo.lock

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

0 commit comments

Comments
 (0)