Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 17, 2020
1 parent 1964acd commit bf1000f
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
edition = "2018"
links = "cxxbridge1"
Expand All @@ -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"] }
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*<br>
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -323,11 +323,11 @@ returns of functions.
<tr><td>String</td><td>rust::String</td><td></td></tr>
<tr><td>&amp;str</td><td>rust::Str</td><td></td></tr>
<tr><td>&amp;[u8]</td><td>rust::Slice&lt;const uint8_t&gt;</td><td><sup><i>arbitrary &amp;[T] not implemented yet</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><a href="https://docs.rs/cxx/1.0/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&lt;T&gt;</td><td>rust::Box&lt;T&gt;</td><td><sup><i>cannot hold opaque C++ type</i></sup></td></tr>
<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>
<tr><td><a href="https://docs.rs/cxx/1.0/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>
<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>
<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>
<tr><td><a href="https://docs.rs/cxx/1.0/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>
<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>
<tr><td>Result&lt;T&gt;</td><td>throw/catch</td><td><sup><i>allowed as return type only</i></sup></td></tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion flags/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cxxbridge-flags"
version = "0.5.10"
version = "1.0.0"
authors = ["David Tolnay <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions gen/build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cxx-build"
version = "0.5.10"
version = "1.0.0"
authors = ["David Tolnay <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion gen/cmd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cxxbridge-cmd"
version = "0.5.10"
version = "1.0.0"
authors = ["David Tolnay <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion gen/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cxx-gen"
version = "0.6.7"
version = "0.7.0"
authors = ["Adrian Taylor <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cxxbridge-macro"
version = "0.5.10"
version = "1.0.0"
authors = ["David Tolnay <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -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"]
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
//! # Cargo.toml
//!
//! [build-dependencies]
//! cxx-build = "0.5"
//! cxx-build = "1.0"
//! ```
//!
//! ```no_run
Expand Down Expand Up @@ -361,7 +361,7 @@
//! </table>

#![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(
Expand Down
12 changes: 6 additions & 6 deletions third-party/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf1000f

Please sign in to comment.