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