Skip to content

Commit 63a4384

Browse files
committed
Release 0.3.0
1 parent cc9ece5 commit 63a4384

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cxx"
3-
version = "0.2.12" # remember to update html_root_url
3+
version = "0.3.0" # remember to update html_root_url
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
links = "cxxbridge03"
@@ -15,14 +15,14 @@ exclude = ["/demo-cxx", "/gen", "/syntax", "/third-party"]
1515
travis-ci = { repository = "dtolnay/cxx" }
1616

1717
[dependencies]
18-
cxxbridge-macro = { version = "=0.2.12", path = "macro" }
18+
cxxbridge-macro = { version = "=0.3.0", path = "macro" }
1919
link-cplusplus = "1.0"
2020

2121
[build-dependencies]
2222
cc = "1.0.49"
2323

2424
[dev-dependencies]
25-
cxx-build = { version = "=0.2.12", path = "gen/build" }
25+
cxx-build = { version = "=0.3.0", path = "gen/build" }
2626
cxx-test-suite = { version = "0", path = "tests/ffi" }
2727
rustversion = "1.0"
2828
trybuild = { version = "1.0.21", features = ["diff"] }

README.md

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

1818
```toml
1919
[dependencies]
20-
cxx = "0.2"
20+
cxx = "0.3"
2121
```
2222

2323
*Compiler support: requires rustc 1.42+*<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.2"
222+
cxx-build = "0.3"
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.2/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.3/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.2/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.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>
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.2/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.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>
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>

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.2.12"
3+
version = "0.3.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.2.12"
3+
version = "0.3.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.2.12"
3+
version = "0.3.0"
44
authors = ["David Tolnay <[email protected]>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
@@ -20,7 +20,7 @@ quote = "1.0"
2020
syn = { version = "1.0", features = ["full"] }
2121

2222
[dev-dependencies]
23-
cxx = { version = "0.2", path = ".." }
23+
cxx = { version = "0.3", path = ".." }
2424

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

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
//! # Cargo.toml
225225
//!
226226
//! [build-dependencies]
227-
//! cxx-build = "0.2"
227+
//! cxx-build = "0.3"
228228
//! ```
229229
//!
230230
//! ```no_run
@@ -343,7 +343,7 @@
343343
//!
344344
//! [https://github.com/dtolnay/cxx]: https://github.com/dtolnay/cxx
345345
346-
#![doc(html_root_url = "https://docs.rs/cxx/0.2.12")]
346+
#![doc(html_root_url = "https://docs.rs/cxx/0.3.0")]
347347
#![deny(improper_ctypes)]
348348
#![allow(
349349
clippy::cognitive_complexity,

third-party/Cargo.lock

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

0 commit comments

Comments
 (0)