-
Notifications
You must be signed in to change notification settings - Fork 13
/
Cargo.toml
95 lines (88 loc) · 2.36 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
[package]
name = "spin-sdk"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
homepage = { workspace = true }
documentation = "https://docs.rs/spin-sdk"
readme = "README.md"
description = """
The Spin Rust SDK makes it easy to build Spin components in Rust.
"""
[lib]
name = "spin_sdk"
[dependencies]
anyhow = "1"
async-trait = "0.1.74"
chrono = "0.4.38"
form_urlencoded = "1.0"
spin-executor = { version = "3.1.0", path = "crates/executor" }
spin-macro = { version = "3.1.0", path = "crates/macro" }
thiserror = "1.0.37"
wit-bindgen = { workspace = true }
routefinder = "0.5.3"
once_cell = { workspace = true }
futures = { workspace = true }
bytes = "1"
hyperium = { package = "http", version = "1.0.0" }
serde_json = { version = "1.0.96", optional = true }
serde = { version = "1.0.163", optional = true }
[features]
default = ["export-sdk-language", "json"]
export-sdk-language = []
json = ["dep:serde", "dep:serde_json"]
[workspace]
resolver = "2"
members = [
"examples/hello-world",
"examples/http-outbound/http-hello",
"examples/http-outbound/outbound-http",
"examples/http-outbound/outbound-http-to-same-app",
"examples/http-router",
"examples/http-router-macro",
"examples/json-http",
"examples/redis",
"examples/redis-async",
"examples/key-value",
"examples/mysql",
"examples/postgres",
"examples/postgres-v3",
"examples/redis-outbound",
"examples/mqtt-outbound",
"examples/variables",
"examples/wasi-http-streaming-outgoing-body",
"examples/wasi-http-streaming-file",
"test-cases/simple-http",
"test-cases/simple-redis",
"crates/*",
]
[dev-dependencies]
http-body-util = "0.1.0"
hyper = "1.2.0"
reqwest = "0.11.24"
tokio = { version = "1.36.0", features = [
"fs",
"process",
"macros",
"rt-multi-thread",
"sync",
] }
wasmtime = "18.0.1"
wasmtime-wasi = "18.0.1"
wasmtime-wasi-http = "18.0.1"
wit-component = "0.200.0"
[workspace.package]
version = "3.1.0"
authors = ["Fermyon Engineering <engineering@fermyon.com>"]
edition = "2021"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/fermyon/spin-rust-sdk"
rust-version = "1.78"
homepage = "https://developer.fermyon.com/spin/v2/rust-components"
[workspace.dependencies]
wit-bindgen = "0.16.0"
futures = "0.3.28"
once_cell = "1.18.0"