1[package]
2name = "cbindgen"
3version = "0.26.0"
4authors = [
5 "Emilio Cobos Álvarez <emilio@crisal.io>",
6 "Jeff Muizelaar <jmuizelaar@mozilla.com>",
7 "Kartikaya Gupta <kats@mozilla.com>",
8 "Ryan Hunt <rhunt@eqrion.net>"
9]
10license = "MPL-2.0"
11description = "A tool for generating C bindings to Rust code."
12keywords = ["bindings", "ffi", "code-generation"]
13categories = ["external-ffi-bindings", "development-tools::ffi"]
14repository = "https://github.com/mozilla/cbindgen"
15edition = "2018"
16rust-version = "1.64"
17exclude = [
18 "tests/profile.rs", # Test relies in a sub-crate, see https://github.com/rust-lang/cargo/issues/9017
19]
20
21[dependencies]
22clap = { version = "3.1", optional = true }
23indexmap = "1"
24log = "0.4"
25serde = { version = "1.0.103", default-features = false, features = ["derive"] }
26serde_json = "1.0"
27tempfile = "3"
28toml = "0.5"
29proc-macro2 = "1.0.60"
30quote = "1"
31heck = "0.4"
32
33[dependencies.syn]
34version = "1.0.88"
35default-features = false
36features = ["clone-impls", "extra-traits", "fold", "full", "parsing", "printing"]
37
38[dev-dependencies]
39serial_test = "0.5.0"
40
41[features]
42default = ["clap"]
43
44[[bin]]
45name = "cbindgen"
46path = "src/main.rs"
47doc = false
48required-features = ["clap"]
49
50[lib]
51name = "cbindgen"
52path = "src/lib.rs"
53