1[package]
2name = "cxx"
3version = "1.0.42" # remember to update html_root_url
4authors = ["David Tolnay <dtolnay@gmail.com>"]
5edition = "2018"
6links = "cxxbridge1"
7license = "MIT OR Apache-2.0"
8description = "Safe interop between Rust and C++"
9repository = "https://github.com/dtolnay/cxx"
10documentation = "https://docs.rs/cxx"
11homepage = "https://cxx.rs"
12readme = "README.md"
13exclude = ["/demo", "/gen", "/syntax", "/third-party"]
14keywords = ["ffi"]
15categories = ["development-tools::ffi", "api-bindings"]
16
17[features]
18default = ["cxxbridge-flags/default"] # c++11
19"c++14" = ["cxxbridge-flags/c++14"]
20"c++17" = ["cxxbridge-flags/c++17"]
21"c++20" = ["cxxbridge-flags/c++20"]
22
23[dependencies]
24cxxbridge-macro = { version = "=1.0.42", path = "macro" }
25link-cplusplus = "1.0"
26
27[build-dependencies]
28cc = "1.0.49"
29cxxbridge-flags = { version = "=1.0.42", path = "flags", default-features = false }
30
31[dev-dependencies]
32cxx-build = { version = "=1.0.42", path = "gen/build" }
33cxx-gen = { version = "0.7", path = "gen/lib" }
34cxx-test-suite = { version = "0", path = "tests/ffi" }
35rustversion = "1.0"
36trybuild = { version = "1.0.33", features = ["diff"] }
37
38[workspace]
39members = ["demo", "flags", "gen/build", "gen/cmd", "gen/lib", "macro", "tests/ffi"]
40
41[package.metadata.docs.rs]
42targets = ["x86_64-unknown-linux-gnu"]
43
44[patch.crates-io]
45cxx = { path = "." }
46cxx-build = { path = "gen/build" }
47