veilid/veilid-core/Cargo.toml

271 lines
7.1 KiB
TOML
Raw Normal View History

2021-11-22 16:28:30 +00:00
[package]
name = "veilid-core"
2023-08-20 16:37:18 +00:00
version = "0.1.10"
2023-07-19 16:48:44 +00:00
authors = ["Veilid Team <contact@veilid.com>"]
2022-01-04 19:25:32 +00:00
edition = "2021"
2021-11-22 16:28:30 +00:00
build = "build.rs"
2023-07-19 16:48:44 +00:00
license = "MPL-2.0"
2021-11-22 16:28:30 +00:00
[lib]
crate-type = ["cdylib", "staticlib", "rlib"]
[features]
2023-07-02 04:17:04 +00:00
# Common features
2023-05-29 19:24:57 +00:00
default = ["enable-crypto-vld0"]
2023-08-22 17:19:59 +00:00
rt-async-std = [
"async-std",
"async-std-resolver",
"async_executors/async_std",
"rtnetlink/smol_socket",
"veilid-tools/rt-async-std",
]
rt-tokio = [
"tokio",
"tokio-util",
"tokio-stream",
"trust-dns-resolver/tokio-runtime",
"async_executors/tokio_tp",
"async_executors/tokio_io",
"async_executors/tokio_timer",
"rtnetlink/tokio_socket",
"veilid-tools/rt-tokio",
]
2023-05-29 19:24:57 +00:00
rt-wasm-bindgen = ["veilid-tools/rt-wasm-bindgen", "async_executors/bindgen"]
2022-06-28 03:46:29 +00:00
2023-07-02 04:17:04 +00:00
# Crypto support features
enable-crypto-vld0 = []
enable-crypto-none = []
# Debugging and testing features
verbose-tracing = []
tracking = []
debug-dht = []
crypto-test = ["enable-crypto-vld0", "enable-crypto-none"]
crypto-test-none = ["enable-crypto-none"]
2023-02-13 21:12:46 +00:00
veilid_core_android_tests = ["dep:paranoid-android"]
veilid_core_ios_tests = ["dep:tracing-oslog"]
2023-06-25 18:09:22 +00:00
network-result-extra = ["veilid-tools/network-result-extra"]
2021-11-22 16:28:30 +00:00
2023-07-15 20:18:13 +00:00
### DEPENDENCIES
2021-11-22 16:28:30 +00:00
[dependencies]
2023-07-15 20:18:13 +00:00
# Tools
2023-08-22 17:19:59 +00:00
veilid-tools = { path = "../veilid-tools", features = ["tracing"] }
paste = "1.0.14"
once_cell = "1.18.0"
owning_ref = "0.4.1"
backtrace = "0.3.68"
2023-07-15 20:18:13 +00:00
num-traits = "0.2.15"
shell-words = "1.1.0"
static_assertions = "1.1.0"
cfg-if = "1.0.0"
hex = "0.4.3"
lazy_static = "1.4.0"
directories = "5.0.1"
2023-07-15 20:18:13 +00:00
# Logging
tracing = { version = "0.1.37", features = ["log", "attributes"] }
tracing-subscriber = "0.3.17"
tracing-error = "0.2.0"
eyre = "0.6.8"
thiserror = "1.0.47"
2023-07-15 20:18:13 +00:00
# Data structures
2023-08-22 17:19:59 +00:00
enumset = { version = "1.1.2", features = ["serde"] }
2023-07-15 20:18:13 +00:00
keyvaluedb = { path = "../external/keyvaluedb/keyvaluedb" }
range-set-blaze = "0.1.9"
2023-07-15 20:18:13 +00:00
weak-table = "0.3.2"
generic-array = "0.14.7"
2022-03-20 14:52:03 +00:00
hashlink = { path = "../external/hashlink", features = ["serde_impl"] }
2023-07-15 20:18:13 +00:00
# System
2023-08-22 17:19:59 +00:00
futures-util = { version = "0.3.28", default_features = false, features = [
"alloc",
] }
flume = { version = "0.11.0", features = ["async"] }
parking_lot = "0.12.1"
stop-token = { version = "0.7.0", default-features = false }
2023-05-29 21:09:29 +00:00
2023-07-15 20:18:13 +00:00
# Crypto
2023-08-22 17:19:59 +00:00
ed25519-dalek = { version = "2.0.0", default_features = false, features = [
"alloc",
"rand_core",
"digest",
"zeroize",
] }
x25519-dalek = { version = "2.0.0", default_features = false, features = [
"alloc",
"static_secrets",
"zeroize",
"precomputed-tables",
] }
curve25519-dalek = { version = "4.0.0", default_features = false, features = [
"alloc",
"zeroize",
"precomputed-tables",
] }
blake3 = { version = "1.4.1" }
chacha20poly1305 = "0.10.1"
chacha20 = "0.9.1"
argon2 = "0.5.1"
2023-05-29 21:09:29 +00:00
2023-07-15 20:18:13 +00:00
# Network
async-std-resolver = { version = "0.22.0", optional = true }
trust-dns-resolver = { version = "0.22.0", optional = true }
2023-08-22 17:19:59 +00:00
enum-as-inner = "=0.5.1" # temporary fix for trust-dns-resolver v0.22.0
2023-05-29 21:09:29 +00:00
2023-07-15 20:18:13 +00:00
# Serialization
capnp = { version = "0.17.2", default_features = false }
2023-08-22 17:19:59 +00:00
serde = { version = "1.0.183", features = ["derive"] }
serde_json = { version = "1.0.105" }
serde-big-array = "0.5.1"
json = "0.12.4"
data-encoding = { version = "2.4.0" }
2023-06-03 22:33:27 +00:00
schemars = "0.8.12"
2023-08-22 17:19:59 +00:00
lz4_flex = { version = "0.11.1", default-features = false, features = [
"safe-encode",
"safe-decode",
] }
2021-11-22 16:28:30 +00:00
# Dependencies for native builds only
# Linux, Windows, Mac, iOS, Android
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2023-07-15 20:18:13 +00:00
# Tools
config = { version = "0.13.3", features = ["yaml"] }
2023-07-15 20:18:13 +00:00
bugsalot = { git = "https://github.com/crioux/bugsalot.git" }
chrono = "0.4.26"
libc = "0.2.147"
nix = "0.26.2"
2023-07-15 20:18:13 +00:00
# System
2023-08-22 17:19:59 +00:00
async-std = { version = "1.12.0", features = ["unstable"], optional = true }
tokio = { version = "1.32.0", features = ["full"], optional = true }
tokio-util = { version = "0.7.8", features = ["compat"], optional = true }
tokio-stream = { version = "0.1.14", features = ["net"], optional = true }
async-io = { version = "1.13.0" }
2023-08-22 17:19:59 +00:00
futures-util = { version = "0.3.28", default-features = false, features = [
"async-await",
"sink",
"std",
"io",
] }
2023-07-15 20:18:13 +00:00
# Data structures
2022-01-09 17:37:25 +00:00
keyring-manager = { path = "../external/keyring-manager" }
2023-07-15 20:18:13 +00:00
keyvaluedb-sqlite = { path = "../external/keyvaluedb/keyvaluedb-sqlite" }
# Network
async-tungstenite = { version = "0.23.0", features = ["async-tls"] }
2023-08-22 17:19:59 +00:00
igd = { path = "../external/rust-igd" }
async-tls = "0.12.0"
webpki = "0.22.0"
webpki-roots = "0.25.2"
rustls = "0.20.8"
rustls-pemfile = "1.0.3"
socket2 = { version = "0.5.3", features = ["all"] }
2021-11-22 16:28:30 +00:00
# Dependencies for WASM builds only
[target.'cfg(target_arch = "wasm32")'.dependencies]
2023-07-15 20:18:13 +00:00
# Tools
getrandom = { version = "0.2.4", features = ["js"] }
2023-07-15 20:18:13 +00:00
# System
2023-08-22 17:19:59 +00:00
async_executors = { version = "0.7.0", default-features = false, features = [
"bindgen",
"timer",
] }
async-lock = "2.8.0"
wasm-bindgen = "0.2.87"
js-sys = "0.3.64"
wasm-bindgen-futures = "0.4.37"
send_wrapper = { version = "0.6.0", features = ["futures"] }
2023-07-15 20:18:13 +00:00
# Network
ws_stream_wasm = "0.7.4"
2023-07-15 20:18:13 +00:00
# Logging
wasm-logger = "0.2.0"
tracing-wasm = "0.2.1"
2021-11-22 16:28:30 +00:00
2023-07-15 20:18:13 +00:00
# Data Structures
keyvaluedb-web = { path = "../external/keyvaluedb/keyvaluedb-web" }
### Configuration for WASM32 'web-sys' crate
2021-11-22 16:28:30 +00:00
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.64"
2021-11-22 16:28:30 +00:00
features = [
2022-04-07 13:55:09 +00:00
'Document',
'HtmlDocument',
2022-01-04 04:58:26 +00:00
# 'Element',
# 'HtmlElement',
# 'Node',
'IdbFactory',
'IdbOpenDbRequest',
'Storage',
'Location',
'Window',
2021-11-22 16:28:30 +00:00
]
2021-12-31 04:24:17 +00:00
# Dependencies for Android
2021-11-22 16:28:30 +00:00
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.21.1"
jni-sys = "0.3.0"
ndk = { version = "0.7.0" }
ndk-glue = { version = "0.7.0", features = ["logger"] }
paranoid-android = { version = "0.2.1", optional = true }
2021-11-22 16:28:30 +00:00
2021-12-31 04:24:17 +00:00
# Dependenices for all Unix (Linux, Android, MacOS, iOS)
[target.'cfg(unix)'.dependencies]
ifstructs = "0.1.1"
2021-12-31 04:24:17 +00:00
# Dependencies for Linux or Android
2023-05-29 21:09:29 +00:00
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
2023-08-22 17:19:59 +00:00
rtnetlink = { version = "=0.13.0", default-features = false }
2023-07-16 02:28:08 +00:00
netlink-sys = { version = "=0.8.5" }
netlink-packet-route = { version = "=0.17.0" }
2021-12-31 04:24:17 +00:00
2022-01-15 23:24:37 +00:00
# Dependencies for Windows
[target.'cfg(target_os = "windows")'.dependencies]
2023-08-22 17:19:59 +00:00
winapi = { version = "0.3.9", features = ["iptypes", "iphlpapi"] }
windows = { version = "0.51.1", features = [
"Win32_NetworkManagement_Dns",
"Win32_Foundation",
] }
windows-permissions = "0.2.4"
2022-01-15 23:24:37 +00:00
2021-12-31 04:24:17 +00:00
# Dependencies for iOS
2021-11-22 16:28:30 +00:00
[target.'cfg(target_os = "ios")'.dependencies]
tracing-oslog = { version = "0.1.2", optional = true }
2021-11-22 16:28:30 +00:00
# Rusqlite configuration to ensure platforms that don't come with sqlite get it bundled
# Except WASM which doesn't use sqlite
[target.'cfg(all(not(target_os = "ios"),not(target_os = "android"),not(target_arch = "wasm32")))'.dependencies.rusqlite]
version = "0.29.0"
2021-11-22 16:28:30 +00:00
features = ["bundled"]
### DEV DEPENDENCIES
[dev-dependencies]
serial_test = "2.0.0"
2021-11-22 16:28:30 +00:00
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
2023-08-22 17:19:59 +00:00
simplelog = { version = "0.12.1", features = ["test"] }
2021-11-22 16:28:30 +00:00
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.37"
console_error_panic_hook = "0.1.7"
wee_alloc = "0.4.5"
wasm-logger = "0.2.0"
2021-11-22 16:28:30 +00:00
### BUILD OPTIONS
[build-dependencies]
capnpc = "0.17.2"
2021-11-22 16:28:30 +00:00
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-mutable-globals"]