2019-10-20 18:51:12 +00:00
|
|
|
[package]
|
|
|
|
name = "cxx"
|
2024-04-02 11:59:25 +00:00
|
|
|
version = "1.0.97" # remember to update html_root_url
|
2019-10-20 18:51:12 +00:00
|
|
|
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
2022-08-01 07:06:45 +00:00
|
|
|
categories = ["development-tools::ffi", "api-bindings", "no-std"]
|
2019-10-20 18:51:12 +00:00
|
|
|
description = "Safe interop between Rust and C++"
|
|
|
|
documentation = "https://docs.rs/cxx"
|
2022-08-01 02:19:02 +00:00
|
|
|
edition = "2018"
|
2023-02-15 17:25:32 +00:00
|
|
|
exclude = ["/demo", "/gen", "/syntax", "/third-party", "/tools/buck/prelude"]
|
2022-08-01 02:19:02 +00:00
|
|
|
homepage = "https://cxx.rs"
|
2022-08-31 05:53:09 +00:00
|
|
|
keywords = ["ffi", "c++"]
|
2022-08-01 02:19:02 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
links = "cxxbridge1"
|
|
|
|
repository = "https://github.com/dtolnay/cxx"
|
2023-01-07 20:37:15 +00:00
|
|
|
rust-version = "1.60"
|
2019-10-20 18:51:12 +00:00
|
|
|
|
2020-05-12 03:26:41 +00:00
|
|
|
[features]
|
2021-12-07 22:38:29 +00:00
|
|
|
default = ["std", "cxxbridge-flags/default"] # c++11
|
2020-08-29 00:25:29 +00:00
|
|
|
"c++14" = ["cxxbridge-flags/c++14"]
|
|
|
|
"c++17" = ["cxxbridge-flags/c++17"]
|
|
|
|
"c++20" = ["cxxbridge-flags/c++20"]
|
2021-12-07 22:49:41 +00:00
|
|
|
alloc = []
|
|
|
|
std = ["alloc"]
|
2020-05-12 03:26:41 +00:00
|
|
|
|
2019-10-20 18:51:12 +00:00
|
|
|
[dependencies]
|
2024-04-02 11:59:25 +00:00
|
|
|
cxxbridge-macro = { version = "=1.0.97", path = "macro" }
|
2020-01-24 23:22:09 +00:00
|
|
|
link-cplusplus = "1.0"
|
2019-10-20 18:51:12 +00:00
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
cc = "1.0.49"
|
2024-04-02 11:59:25 +00:00
|
|
|
cxxbridge-flags = { version = "=1.0.97", path = "flags", default-features = false }
|
2019-10-20 18:51:12 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-04-02 11:59:25 +00:00
|
|
|
cxx-build = { version = "=1.0.97", path = "gen/build" }
|
2020-11-17 07:47:01 +00:00
|
|
|
cxx-gen = { version = "0.7", path = "gen/lib" }
|
2020-01-26 00:49:00 +00:00
|
|
|
cxx-test-suite = { version = "0", path = "tests/ffi" }
|
2019-10-20 18:51:12 +00:00
|
|
|
rustversion = "1.0"
|
2022-10-05 05:21:07 +00:00
|
|
|
trybuild = { version = "1.0.66", features = ["diff"] }
|
2019-10-20 18:51:12 +00:00
|
|
|
|
2022-12-18 17:34:17 +00:00
|
|
|
[lib]
|
|
|
|
doc-scrape-examples = false
|
|
|
|
|
2019-10-20 18:51:12 +00:00
|
|
|
[workspace]
|
2020-09-08 05:26:46 +00:00
|
|
|
members = ["demo", "flags", "gen/build", "gen/cmd", "gen/lib", "macro", "tests/ffi"]
|
2020-03-17 20:29:06 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
2021-12-09 06:45:48 +00:00
|
|
|
rustdoc-args = ["--cfg", "doc_cfg"]
|
2021-03-28 06:15:10 +00:00
|
|
|
|
|
|
|
[patch.crates-io]
|
|
|
|
cxx = { path = "." }
|
|
|
|
cxx-build = { path = "gen/build" }
|