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