-
Notifications
You must be signed in to change notification settings - Fork 37
/
Cargo.toml
102 lines (94 loc) · 2.64 KB
/
Cargo.toml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "wasm-workers-server"
description = "A WebAssembly framework to develop and run serverless applications anywhere"
homepage = "https://workers.wasmlabs.dev/"
documentation = "https://workers.wasmlabs.dev/docs/intro"
version = { workspace = true }
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
# Common package definition for all crates / kits
[workspace.package]
version = "1.7.0"
edition = "2021"
authors = ["Wasm Labs <https://wasmlabs.dev>"]
license = "Apache-2.0"
repository = "https://github.com/vmware-labs/wasm-workers-server/"
[[bin]]
name = "wws"
path = "src/main.rs"
# Main binary (wws CLI dependencies)
[dependencies]
actix-web = { workspace = true }
anyhow = "1.0.66"
env_logger = "0.10.0"
clap = { version = "4.0.10", features = ["derive"] }
prettytable-rs = "0.10.0"
wws-config = { workspace = true }
wws-router = { workspace = true }
wws-server = { workspace = true }
wws-project = { workspace = true }
[dev-dependencies]
reqwest = { version = "0.11", features = ["blocking"] }
[features]
default = ["all"]
all = ["wws_config", "wws_router", "wws_server"]
wws_config = []
wws_router = []
wws_server = []
vendored-openssl = ["wws-project/vendored-openssl"]
[workspace]
members = [
"crates/api-manage",
"crates/api-manage-openapi",
"crates/config",
"crates/data-kv",
"crates/project",
"crates/panel",
"crates/router",
"crates/runtimes",
"crates/server",
"crates/store",
"crates/worker",
"kits/rust",
"kits/rust/worker",
]
# Exclude examples
exclude = [
"examples/rust-basic",
"examples/rust-fetch",
"examples/rust-kv",
"examples/rust-params",
"examples/rust-pdf-create",
"examples/rust-wasi-nn",
"examples/rust-wasi-nn-preload",
# It uses incompatible crate versions
"kits/javascript",
]
[workspace.dependencies]
actix-web = "4"
lazy_static = "1.4.0"
reqwest = "0.11"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.85"
tokio = "1.28"
toml = "0.7.0"
wws-config = { path = "./crates/config" }
wws-runtimes = { path = "./crates/runtimes" }
wws-data-kv = { path = "./crates/data-kv" }
wws-router = { path = "./crates/router" }
wws-server = { path = "./crates/server" }
wws-store = { path = "./crates/store" }
wws-worker = { path = "./crates/worker" }
wws-project = { path = "./crates/project" }
wws-panel = { path = "./crates/panel" }
wws-api-manage = { path = "./crates/api-manage" }
wws-api-manage-openapi = { path = "./crates/api-manage-openapi" }
wasmparser = "0.113.2"
wasmtime = "13.0.0"
wasmtime-wasi = "13.0.0"
wasmtime-wasi-nn = "13.0.0"
wasi-common = "13.0.0"
path-slash = "0.2.1"
openssl = { version = "^0.10.60" }