diff --git a/veilid-core/Cargo.toml b/veilid-core/Cargo.toml index 926c0fd2..66d2aa04 100644 --- a/veilid-core/Cargo.toml +++ b/veilid-core/Cargo.toml @@ -10,7 +10,8 @@ license = "LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)" crate-type = ["cdylib", "staticlib", "rlib"] [features] -default = [ "enable-crypto-none", "enable-crypto-vld0" ] +default = [ "enable-crypto-vld0" ] +crypto-test = [ "enable-crypto-vld0", "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"] diff --git a/veilid-flutter/rust/Cargo.toml b/veilid-flutter/rust/Cargo.toml index 933a37df..8b8b0773 100644 --- a/veilid-flutter/rust/Cargo.toml +++ b/veilid-flutter/rust/Cargo.toml @@ -7,12 +7,13 @@ edition = "2021" crate-type = ["cdylib", "staticlib", "rlib"] [features] -default = [ "rt-tokio" ] +default = [ "rt-tokio", "veilid-core/default" ] +crypto-test = [ "rt-tokio", "veilid-core/crypto-test"] rt-async-std = [ "veilid-core/rt-async-std", "async-std", "opentelemetry/rt-async-std", "opentelemetry-otlp/grpc-sys"] rt-tokio = [ "veilid-core/rt-tokio", "tokio", "tokio-stream", "tokio-util", "opentelemetry/rt-tokio"] [dependencies] -veilid-core = { path="../../veilid-core" } +veilid-core = { path="../../veilid-core", default-features = false } tracing = { version = "^0", features = ["log", "attributes"] } tracing-subscriber = "^0" parking_lot = "^0" diff --git a/veilid-server/Cargo.toml b/veilid-server/Cargo.toml index 9a31f676..72664670 100644 --- a/veilid-server/Cargo.toml +++ b/veilid-server/Cargo.toml @@ -11,13 +11,15 @@ name = "veilid-server" path = "src/main.rs" [features] -default = [ "rt-tokio" ] +default = [ "rt-tokio", "veilid-core/default" ] +crypto-test = [ "rt-tokio", "veilid-core/crypto-test"] + rt-async-std = [ "veilid-core/rt-async-std", "async-std", "opentelemetry/rt-async-std", "opentelemetry-otlp/grpc-sys" ] rt-tokio = [ "veilid-core/rt-tokio", "tokio", "tokio-stream", "tokio-util", "opentelemetry/rt-tokio", "console-subscriber" ] tracking = [ "veilid-core/tracking" ] [dependencies] -veilid-core = { path = "../veilid-core" } +veilid-core = { path = "../veilid-core", default-features = false } tracing = { version = "^0", features = ["log", "attributes"] } tracing-subscriber = { version = "^0", features = ["env-filter"] } tracing-appender = "^0" diff --git a/veilid-wasm/Cargo.toml b/veilid-wasm/Cargo.toml index 2d21b445..b253fbf1 100644 --- a/veilid-wasm/Cargo.toml +++ b/veilid-wasm/Cargo.toml @@ -8,8 +8,13 @@ license = "LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)" [lib] crate-type = ["cdylib", "rlib"] + +[features] +default = [ "veilid-core/rt-tokio", "veilid-core/default" ] +crypto-test = [ "veilid-core/rt-tokio", "veilid-core/crypto-test"] + [dependencies] -veilid-core = { path = "../veilid-core" } +veilid-core = { path = "../veilid-core", default-features = false } tracing = { version = "^0", features = ["log", "attributes"] } tracing-wasm = "^0"