Skip to content

Commit

Permalink
change features
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan committed May 15, 2023
1 parent f2f55e8 commit e6f7e2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/fluvio-smartengine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ description = "The official Fluvio SmartEngine"
engine = []
wasi = ["wasmtime-wasi", "wasmtime-engine", "engine"]
transformation = ["serde_json", "serde_yaml"]
default = ["engine"]
wasmtime-engine = ["wasmtime"]
wasmedge-engine = ["wasmedge-sdk"]
default = ["wasmtime-engine"]
wasmtime-engine = ["engine", "wasmtime"]
wasmedge-engine = ["engine", "wasmedge-sdk"]

[dependencies]
tracing ={ workspace = true }
Expand Down
1 change: 0 additions & 1 deletion crates/fluvio-smartengine/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ impl SmartModuleChainInstance {
}

cfg_if::cfg_if! {
// TODO: turn on this check when ready
if #[cfg(all(feature = "wasmedge-engine", feature = "wasmtime-engine"))] {
compile_error!(
"Only one WASM runtime is allowed, but both `wasmedge-engine` and `wasmtime-engine` features are enabled"
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fluvio-smartmodule = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dirs = { workspace = true}
chrono = { workspace = true, features = ["clock"]}
fluvio-smartengine = { workspace = true, features = ["engine"], optional = true}
fluvio-smartengine = { workspace = true, features = ["wasmtime-engine"], optional = true}

[target.'cfg(unix)'.dependencies]
fluvio-spu-schema = { workspace = true, features = ["file",] }
Expand Down

0 comments on commit e6f7e2e

Please sign in to comment.