[package]
edition = "2024"
rust-version = "1.91.1"
name = "wstd"
version = "0.6.6"
authors = [
"Yoshua Wuyts <rust@yosh.is>",
"Pat Hickey <pat@moreproductive.org>",
"Dan Gohman <dev@sunfishcode.online>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An async standard library for Wasm Components and WASI 0.2"
documentation = "https://docs.rs/wstd"
readme = "README.md"
keywords = [
"WebAssembly",
"async",
"stdlib",
"Components",
]
categories = [
"wasm",
"asynchronous",
]
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wstd"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
targets = ["wasm32-wasip2"]
[features]
default = ["json"]
json = [
"dep:serde",
"dep:serde_json",
]
[lib]
name = "wstd"
path = "src/lib.rs"
[[example]]
name = "complex_http_client"
path = "examples/complex_http_client.rs"
[[example]]
name = "http_client"
path = "examples/http_client.rs"
[[example]]
name = "http_server"
path = "examples/http_server.rs"
[[example]]
name = "http_server_proxy"
path = "examples/http_server_proxy.rs"
[[example]]
name = "tcp_echo_server"
path = "examples/tcp_echo_server.rs"
[[example]]
name = "tcp_stream_client"
path = "examples/tcp_stream_client.rs"
[[test]]
name = "http_first_byte_timeout"
path = "tests/http_first_byte_timeout.rs"
[[test]]
name = "http_get"
path = "tests/http_get.rs"
[[test]]
name = "http_get_json"
path = "tests/http_get_json.rs"
[[test]]
name = "http_handle_error_code"
path = "tests/http_handle_error_code.rs"
[[test]]
name = "http_post"
path = "tests/http_post.rs"
[[test]]
name = "http_post_json"
path = "tests/http_post_json.rs"
[[test]]
name = "http_timeout"
path = "tests/http_timeout.rs"
[[test]]
name = "sleep"
path = "tests/sleep.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-task]
version = "4.7"
[dependencies.bytes]
version = "1.10.1"
[dependencies.futures-lite]
version = "1.12.0"
[dependencies.http]
version = "1.1"
[dependencies.http-body]
version = "1.0.1"
[dependencies.http-body-util]
version = "0.1.3"
[dependencies.itoa]
version = "1"
[dependencies.pin-project-lite]
version = "0.2.8"
[dependencies.serde]
version = "1"
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.slab]
version = "0.4.9"
[dependencies.wasip2]
version = "1.0"
[dependencies.wstd-macro]
version = "=0.6.6"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.clap]
version = "4.5.26"
features = ["derive"]
[dev-dependencies.futures-concurrency]
version = "7.6"
[dev-dependencies.http-body-util]
version = "0.1.3"
[dev-dependencies.humantime]
version = "2.1.0"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"