2021-11-22 11:28:30 -05:00
|
|
|
[package]
|
2023-09-02 10:41:59 -04:00
|
|
|
# --- Bumpversion match - do not reorder
|
2021-11-22 11:28:30 -05:00
|
|
|
name = "veilid-core"
|
2024-07-07 13:32:33 -04:00
|
|
|
version = "0.3.3"
|
2023-09-02 10:41:59 -04:00
|
|
|
# ---
|
2023-09-02 12:28:31 -04:00
|
|
|
description = "Core library used to create a Veilid node and operate it as part of an application"
|
2023-07-19 12:48:44 -04:00
|
|
|
authors = ["Veilid Team <contact@veilid.com>"]
|
2022-01-04 14:25:32 -05:00
|
|
|
edition = "2021"
|
2021-11-22 11:28:30 -05:00
|
|
|
build = "build.rs"
|
2023-07-19 12:48:44 -04:00
|
|
|
license = "MPL-2.0"
|
2023-10-31 07:17:13 -04:00
|
|
|
resolver = "2"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "staticlib", "rlib"]
|
2023-10-31 07:17:13 -04:00
|
|
|
path = "src/lib.rs"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
[features]
|
2023-07-02 00:17:04 -04:00
|
|
|
|
|
|
|
# Common features
|
2023-08-27 17:39:50 -04:00
|
|
|
default = ["enable-crypto-vld0", "rt-tokio"]
|
2023-09-01 18:59:43 -04:00
|
|
|
default-async-std = ["enable-crypto-vld0", "rt-async-std"]
|
2023-08-29 16:15:47 -04:00
|
|
|
default-wasm = ["enable-crypto-vld0"]
|
2023-09-01 18:59:43 -04:00
|
|
|
|
|
|
|
# Runtimes
|
2023-08-22 13:19:59 -04:00
|
|
|
rt-async-std = [
|
|
|
|
"async-std",
|
|
|
|
"async-std-resolver",
|
2024-02-12 17:04:27 -05:00
|
|
|
"hickory-resolver",
|
2023-08-22 13:19:59 -04:00
|
|
|
"async_executors/async_std",
|
|
|
|
"veilid-tools/rt-async-std",
|
|
|
|
]
|
|
|
|
rt-tokio = [
|
|
|
|
"tokio",
|
|
|
|
"tokio-util",
|
|
|
|
"tokio-stream",
|
2024-02-12 17:04:27 -05:00
|
|
|
"hickory-resolver/tokio-runtime",
|
2023-08-22 13:19:59 -04:00
|
|
|
"async_executors/tokio_tp",
|
|
|
|
"async_executors/tokio_io",
|
|
|
|
"async_executors/tokio_timer",
|
|
|
|
"veilid-tools/rt-tokio",
|
|
|
|
]
|
2022-06-27 23:46:29 -04:00
|
|
|
|
2023-07-02 00:17:04 -04:00
|
|
|
# Crypto support features
|
|
|
|
enable-crypto-vld0 = []
|
|
|
|
enable-crypto-none = []
|
|
|
|
|
|
|
|
# Debugging and testing features
|
|
|
|
verbose-tracing = []
|
|
|
|
tracking = []
|
|
|
|
crypto-test = ["enable-crypto-vld0", "enable-crypto-none"]
|
|
|
|
crypto-test-none = ["enable-crypto-none"]
|
2023-02-13 16:12:46 -05:00
|
|
|
veilid_core_android_tests = ["dep:paranoid-android"]
|
|
|
|
veilid_core_ios_tests = ["dep:tracing-oslog"]
|
2024-07-21 21:15:54 -04:00
|
|
|
debug-locks = ["veilid-tools/debug-locks"]
|
2021-11-22 11:28:30 -05:00
|
|
|
|
2023-07-15 16:18:13 -04:00
|
|
|
### DEPENDENCIES
|
|
|
|
|
2021-11-22 11:28:30 -05:00
|
|
|
[dependencies]
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Tools
|
2024-07-07 13:32:33 -04:00
|
|
|
veilid-tools = { version = "0.3.3", path = "../veilid-tools", features = [
|
2023-08-27 17:39:50 -04:00
|
|
|
"tracing",
|
|
|
|
], default-features = false }
|
2024-07-17 19:09:28 -04:00
|
|
|
paste = "1.0.15"
|
2023-12-15 13:49:10 -05:00
|
|
|
once_cell = "1.19.0"
|
2024-07-17 19:09:28 -04:00
|
|
|
backtrace = "0.3.71"
|
|
|
|
num-traits = "0.2.19"
|
2023-07-15 16:18:13 -04:00
|
|
|
shell-words = "1.1.0"
|
2023-08-19 15:16:51 -04:00
|
|
|
static_assertions = "1.1.0"
|
|
|
|
cfg-if = "1.0.0"
|
|
|
|
hex = "0.4.3"
|
2024-07-17 19:09:28 -04:00
|
|
|
lazy_static = "1.5.0"
|
2023-08-19 15:16:51 -04:00
|
|
|
directories = "5.0.1"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Logging
|
2023-12-15 13:49:10 -05:00
|
|
|
tracing = { version = "0.1.40", features = ["log", "attributes"] }
|
|
|
|
tracing-subscriber = "0.3.18"
|
2023-08-19 15:16:51 -04:00
|
|
|
tracing-error = "0.2.0"
|
2024-07-17 19:09:28 -04:00
|
|
|
eyre = "0.6.12"
|
|
|
|
thiserror = "1.0.63"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Data structures
|
2023-12-15 13:49:10 -05:00
|
|
|
enumset = { version = "1.1.3", features = ["serde"] }
|
2024-07-03 13:15:59 -04:00
|
|
|
keyvaluedb = "0.1.2"
|
2024-07-17 19:09:28 -04:00
|
|
|
range-set-blaze = "0.1.16"
|
2023-07-15 16:18:13 -04:00
|
|
|
weak-table = "0.3.2"
|
2023-09-03 09:53:00 -04:00
|
|
|
hashlink = { package = "veilid-hashlink", version = "0.1.0", features = [
|
2023-09-02 15:47:19 -04:00
|
|
|
"serde_impl",
|
|
|
|
] }
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# System
|
2024-07-17 19:09:28 -04:00
|
|
|
futures-util = { version = "0.3.30", default-features = false, features = [
|
2023-08-22 13:19:59 -04:00
|
|
|
"alloc",
|
|
|
|
] }
|
2023-08-19 15:16:51 -04:00
|
|
|
flume = { version = "0.11.0", features = ["async"] }
|
2024-07-17 19:09:28 -04:00
|
|
|
parking_lot = "0.12.3"
|
|
|
|
lock_api = "0.4.12"
|
2023-08-19 15:16:51 -04:00
|
|
|
stop-token = { version = "0.7.0", default-features = false }
|
2023-05-29 17:09:29 -04:00
|
|
|
|
2023-07-15 16:18:13 -04:00
|
|
|
# Crypto
|
2024-07-17 19:09:28 -04:00
|
|
|
ed25519-dalek = { version = "2.1.1", default-features = false, features = [
|
2023-08-22 13:19:59 -04:00
|
|
|
"alloc",
|
|
|
|
"rand_core",
|
|
|
|
"digest",
|
|
|
|
"zeroize",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
x25519-dalek = { version = "2.0.1", default-features = false, features = [
|
2023-08-22 13:19:59 -04:00
|
|
|
"alloc",
|
|
|
|
"static_secrets",
|
|
|
|
"zeroize",
|
|
|
|
"precomputed-tables",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
curve25519-dalek = { version = "4.1.3", default-features = false, features = [
|
2023-08-22 13:19:59 -04:00
|
|
|
"alloc",
|
|
|
|
"zeroize",
|
|
|
|
"precomputed-tables",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
blake3 = { version = "1.5.3" }
|
2023-08-19 15:16:51 -04:00
|
|
|
chacha20poly1305 = "0.10.1"
|
|
|
|
chacha20 = "0.9.1"
|
2024-07-17 19:09:28 -04:00
|
|
|
argon2 = "0.5.3"
|
2023-05-29 17:09:29 -04:00
|
|
|
|
2023-07-15 16:18:13 -04:00
|
|
|
# Network
|
2024-07-17 19:09:28 -04:00
|
|
|
async-std-resolver = { version = "0.24.1", optional = true }
|
|
|
|
hickory-resolver = { version = "0.24.1", optional = true }
|
2023-05-29 17:09:29 -04:00
|
|
|
|
2023-07-15 16:18:13 -04:00
|
|
|
# Serialization
|
2024-07-17 19:09:28 -04:00
|
|
|
capnp = { version = "0.19.6", default-features = false, features = ["alloc"] }
|
|
|
|
serde = { version = "1.0.204", features = ["derive", "rc"] }
|
|
|
|
serde_json = { version = "1.0.120" }
|
2023-08-19 15:16:51 -04:00
|
|
|
serde-big-array = "0.5.1"
|
|
|
|
json = "0.12.4"
|
2024-07-17 19:09:28 -04:00
|
|
|
data-encoding = { version = "2.6.0" }
|
|
|
|
schemars = "0.8.21"
|
|
|
|
lz4_flex = { version = "0.11.3", default-features = false, features = [
|
2023-08-22 13:19:59 -04:00
|
|
|
"safe-encode",
|
|
|
|
"safe-decode",
|
|
|
|
] }
|
2024-07-03 13:15:59 -04:00
|
|
|
indent = "0.1.1"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
# Dependencies for native builds only
|
|
|
|
# Linux, Windows, Mac, iOS, Android
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Tools
|
2023-12-15 13:49:10 -05:00
|
|
|
config = { version = "0.13.4", features = ["yaml"] }
|
2024-03-03 18:38:25 -05:00
|
|
|
bugsalot = { package = "veilid-bugsalot", version = "0.2.0" }
|
2024-07-17 19:09:28 -04:00
|
|
|
chrono = "0.4.38"
|
|
|
|
libc = "0.2.155"
|
2023-09-16 21:56:19 -04:00
|
|
|
nix = "0.27.1"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# System
|
2023-08-22 13:19:59 -04:00
|
|
|
async-std = { version = "1.12.0", features = ["unstable"], optional = true }
|
2024-07-17 19:09:28 -04:00
|
|
|
sysinfo = { version = "^0.30.13" }
|
|
|
|
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 }
|
2023-08-19 15:16:51 -04:00
|
|
|
async-io = { version = "1.13.0" }
|
2024-07-17 19:09:28 -04:00
|
|
|
futures-util = { version = "0.3.30", default-features = false, features = [
|
2023-08-22 13:19:59 -04:00
|
|
|
"async-await",
|
|
|
|
"sink",
|
|
|
|
"std",
|
|
|
|
"io",
|
|
|
|
] }
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Data structures
|
2023-12-15 13:49:10 -05:00
|
|
|
keyring-manager = "0.5.1"
|
2024-07-03 13:15:59 -04:00
|
|
|
keyvaluedb-sqlite = "0.1.2"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Network
|
2024-07-17 18:58:33 -04:00
|
|
|
async-tungstenite = { version = "0.27.0", features = ["async-tls"] }
|
2023-10-13 17:57:38 -04:00
|
|
|
igd = { package = "veilid-igd", version = "0.1.1" }
|
2024-07-17 18:58:33 -04:00
|
|
|
async-tls = { version = "0.13.0" }
|
2023-12-15 13:49:10 -05:00
|
|
|
webpki = "0.22.4"
|
2024-07-17 19:09:28 -04:00
|
|
|
webpki-roots = "0.25.4"
|
|
|
|
rustls = "0.21.12"
|
2023-12-15 13:49:10 -05:00
|
|
|
rustls-pemfile = "1.0.4"
|
2024-07-17 19:09:28 -04:00
|
|
|
socket2 = { version = "0.5.7", features = ["all"] }
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
# Dependencies for WASM builds only
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2023-07-15 16:18:13 -04:00
|
|
|
|
2024-07-07 13:32:33 -04:00
|
|
|
veilid-tools = { version = "0.3.3", path = "../veilid-tools", default-features = false, features = [
|
2023-08-29 16:15:47 -04:00
|
|
|
"rt-wasm-bindgen",
|
|
|
|
] }
|
|
|
|
|
2023-07-15 16:18:13 -04:00
|
|
|
# Tools
|
2024-07-17 19:09:28 -04:00
|
|
|
getrandom = { version = "0.2.15", features = ["js"] }
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# System
|
2023-08-22 13:19:59 -04:00
|
|
|
async_executors = { version = "0.7.0", default-features = false, features = [
|
|
|
|
"bindgen",
|
|
|
|
"timer",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
wasm-bindgen = "0.2.92"
|
|
|
|
js-sys = "0.3.69"
|
|
|
|
wasm-bindgen-futures = "0.4.42"
|
2023-08-19 15:16:51 -04:00
|
|
|
send_wrapper = { version = "0.6.0", features = ["futures"] }
|
2024-06-29 23:00:29 -04:00
|
|
|
serde_bytes = { version = "0.11", default-features = false, features = [
|
2023-09-20 00:46:45 -04:00
|
|
|
"alloc",
|
|
|
|
] }
|
2023-08-31 22:01:00 -04:00
|
|
|
tsify = { version = "0.4.5", features = ["js"] }
|
2024-07-17 19:09:28 -04:00
|
|
|
serde-wasm-bindgen = "0.6.5"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Network
|
2023-08-19 15:16:51 -04:00
|
|
|
ws_stream_wasm = "0.7.4"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
# Logging
|
2023-08-19 15:16:51 -04:00
|
|
|
wasm-logger = "0.2.0"
|
|
|
|
tracing-wasm = "0.2.1"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
2023-07-15 16:18:13 -04:00
|
|
|
# Data Structures
|
2024-07-03 13:15:59 -04:00
|
|
|
keyvaluedb-web = "0.1.2"
|
2023-07-15 16:18:13 -04:00
|
|
|
|
|
|
|
### Configuration for WASM32 'web-sys' crate
|
2021-11-22 11:28:30 -05:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
2024-07-17 19:09:28 -04:00
|
|
|
version = "0.3.69"
|
2021-11-22 11:28:30 -05:00
|
|
|
features = [
|
2022-04-07 09:55:09 -04:00
|
|
|
'Document',
|
|
|
|
'HtmlDocument',
|
2022-01-03 23:58:26 -05:00
|
|
|
# 'Element',
|
|
|
|
# 'HtmlElement',
|
|
|
|
# 'Node',
|
|
|
|
'IdbFactory',
|
|
|
|
'IdbOpenDbRequest',
|
|
|
|
'Storage',
|
|
|
|
'Location',
|
|
|
|
'Window',
|
2021-11-22 11:28:30 -05:00
|
|
|
]
|
|
|
|
|
2021-12-30 23:24:17 -05:00
|
|
|
# Dependencies for Android
|
2021-11-22 11:28:30 -05:00
|
|
|
[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
|
|
|
paranoid-android = { version = "0.2.2", optional = true }
|
2021-11-22 11:28:30 -05:00
|
|
|
|
2022-01-15 18:24:37 -05:00
|
|
|
# Dependencies for Windows
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
2023-08-22 13:19:59 -04:00
|
|
|
winapi = { version = "0.3.9", features = ["iptypes", "iphlpapi"] }
|
|
|
|
windows = { version = "0.51.1", features = [
|
|
|
|
"Win32_NetworkManagement_Dns",
|
|
|
|
"Win32_Foundation",
|
|
|
|
] }
|
2023-08-19 15:16:51 -04:00
|
|
|
windows-permissions = "0.2.4"
|
2022-01-15 18:24:37 -05:00
|
|
|
|
2021-12-30 23:24:17 -05:00
|
|
|
# Dependencies for iOS
|
2021-11-22 11:28:30 -05:00
|
|
|
[target.'cfg(target_os = "ios")'.dependencies]
|
2023-08-19 15:16:51 -04:00
|
|
|
tracing-oslog = { version = "0.1.2", optional = true }
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
### DEV DEPENDENCIES
|
|
|
|
|
|
|
|
[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"
|
2023-12-15 13:49:10 -05:00
|
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
2021-11-22 11:28:30 -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",
|
|
|
|
] }
|
2024-07-17 19:09:28 -04:00
|
|
|
wasm-bindgen-test = "0.3.42"
|
2023-08-19 15:16:51 -04:00
|
|
|
console_error_panic_hook = "0.1.7"
|
|
|
|
wee_alloc = "0.4.5"
|
|
|
|
wasm-logger = "0.2.0"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
### BUILD OPTIONS
|
|
|
|
|
|
|
|
[build-dependencies]
|
2024-05-14 08:46:44 -04:00
|
|
|
capnpc = "0.19.0"
|
2023-10-08 12:40:17 -04:00
|
|
|
glob = "0.3.1"
|
2023-12-15 13:49:10 -05:00
|
|
|
filetime = "0.2.23"
|
2024-01-20 21:52:23 -05:00
|
|
|
sha2 = "0.10.8"
|
|
|
|
hex = "0.4.3"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
|
|
wasm-opt = ["-O", "--enable-mutable-globals"]
|