veilid/veilid-tools/Cargo.toml

107 lines
3.4 KiB
TOML
Raw Normal View History

2022-11-26 21:37:23 -05:00
[package]
2022-11-26 22:18:55 -05:00
name = "veilid-tools"
2023-07-22 16:28:05 -04:00
version = "0.1.6"
2023-07-19 12:48:44 -04:00
authors = ["Veilid Team <contact@veilid.com>"]
license = "MPL-2.0"
2022-11-26 21:37:23 -05:00
edition = "2021"
[lib]
2022-11-29 12:16:28 -05:00
# staticlib for iOS tests, cydlib for android tests, rlib for everything else
crate-type = [ "cdylib", "staticlib", "rlib" ]
2022-11-26 21:37:23 -05:00
[features]
2022-11-27 22:33:41 -05:00
default = []
2023-05-29 15:24:57 -04:00
rt-async-std = [ "async-std", "async_executors/async_std" ]
rt-tokio = [ "tokio", "tokio-util", "async_executors/tokio_tp", "async_executors/tokio_io", "async_executors/tokio_timer" ]
rt-wasm-bindgen = [ "async_executors/bindgen", "async_executors/timer"]
2022-11-26 21:37:23 -05:00
2022-12-01 14:32:02 -05:00
veilid_tools_android_tests = [ "dep:paranoid-android" ]
2022-12-01 10:46:52 -05:00
veilid_tools_ios_tests = [ "dep:oslog", "dep:tracing-oslog" ]
2022-11-27 22:33:41 -05:00
tracing = [ "dep:tracing", "dep:tracing-subscriber" ]
2023-06-25 14:09:22 -04:00
network-result-extra = []
network-result-info = []
2022-11-26 21:37:23 -05:00
[dependencies]
2022-11-26 22:18:55 -05:00
tracing = { version = "^0", features = ["log", "attributes"], optional = true }
2022-11-27 22:33:41 -05:00
tracing-subscriber = { version = "^0", optional = true }
log = { version = "^0" }
2022-11-26 21:37:23 -05:00
eyre = "^0"
static_assertions = "^1"
cfg-if = "^1"
thiserror = "^1"
futures-util = { version = "^0", default_features = false, features = ["alloc"] }
parking_lot = "^0"
once_cell = "^1"
stop-token = { version = "^0", default-features = false }
2022-11-27 22:33:41 -05:00
rand = "^0.7"
2022-11-29 19:22:33 -05:00
rust-fsm = "^0"
2022-12-19 15:40:41 -05:00
backtrace = "^0"
2023-06-21 13:40:12 -04:00
fn_name = "^0"
2023-06-23 12:05:28 -04:00
range-set-blaze = "0.1.5"
flume = { version = "^0", features = ["async"] }
2022-11-26 21:37:23 -05:00
# Dependencies for native builds only
# Linux, Windows, Mac, iOS, Android
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
async-std = { version = "^1", features = ["unstable"], optional = true}
tokio = { version = "^1", features = ["full"], optional = true}
tokio-util = { version = "^0", features = ["compat"], optional = true}
futures-util = { version = "^0", default-features = false, features = ["async-await", "sink", "std", "io"] }
2023-06-26 21:29:02 -04:00
chrono = "^0"
2022-11-26 21:37:23 -05:00
libc = "^0"
nix = "^0"
# Dependencies for WASM builds only
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "^0"
js-sys = "^0"
wasm-bindgen-futures = "^0"
2023-05-29 15:24:57 -04:00
async_executors = { version = "^0", default-features = false}
2022-11-26 21:37:23 -05:00
async-lock = "^2"
2022-11-26 22:18:55 -05:00
send_wrapper = { version = "^0.6", features = ["futures"] }
2022-11-26 21:37:23 -05:00
# Dependencies for Android
[target.'cfg(target_os = "android")'.dependencies]
jni = "^0"
jni-sys = "^0"
2022-11-30 16:15:54 -05:00
ndk = { version = "^0.7" }
ndk-glue = { version = "^0.7", features = ["logger"] }
2022-11-29 12:16:28 -05:00
lazy_static = "^1.4.0"
2022-12-01 14:32:02 -05:00
paranoid-android = { version = "^0", optional = true }
2022-11-29 12:16:28 -05:00
android-logd-logger = "0.2.1"
2022-11-26 21:37:23 -05:00
# Dependencies for Windows
2022-11-27 09:00:20 -05:00
# [target.'cfg(target_os = "windows")'.dependencies]
# windows = { version = "^0", features = [ "Win32_NetworkManagement_Dns", "Win32_Foundation", "alloc" ]}
# windows-permissions = "^0"
2022-11-26 21:37:23 -05:00
# Dependencies for iOS
[target.'cfg(target_os = "ios")'.dependencies]
2022-12-01 10:46:52 -05:00
oslog = { version = "^0", optional = true }
tracing-oslog = { version = "^0", optional = true }
2022-11-26 21:37:23 -05:00
### DEV DEPENDENCIES
[dev-dependencies]
serial_test = "^0"
2022-11-27 22:33:41 -05:00
simplelog = { version = "^0.12", features = [ "test" ] }
2022-11-26 21:37:23 -05:00
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
2022-11-27 10:52:07 -05:00
console_error_panic_hook = "^0"
2022-11-26 21:37:23 -05:00
wasm-bindgen-test = "^0"
wee_alloc = "^0"
wasm-logger = "^0"
2022-11-27 10:52:07 -05:00
tracing-wasm = { version = "^0" }
parking_lot = { version = "^0", features = ["wasm-bindgen"]}
2022-11-26 21:37:23 -05:00
### BUILD OPTIONS
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-mutable-globals"]
2022-11-27 22:33:41 -05:00
[package.metadata.ios]
build_targets = ["aarch64-apple-ios", "aarch64-apple-ios-sim", "x86_64-apple-ios"]
deployment_target = "12.0"
build_id_prefix = "com.veilid.veilidtools"