blob: 7638e8757c771b2e58f0a0c189c19d7e02ba5a6a [file] [log] [blame]
[package]
name = "cbindgen"
version = "0.27.0"
authors = [
"Emilio Cobos Álvarez <emilio@crisal.io>",
"Jeff Muizelaar <jmuizelaar@mozilla.com>",
"Kartikaya Gupta <kats@mozilla.com>",
"Ryan Hunt <rhunt@eqrion.net>"
]
license = "MPL-2.0"
description = "A tool for generating C bindings to Rust code."
keywords = ["bindings", "ffi", "code-generation"]
categories = ["external-ffi-bindings", "development-tools::ffi"]
repository = "https://github.com/mozilla/cbindgen"
edition = "2018"
rust-version = "1.74"
exclude = [
"tests/profile.rs", # Test relies in a sub-crate, see https://github.com/rust-lang/cargo/issues/9017
]
[dependencies]
clap = { version = "4.3", optional = true }
indexmap = "2.1.0"
log = "0.4"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
serde_json = "1.0"
tempfile = "3"
toml = "0.8.8"
proc-macro2 = "1.0.60"
quote = "1"
heck = "0.4"
[dependencies.syn]
version = "2.0.64"
default-features = false
features = ["clone-impls", "extra-traits", "fold", "full", "parsing", "printing"]
[dev-dependencies]
serial_test = { version = "2.0.0", default-features = false }
pretty_assertions = "1.4.0"
[features]
default = ["clap"]
[[bin]]
name = "cbindgen"
path = "src/main.rs"
doc = false
required-features = ["clap"]
[lib]
name = "cbindgen"
path = "src/lib.rs"
[workspace]
exclude = [
"tests/depfile/single_crate_config",
"tests/depfile/single_crate_default_config",
"tests/depfile/single_crate",
"tests/rust/bitfield",
"tests/rust/dep_v2",
"tests/rust/dep_v2/dep",
"tests/rust/derive_eq",
"tests/rust/expand_default_features",
"tests/rust/expand_dep_v2",
"tests/rust/expand_dep_v2/dep_v2",
"tests/rust/expand_dep_v2/dep",
"tests/rust/expand_dep",
"tests/rust/expand_dep/dep",
"tests/rust/expand_features",
"tests/rust/expand_no_default_features",
"tests/rust/expand",
"tests/rust/external_workspace_child",
"tests/rust/literal_target",
"tests/rust/mod_2015",
"tests/rust/mod_2018",
"tests/rust/mod_attr",
"tests/rust/mod_path",
"tests/rust/package_version",
"tests/rust/rename_crate",
"tests/rust/rename_crate/dependency",
"tests/rust/rename_crate/no_extern",
"tests/rust/rename_crate/old_dep",
"tests/rust/workspace",
"tests/rust/workspace/dep",
]