-
Notifications
You must be signed in to change notification settings - Fork 240
/
Copy pathCargo.toml
52 lines (48 loc) · 2.41 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "uniffi"
description = "a multi-language bindings generator for rust"
documentation = "https://mozilla.github.io/uniffi-rs"
homepage = "https://mozilla.github.io/uniffi-rs"
repository = "https://github.com/mozilla/uniffi-rs"
# Incrementing the minor version here means a breaking change to consumers.
# * See `docs/uniffi-versioning.md` for guidance on when to increment this
# * Make sure to also update `uniffi_bindgen::UNIFFI_CONTRACT_VERSION"
version = "0.28.3"
license = "MPL-2.0"
edition = "2021"
keywords = ["ffi", "bindgen"]
readme = "../README.md"
[dependencies]
uniffi_bindgen = { path = "../uniffi_bindgen", version = "=0.28.3", optional = true }
uniffi_build = { path = "../uniffi_build", version = "=0.28.3", optional = true }
uniffi_core = { path = "../uniffi_core", version = "=0.28.3" }
uniffi_macros = { path = "../uniffi_macros", version = "=0.28.3" }
anyhow = "1"
camino = { version = "1.0.8", optional = true }
cargo_metadata = { version = "0.15", optional = true }
clap = { version = "4", features = ["cargo", "std", "derive"], optional = true }
[dev-dependencies]
trybuild = "1"
[features]
default = ["cargo-metadata"]
# Printout tracing information on FFI calls. Useful for debugging issues with the bindings code.
ffi-trace = ["uniffi_core/ffi-trace", "uniffi_bindgen?/ffi-trace"]
# Support for features needed by the `build.rs` script. Enable this in your
# `build-dependencies`.
build = [ "dep:uniffi_build" ]
# Support for `uniffi_bindgen::generate_bindings`.
# Enable this feature for your `uniffi-bindgen` binaries if you don't need the full CLI.
bindgen = ["dep:uniffi_bindgen"]
cargo-metadata = ["dep:cargo_metadata", "uniffi_bindgen?/cargo-metadata"]
# Support for `uniffi_bindgen_main()`. Enable this feature for your
# `uniffi-bindgen` binaries.
cli = [ "bindgen", "dep:clap", "dep:camino" ]
# Support for running example/fixture tests for `uniffi-bindgen`. You probably
# don't need to enable this.
bindgen-tests = [ "dep:uniffi_bindgen", "uniffi_bindgen?/bindgen-tests" ]
# Enable support for Tokio's futures.
# This must still be opted into on a per-function basis using `#[uniffi::export(async_runtime = "tokio")]`.
tokio = ["uniffi_core/tokio"]
# Generate extra scaffolding functions that use FfiBuffer to pass arguments and return values
# This is needed for the gecko-js bindings.
scaffolding-ffi-buffer-fns = ["uniffi_core/scaffolding-ffi-buffer-fns", "uniffi_macros/scaffolding-ffi-buffer-fns"]