Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/wiggle/Cargo.toml
1690 views
1
[package]
2
name = "wiggle"
3
version.workspace = true
4
authors = ["Pat Hickey <[email protected]>", "Jakub Konka <[email protected]>", "Alex Crichton <[email protected]>"]
5
edition.workspace = true
6
rust-version.workspace = true
7
license = "Apache-2.0 WITH LLVM-exception"
8
description = "Runtime components of wiggle code generator"
9
categories = ["wasm"]
10
keywords = ["webassembly", "wasm"]
11
repository = "https://github.com/bytecodealliance/wasmtime"
12
include = ["src/**/*", "README.md", "LICENSE"]
13
14
[lints]
15
workspace = true
16
17
[dependencies]
18
thiserror = { workspace = true }
19
witx = { version = "0.9.1", optional = true }
20
wiggle-macro = { workspace = true }
21
tracing = { workspace = true }
22
bitflags = { workspace = true }
23
async-trait = { workspace = true }
24
wasmtime = { workspace = true, optional = true }
25
anyhow = { workspace = true }
26
27
[dev-dependencies]
28
wiggle-test = { path = "test-helpers" }
29
proptest = "1.0.0"
30
tokio = { version = "1", features = ["rt-multi-thread","time", "macros"] }
31
wasmtime = { workspace = true }
32
33
[[test]]
34
name = "atoms_async"
35
path = "tests/atoms_async.rs"
36
required-features = ["wasmtime_async"]
37
38
[[test]]
39
name = "wasmtime_async"
40
path = "tests/wasmtime_async.rs"
41
required-features = ["wasmtime_async", "wasmtime/wat"]
42
43
[[test]]
44
name = "wasmtime_sync"
45
path = "tests/wasmtime_sync.rs"
46
required-features = ["wasmtime/wat"]
47
48
[[test]]
49
name = "wasmtime_integration"
50
path = "tests/wasmtime_integration.rs"
51
required-features = ["wasmtime/wat"]
52
53
54
[features]
55
# The wiggle proc-macro emits some code (inside `pub mod metadata`) guarded
56
# by the `wiggle_metadata` feature flag. We use this feature flag so that
57
# users of wiggle are not forced to take a direct dependency on the `witx`
58
# crate unless they want it.
59
wiggle_metadata = ['witx', "wiggle-macro/wiggle_metadata"]
60
61
# The `tracing` crate can use the `log` ecosystem of backends with this
62
# non-default feature. We don't need to provide this by default, but its
63
# useful for users that don't want to use `tracing-subscriber` to get
64
# the logs out of wiggle-generated libraries.
65
tracing_log = [ "tracing/log" ]
66
67
# This feature enables integration with wasmtime.
68
wasmtime = ["dep:wasmtime"]
69
70
# Support for async in the wasmtime crates.
71
wasmtime_async = [ "wasmtime/async" ]
72
73
default = ["wiggle_metadata", "wasmtime", "wasmtime_async" ]
74
75