Skip to content

Commit c499950

Browse files
committed
Release 0.5.0
1 parent 8f16ae7 commit c499950

File tree

9 files changed

+26
-26
lines changed

9 files changed

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

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

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

3030
[dev-dependencies]
31-
cxx-build = { version = "=0.4.7", path = "gen/build" }
32-
cxx-gen = { version = "0.4", path = "gen/lib" }
31+
cxx-build = { version = "=0.5.0", path = "gen/build" }
32+
cxx-gen = { version = "0.5", path = "gen/lib" }
3333
cxx-test-suite = { version = "0", path = "tests/ffi" }
3434
rustversion = "1.0"
3535
trybuild = { version = "1.0.33", features = ["diff"] }

README.md

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

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

2323
[build-dependencies]
24-
cxx-build = "0.4"
24+
cxx-build = "0.5"
2525
```
2626

2727
*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.
222222
# Cargo.toml
223223

224224
[build-dependencies]
225-
cxx-build = "0.4"
225+
cxx-build = "0.5"
226226
```
227227

228228
```rust
@@ -310,11 +310,11 @@ returns of functions.
310310
<tr><td>String</td><td>rust::String</td><td></td></tr>
311311
<tr><td>&amp;str</td><td>rust::Str</td><td></td></tr>
312312
<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>
313-
<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>
313+
<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>
314314
<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>
315-
<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>
315+
<tr><td><a href="https://docs.rs/cxx/0.5/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>
316316
<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>
317-
<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>
317+
<tr><td><a href="https://docs.rs/cxx/0.5/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>
318318
<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>
319319
<tr><td>Result&lt;T&gt;</td><td>throw/catch</td><td><sup><i>allowed as return type only</i></sup></td></tr>
320320
</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.4.7"
3+
version = "0.5.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

gen/build/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxx-build"
3-
version = "0.4.7"
3+
version = "0.5.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
@@ -20,7 +20,7 @@ scratch = "1.0"
2020
syn = { version = "1.0.20", default-features = false, features = ["parsing", "printing", "clone-impls", "full"] }
2121

2222
[dev-dependencies]
23-
cxx-gen = { version = "0.4", path = "../lib" }
23+
cxx-gen = { version = "0.5", path = "../lib" }
2424

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

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

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.4.1"
3+
version = "0.5.0"
44
authors = ["Adrian Taylor <[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.4.7"
3+
version = "0.5.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.4", path = ".." }
22+
cxx = { version = "0.5", 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.4"
231+
//! cxx-build = "0.5"
232232
//! ```
233233
//!
234234
//! ```no_run
@@ -349,7 +349,7 @@
349349
//! [https://github.com/dtolnay/cxx]: https://github.com/dtolnay/cxx
350350
351351
#![no_std]
352-
#![doc(html_root_url = "https://docs.rs/cxx/0.4.7")]
352+
#![doc(html_root_url = "https://docs.rs/cxx/0.5.0")]
353353
#![deny(improper_ctypes)]
354354
#![allow(non_camel_case_types)]
355355
#![allow(

third-party/Cargo.lock

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

0 commit comments

Comments
 (0)