2022-11-26 21:37:23 -05:00
|
|
|
[package]
|
2023-09-02 10:41:59 -04:00
|
|
|
# --- Bumpversion match - do not reorder
|
2022-11-26 22:18:55 -05:00
|
|
|
name = "veilid-tools"
|
2024-08-01 20:19:34 -04:00
|
|
|
version = "0.3.4"
|
2023-09-02 10:41:59 -04:00
|
|
|
# ---
|
2023-09-02 12:28:31 -04:00
|
|
|
description = "A collection of baseline tools for Rust development use by Veilid and Veilid-enabled Rust applications"
|
2024-08-16 21:01:30 -04:00
|
|
|
repository = "https://gitlab.com/veilid/veilid"
|
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
|
2023-08-27 17:39:50 -04:00
|
|
|
crate-type = ["cdylib", "staticlib", "rlib"]
|
2023-10-31 07:17:13 -04:00
|
|
|
path = "src/lib.rs"
|
2022-11-26 21:37:23 -05:00
|
|
|
|
|
|
|
[features]
|
2023-08-27 17:39:50 -04:00
|
|
|
default = ["rt-tokio"]
|
2023-10-13 19:45:03 -04:00
|
|
|
rt-async-std = [
|
|
|
|
"async-std",
|
|
|
|
"async_executors/async_std",
|
|
|
|
"rtnetlink/smol_socket",
|
|
|
|
]
|
2023-08-27 17:39:50 -04:00
|
|
|
rt-tokio = [
|
|
|
|
"tokio",
|
|
|
|
"tokio-util",
|
2023-12-14 17:23:43 -05:00
|
|
|
"tokio-stream",
|
2023-10-13 18:17:10 -04:00
|
|
|
"rtnetlink/tokio_socket",
|
2023-08-27 17:39:50 -04:00
|
|
|
"async_executors/tokio_tp",
|
|
|
|
"async_executors/tokio_io",
|
|
|
|
"async_executors/tokio_timer",
|
|
|
|
]
|
|
|
|
rt-wasm-bindgen = ["async_executors/bindgen", "async_executors/timer"]
|
|
|
|
|
|
|
|
veilid_tools_android_tests = ["dep:paranoid-android"]
|
2023-10-13 19:45:03 -04:00
|
|
|
veilid_tools_ios_tests = ["dep:tracing", "dep:oslog", "dep:tracing-oslog"]
|
2024-07-21 22:23:55 -04:00
|
|
|
tracing = ["dep:tracing", "dep:tracing-subscriber", "tokio/tracing"]
|
2024-07-20 18:05:24 -04:00
|
|
|
debug-locks = []
|
2022-11-26 21:37:23 -05:00
|
|
|
|
|
|
|
[dependencies]
|
2023-12-15 13:49:10 -05:00
|
|
|
tracing = { version = "0.1.40", features = [
|
2023-08-27 17:39:50 -04:00
|
|
|
"log",
|
|
|
|
"attributes",
|
|
|
|
], optional = true }
|
2024-03-17 18:48:56 -04:00
|
|
|
tracing-subscriber = { version = "0.3.18", features = [
|
|
|
|
"env-filter",
|
|
|
|
], optional = true }
|
2024-07-17 19:09:28 -04:00
|
|
|
log = { version = "0.4.22" }
|
|
|
|
eyre = "0.6.12"
|
2023-08-19 15:16:51 -04:00
|
|
|
static_assertions = "1.1.0"
|
|
|
|
cfg-if = "1.0.0"
|
2024-07-17 19:09:28 -04:00
|
|
|
thiserror = "1.0.63"
|
|
|
|
futures-util = { version = "0.3.30", default-features = false, features = [
|
2023-08-27 17:39:50 -04:00
|
|
|
"alloc",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
parking_lot = "0.12.3"
|
2024-07-20 18:05:24 -04:00
|
|
|
async-lock = "3.4.0"
|
2023-12-15 13:49:10 -05:00
|
|
|
once_cell = "1.19.0"
|
2023-08-19 15:16:51 -04:00
|
|
|
stop-token = { version = "0.7.0", default-features = false }
|
|
|
|
rand = "0.8.5"
|
|
|
|
rand_core = "0.6.4"
|
2024-07-17 19:09:28 -04:00
|
|
|
backtrace = "0.3.71"
|
2023-08-19 15:16:51 -04:00
|
|
|
fn_name = "0.1.0"
|
2024-07-17 19:09:28 -04:00
|
|
|
range-set-blaze = "0.1.16"
|
2023-08-19 15:16:51 -04:00
|
|
|
flume = { version = "0.11.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]
|
2023-08-27 17:39:50 -04:00
|
|
|
async-std = { version = "1.12.0", features = ["unstable"], optional = true }
|
2024-07-17 19:09:28 -04:00
|
|
|
tokio = { version = "1.38.1", features = ["full"], optional = true }
|
|
|
|
tokio-util = { version = "0.7.11", features = ["compat"], optional = true }
|
|
|
|
tokio-stream = { version = "0.1.15", features = ["net"], optional = true }
|
|
|
|
futures-util = { version = "0.3.30", default-features = false, features = [
|
2023-08-27 17:39:50 -04:00
|
|
|
"async-await",
|
|
|
|
"sink",
|
|
|
|
"std",
|
|
|
|
"io",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
chrono = "0.4.38"
|
2022-11-26 21:37:23 -05:00
|
|
|
|
2024-07-17 19:09:28 -04:00
|
|
|
libc = "0.2.155"
|
2023-10-13 17:57:38 -04:00
|
|
|
nix = { version = "0.27.1", features = ["user"] }
|
2022-11-26 21:37:23 -05:00
|
|
|
|
|
|
|
# Dependencies for WASM builds only
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2024-07-17 19:09:28 -04:00
|
|
|
wasm-bindgen = "0.2.92"
|
2024-08-16 21:01:30 -04:00
|
|
|
js-sys = "0.3.70"
|
2024-07-17 19:09:28 -04:00
|
|
|
wasm-bindgen-futures = "0.4.42"
|
2023-08-27 17:39:50 -04:00
|
|
|
async_executors = { version = "0.7.0", default-features = false }
|
2023-09-02 20:30:34 -04:00
|
|
|
getrandom = { version = "0.2", features = ["js"] }
|
2023-09-01 21:13:05 -04:00
|
|
|
|
2023-08-19 15:16:51 -04:00
|
|
|
send_wrapper = { version = "0.6.0", features = ["futures"] }
|
2022-11-26 21:37:23 -05:00
|
|
|
|
2023-10-13 18:17:10 -04:00
|
|
|
# Dependencies for Linux or Android
|
|
|
|
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
|
|
|
|
rtnetlink = { version = "=0.13.1", default-features = false }
|
|
|
|
netlink-sys = { version = "=0.8.5" }
|
|
|
|
netlink-packet-route = { version = "=0.17.1" }
|
|
|
|
|
2022-11-26 21:37:23 -05:00
|
|
|
# Dependencies for Android
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
2023-08-19 15:16:51 -04:00
|
|
|
jni = "0.21.1"
|
|
|
|
jni-sys = "0.3.0"
|
|
|
|
ndk = { version = "0.7.0" }
|
|
|
|
ndk-glue = { version = "0.7.0", features = ["logger"] }
|
2024-07-17 19:09:28 -04:00
|
|
|
lazy_static = "1.5.0"
|
|
|
|
paranoid-android = { version = "0.2.2", optional = true }
|
2023-09-01 17:44:42 -04:00
|
|
|
android_logger = "0.13.3"
|
2022-11-26 21:37:23 -05:00
|
|
|
|
|
|
|
# Dependencies for Windows
|
2023-10-13 17:57:38 -04:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
2023-11-07 22:00:11 -05:00
|
|
|
winapi = { version = "0.3.9", features = ["iptypes", "iphlpapi", "winerror"] }
|
2022-11-26 21:37:23 -05:00
|
|
|
|
|
|
|
# Dependencies for iOS
|
|
|
|
[target.'cfg(target_os = "ios")'.dependencies]
|
2023-08-19 15:16:51 -04:00
|
|
|
oslog = { version = "0.2.0", optional = true }
|
|
|
|
tracing-oslog = { version = "0.1.2", optional = true }
|
2022-11-26 21:37:23 -05:00
|
|
|
|
2023-10-13 18:17:10 -04:00
|
|
|
# Dependenices for all Unix (Linux, Android, MacOS, iOS)
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
|
|
ifstructs = "0.1.1"
|
|
|
|
|
2022-11-26 21:37:23 -05:00
|
|
|
### DEV DEPENDENCIES
|
|
|
|
|
2023-10-22 11:24:15 -04:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
2024-07-17 19:09:28 -04:00
|
|
|
simplelog = { version = "0.12.2", features = ["test"] }
|
2023-10-22 11:24:15 -04:00
|
|
|
serial_test = "2.0.0"
|
2022-11-26 21:37:23 -05:00
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
2023-10-22 11:24:15 -04:00
|
|
|
serial_test = { version = "2.0.0", default-features = false, features = [
|
|
|
|
"async",
|
|
|
|
] }
|
2023-08-19 15:16:51 -04:00
|
|
|
console_error_panic_hook = "0.1.7"
|
2024-07-17 19:09:28 -04:00
|
|
|
wasm-bindgen-test = "0.3.42"
|
2023-08-19 15:16:51 -04:00
|
|
|
wee_alloc = "0.4.5"
|
|
|
|
wasm-logger = "0.2.0"
|
|
|
|
tracing-wasm = { version = "0.2.1" }
|
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]
|
2023-08-27 17:39:50 -04:00
|
|
|
build_targets = [
|
|
|
|
"aarch64-apple-ios",
|
|
|
|
"aarch64-apple-ios-sim",
|
|
|
|
"x86_64-apple-ios",
|
|
|
|
]
|
2022-11-27 22:33:41 -05:00
|
|
|
deployment_target = "12.0"
|
|
|
|
build_id_prefix = "com.veilid.veilidtools"
|
2024-08-16 21:01:30 -04:00
|
|
|
|
|
|
|
[lints.rust]
|
|
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
|