[package] name = "veilid-core" version = "0.1.0" authors = ["John Smith "] edition = "2021" 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] default = [ "enable-crypto-vld0" ] crypto-test = [ "enable-crypto-vld0", "enable-crypto-none" ] crypto-test-none = [ "enable-crypto-none" ] enable-crypto-vld0 = [] enable-crypto-none = [] 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"] rt-wasm-bindgen = ["veilid-tools/rt-wasm-bindgen", "async_executors/bindgen"] veilid_core_android_tests = ["dep:paranoid-android"] veilid_core_ios_tests = ["dep:tracing-oslog"] tracking = [] [dependencies] veilid-tools = { path = "../veilid-tools", features = [ "tracing" ] } tracing = { version = "^0", features = ["log", "attributes"] } tracing-subscriber = "^0" tracing-error = "^0" eyre = "^0" capnp = { version = "^0", default_features = false } static_assertions = "^1" cfg-if = "^1" thiserror = "^1" hex = "^0" generic-array = "^0" secrecy = "^0" chacha20poly1305 = "^0" chacha20 = "^0" hashlink = { path = "../external/hashlink", features = ["serde_impl"] } serde = { version = "^1", features = ["derive" ] } serde_json = { version = "^1" } serde-big-array = "^0" futures-util = { version = "^0", default_features = false, features = ["alloc"] } parking_lot = "^0" lazy_static = "^1" directories = "^4" once_cell = "^1" json = "^0" owning_ref = "^0" flume = { version = "^0", features = ["async"] } enumset = { version= "^1", features = ["serde"] } backtrace = { version = "^0" } owo-colors = "^3" stop-token = { version = "^0", default-features = false } ed25519-dalek = { version = "^1", default_features = false, features = ["alloc", "u64_backend"] } x25519-dalek = { package = "x25519-dalek-ng", version = "^1", default_features = false, features = ["u64_backend"] } curve25519-dalek = { package = "curve25519-dalek-ng", version = "^4", default_features = false, features = ["alloc", "u64_backend"] } # ed25519-dalek needs rand 0.7 until it updates itself rand = "0.7" # curve25519-dalek-ng is stuck on digest 0.9.0 digest = "0.9.0" blake3 = { version = "1.1.0" } rtnetlink = { version = "^0", default-features = false, optional = true } async-std-resolver = { version = "^0", optional = true } trust-dns-resolver = { version = "^0", optional = true } keyvaluedb = { path = "../external/keyvaluedb/keyvaluedb" } rkyv = { version = "^0", default_features = false, features = ["std", "alloc", "strict", "size_32", "validation"] } data-encoding = { version = "^2" } weak-table = "0.3.2" range-set-blaze = "0.1.4" # 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} tokio-stream = { version = "^0", features = ["net"], optional = true} async-io = { version = "^1" } async-tungstenite = { version = "^0", features = ["async-tls"] } maplit = "^1" config = { version = "^0", features = ["yaml"] } keyring-manager = { path = "../external/keyring-manager" } async-tls = "^0.11" igd = { path = "../external/rust-igd" } webpki = "^0" webpki-roots = "^0" rustls = "^0.19" rustls-pemfile = "^0.2" futures-util = { version = "^0", default-features = false, features = ["async-await", "sink", "std", "io"] } keyvaluedb-sqlite = { path = "../external/keyvaluedb/keyvaluedb-sqlite" } socket2 = { version = "^0", features = ["all"] } bugsalot = "^0" chrono = "^0" 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" keyvaluedb-web = { path = "../external/keyvaluedb/keyvaluedb-web" } getrandom = { version = "^0", features = ["js"] } ws_stream_wasm = "^0" async_executors = { version = "^0", default-features = false, features = [ "bindgen", "timer" ]} async-lock = "^2" send_wrapper = { version = "^0", features = ["futures"] } wasm-logger = "^0" tracing-wasm = "^0" # Configuration for WASM32 'web-sys' crate [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "^0" features = [ 'Document', 'HtmlDocument', # 'Element', # 'HtmlElement', # 'Node', 'IdbFactory', 'IdbOpenDbRequest', 'Storage', 'Location', 'Window', ] # Dependencies for Android [target.'cfg(target_os = "android")'.dependencies] jni = "^0" jni-sys = "^0" ndk = { version = "^0.7" } ndk-glue = { version = "^0.7", features = ["logger"] } paranoid-android = { version = "^0", optional = true } # Dependenices for all Unix (Linux, Android, MacOS, iOS) [target.'cfg(unix)'.dependencies] ifstructs = "^0" # Dependencies for Linux or Android [target.'cfg(any(target_os = "android",target_os = "linux"))'.dependencies] rtnetlink = { version = "^0", default-features = false } # Dependencies for Windows [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "^0", features = [ "iptypes", "iphlpapi" ] } windows = { version = "^0", features = [ "Win32_NetworkManagement_Dns", "Win32_Foundation", "alloc" ]} windows-permissions = "^0" # Dependencies for iOS [target.'cfg(target_os = "ios")'.dependencies] tracing-oslog = { version = "^0", optional = true } # 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" console_error_panic_hook = "^0" wee_alloc = "^0" wasm-logger = "^0" ### BUILD OPTIONS [build-dependencies] capnpc = "^0" [package.metadata.wasm-pack.profile.release] wasm-opt = ["-O", "--enable-mutable-globals"]