2021-11-22 11:28:30 -05:00
|
|
|
[package]
|
|
|
|
name = "veilid-core"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["John Smith <nobody@example.com>"]
|
2022-01-04 14:25:32 -05:00
|
|
|
edition = "2021"
|
2021-11-22 11:28:30 -05:00
|
|
|
build = "build.rs"
|
|
|
|
license = "LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "staticlib", "rlib"]
|
|
|
|
|
|
|
|
[features]
|
2023-05-29 15:24:57 -04:00
|
|
|
default = ["enable-crypto-vld0"]
|
|
|
|
crypto-test = ["enable-crypto-vld0", "enable-crypto-none"]
|
|
|
|
crypto-test-none = ["enable-crypto-none"]
|
2023-03-12 13:23:02 -04:00
|
|
|
enable-crypto-vld0 = []
|
|
|
|
enable-crypto-none = []
|
2023-05-29 17:09:29 -04: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 15:24:57 -04:00
|
|
|
rt-wasm-bindgen = ["veilid-tools/rt-wasm-bindgen", "async_executors/bindgen"]
|
2022-06-27 23:46:29 -04:00
|
|
|
|
2023-02-13 16:12:46 -05:00
|
|
|
veilid_core_android_tests = ["dep:paranoid-android"]
|
|
|
|
veilid_core_ios_tests = ["dep:tracing-oslog"]
|
2022-09-07 10:33:14 -04:00
|
|
|
tracking = []
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
[dependencies]
|
2022-11-26 22:18:55 -05:00
|
|
|
veilid-tools = { path = "../veilid-tools", features = [ "tracing" ] }
|
2022-06-07 21:31:05 -04:00
|
|
|
tracing = { version = "^0", features = ["log", "attributes"] }
|
|
|
|
tracing-subscriber = "^0"
|
|
|
|
tracing-error = "^0"
|
2022-07-10 17:36:50 -04:00
|
|
|
eyre = "^0"
|
2021-11-22 11:28:30 -05:00
|
|
|
capnp = { version = "^0", default_features = false }
|
|
|
|
static_assertions = "^1"
|
2022-01-10 22:36:54 -05:00
|
|
|
cfg-if = "^1"
|
2021-11-22 11:28:30 -05:00
|
|
|
thiserror = "^1"
|
|
|
|
hex = "^0"
|
|
|
|
generic-array = "^0"
|
|
|
|
secrecy = "^0"
|
|
|
|
chacha20poly1305 = "^0"
|
2022-04-03 21:35:14 -04:00
|
|
|
chacha20 = "^0"
|
2022-03-20 10:52:03 -04:00
|
|
|
hashlink = { path = "../external/hashlink", features = ["serde_impl"] }
|
2022-11-26 14:16:02 -05:00
|
|
|
serde = { version = "^1", features = ["derive" ] }
|
|
|
|
serde_json = { version = "^1" }
|
2021-11-22 11:28:30 -05:00
|
|
|
serde-big-array = "^0"
|
|
|
|
futures-util = { version = "^0", default_features = false, features = ["alloc"] }
|
|
|
|
parking_lot = "^0"
|
|
|
|
lazy_static = "^1"
|
2022-01-10 22:36:54 -05:00
|
|
|
directories = "^4"
|
2021-11-22 11:28:30 -05:00
|
|
|
once_cell = "^1"
|
2022-03-08 22:32:12 -05:00
|
|
|
json = "^0"
|
2022-09-06 16:49:43 -04:00
|
|
|
owning_ref = "^0"
|
2022-03-10 10:18:47 -05:00
|
|
|
flume = { version = "^0", features = ["async"] }
|
2022-04-20 20:49:16 -04:00
|
|
|
enumset = { version= "^1", features = ["serde"] }
|
2022-09-07 10:33:14 -04:00
|
|
|
backtrace = { version = "^0" }
|
2022-05-31 19:54:52 -04:00
|
|
|
owo-colors = "^3"
|
2022-06-29 10:13:49 -04:00
|
|
|
stop-token = { version = "^0", default-features = false }
|
2023-05-29 17:09:29 -04:00
|
|
|
|
2021-11-22 11:28:30 -05:00
|
|
|
ed25519-dalek = { version = "^1", default_features = false, features = ["alloc", "u64_backend"] }
|
2023-05-29 16:22:41 -04:00
|
|
|
x25519-dalek = { version = "^1", default_features = false, features = ["u64_backend"] }
|
|
|
|
curve25519-dalek = { version = "^3", default_features = false, features = ["alloc", "u64_backend"] }
|
|
|
|
blake3 = { version = "^1" }
|
2023-05-29 17:09:29 -04:00
|
|
|
|
|
|
|
|
2022-07-02 21:35:00 -04:00
|
|
|
async-std-resolver = { version = "^0", optional = true }
|
|
|
|
trust-dns-resolver = { version = "^0", optional = true }
|
2023-05-29 16:22:41 -04:00
|
|
|
enum-as-inner = "=0.5.1" # temporary fix for trust-dns-resolver v0.22.0
|
2023-05-29 17:09:29 -04:00
|
|
|
|
2022-11-06 16:07:56 -05:00
|
|
|
keyvaluedb = { path = "../external/keyvaluedb/keyvaluedb" }
|
2023-05-29 17:09:29 -04:00
|
|
|
|
2023-05-29 15:24:57 -04:00
|
|
|
rkyv = { version = "^0", default_features = false, features = ["std", "alloc", "strict", "size_32", "validation"] }
|
2022-12-15 20:16:42 -05:00
|
|
|
data-encoding = { version = "^2" }
|
2023-02-13 16:12:46 -05:00
|
|
|
weak-table = "0.3.2"
|
2023-05-29 15:24:57 -04:00
|
|
|
range-set-blaze = "0.1.5"
|
|
|
|
argon2 = "0.5.0"
|
2023-05-25 18:20:03 -04:00
|
|
|
paste = "1.0.12"
|
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]
|
2022-06-26 21:12:16 -04:00
|
|
|
async-std = { version = "^1", features = ["unstable"], optional = true}
|
2022-06-27 23:46:29 -04:00
|
|
|
tokio = { version = "^1", features = ["full"], optional = true}
|
|
|
|
tokio-util = { version = "^0", features = ["compat"], optional = true}
|
|
|
|
tokio-stream = { version = "^0", features = ["net"], optional = true}
|
2022-05-31 19:54:52 -04:00
|
|
|
async-io = { version = "^1" }
|
2022-06-26 21:12:16 -04:00
|
|
|
async-tungstenite = { version = "^0", features = ["async-tls"] }
|
2021-11-22 11:28:30 -05:00
|
|
|
maplit = "^1"
|
|
|
|
config = { version = "^0", features = ["yaml"] }
|
2022-01-09 12:37:25 -05:00
|
|
|
keyring-manager = { path = "../external/keyring-manager" }
|
2021-11-22 11:28:30 -05:00
|
|
|
async-tls = "^0.11"
|
2022-08-22 13:27:26 -04:00
|
|
|
igd = { path = "../external/rust-igd" }
|
2021-11-22 11:28:30 -05:00
|
|
|
webpki = "^0"
|
|
|
|
webpki-roots = "^0"
|
|
|
|
rustls = "^0.19"
|
|
|
|
rustls-pemfile = "^0.2"
|
2022-01-29 13:53:55 -05:00
|
|
|
futures-util = { version = "^0", default-features = false, features = ["async-await", "sink", "std", "io"] }
|
2022-08-19 14:24:11 -04:00
|
|
|
keyvaluedb-sqlite = { path = "../external/keyvaluedb/keyvaluedb-sqlite" }
|
2023-05-29 15:24:57 -04:00
|
|
|
socket2 = { version = "^0", features = ["all"] }
|
|
|
|
bugsalot = { git = "https://github.com/crioux/bugsalot.git" }
|
2021-12-16 21:57:28 -05:00
|
|
|
chrono = "^0"
|
2021-12-30 23:24:17 -05:00
|
|
|
libc = "^0"
|
2022-05-18 14:09:21 -04:00
|
|
|
nix = "^0"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
# Dependencies for WASM builds only
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
wasm-bindgen = "^0"
|
|
|
|
js-sys = "^0"
|
|
|
|
wasm-bindgen-futures = "^0"
|
|
|
|
keyvaluedb-web = { path = "../external/keyvaluedb/keyvaluedb-web" }
|
|
|
|
getrandom = { version = "^0", features = ["js"] }
|
|
|
|
ws_stream_wasm = "^0"
|
2022-07-12 08:02:22 -04:00
|
|
|
async_executors = { version = "^0", default-features = false, features = [ "bindgen", "timer" ]}
|
2022-01-04 14:25:32 -05:00
|
|
|
async-lock = "^2"
|
2022-07-12 08:02:22 -04:00
|
|
|
send_wrapper = { version = "^0", features = ["futures"] }
|
2022-06-08 20:07:26 -04:00
|
|
|
wasm-logger = "^0"
|
|
|
|
tracing-wasm = "^0"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
# Configuration for WASM32 'web-sys' crate
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
|
|
|
version = "^0"
|
|
|
|
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]
|
|
|
|
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-12-01 14:32:02 -05:00
|
|
|
paranoid-android = { version = "^0", optional = true }
|
2021-11-22 11:28:30 -05:00
|
|
|
|
2021-12-30 23:24:17 -05:00
|
|
|
# Dependenices for all Unix (Linux, Android, MacOS, iOS)
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
|
|
ifstructs = "^0"
|
|
|
|
|
|
|
|
# Dependencies for Linux or Android
|
2023-05-29 17:09:29 -04:00
|
|
|
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
|
|
|
|
rtnetlink = { version = "^0", default-features = false}
|
|
|
|
netlink-sys = { version = "0.8" }
|
|
|
|
netlink-packet-route = { version = "0.15" }
|
2021-12-30 23:24:17 -05:00
|
|
|
|
2022-01-15 18:24:37 -05:00
|
|
|
# Dependencies for Windows
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
|
|
winapi = { version = "^0", features = [ "iptypes", "iphlpapi" ] }
|
2022-07-02 20:40:34 -04:00
|
|
|
windows = { version = "^0", features = [ "Win32_NetworkManagement_Dns", "Win32_Foundation", "alloc" ]}
|
2022-05-18 14:09:21 -04:00
|
|
|
windows-permissions = "^0"
|
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]
|
2022-12-01 10:46:52 -05:00
|
|
|
tracing-oslog = { version = "^0", optional = true }
|
2021-11-22 11:28:30 -05: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"
|
|
|
|
features = ["bundled"]
|
|
|
|
|
|
|
|
### DEV DEPENDENCIES
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
serial_test = "^0"
|
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
|
|
simplelog = { version = "^0", features=["test"] }
|
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
|
|
wasm-bindgen-test = "^0"
|
2022-03-15 09:33:34 -04:00
|
|
|
console_error_panic_hook = "^0"
|
|
|
|
wee_alloc = "^0"
|
|
|
|
wasm-logger = "^0"
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
### BUILD OPTIONS
|
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
capnpc = "^0"
|
|
|
|
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
|
|
wasm-opt = ["-O", "--enable-mutable-globals"]
|