Skip to content

Commit

Permalink
Fix platform where wasmtime is enabled (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored Jan 3, 2024
1 parent b541e82 commit dbb594d
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 112 deletions.
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ soketto = { version = "0.7.1", optional = true }

# This list of targets matches the tier 1 and tier 2 of platforms supported by wasmtime: <https://docs.wasmtime.dev/stability-tiers.html>
# The arch and OS of a specific target can be found with the command `rustc +nightly -Z unstable-options --print target-spec-json --target ...`
[target.'cfg(any(all(target_arch = "x86_64", any(target_os = "windows", target_os = "linux", target_os = "macos")), all(target_arch = "aarch64", target_os = "linux"), all(target_arch = "s390x", target_os = "linux")))'.dependencies]
[target.'cfg(any(all(target_arch = "x86_64", any(target_os = "windows", all(target_os = "linux", target_env = "gnu"), target_os = "macos")), all(target_arch = "aarch64", target_os = "linux", target_env = "gnu"), all(target_arch = "s390x", target_os = "linux", target_env = "gnu")))'.dependencies]
# `wasmtime` feature
wasmtime = { version = "16.0.0", default-features = false, features = ["async", "cranelift"], optional = true }

Expand Down
Loading

0 comments on commit dbb594d

Please sign in to comment.