-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (63 loc) · 1.86 KB
/
Cargo.toml
File metadata and controls
77 lines (63 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[workspace]
members = [
"crates/pack-abi",
"crates/pack-derive",
"crates/pack-guest",
"crates/pack-guest-macros",
]
exclude = [
"packages/adder",
"packages/doubler",
"packages/echo",
"packages/logger",
"packages/sexpr",
"packages/typed-actor",
"packages/typed-math",
]
[workspace.package]
version = "0.5.1"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/colinrozzi/pack"
[workspace.dependencies]
packr-abi = { version = "0.5.1", path = "crates/pack-abi", default-features = false }
packr-derive = { version = "0.5.1", path = "crates/pack-derive" }
packr-guest = { version = "0.5.1", path = "crates/pack-guest" }
packr-guest-macros = { version = "0.5.1", path = "crates/pack-guest-macros" }
[package]
name = "packr"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "A WebAssembly package runtime with extended WIT support for recursive types"
[[bin]]
name = "packr"
path = "src/main.rs"
[[bin]]
name = "pact"
path = "src/bin/pact.rs"
[dependencies]
# CLI
clap = { version = "4.0", features = ["derive"] }
# WASM execution with async support
wasmtime = "27"
# Serialization for recursive types
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" # For debugging, can add binary format later
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Static composition - parse and emit WASM modules
wasmparser = "0.219"
wasm-encoder = "0.219"
# Hashing for interface compatibility
sha2 = "0.10"
# Re-export pack-abi types for unified Value/FromValue/ConversionError
packr-abi = { workspace = true, features = ["std", "serde"] }
[dev-dependencies]
wat = "1.0" # For writing test modules in WAT
tokio = { version = "1.0", features = ["rt", "macros"] } # For async tests
[[example]]
name = "transforms"
path = "examples/transforms/main.rs"