[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]
optional = true
version = "1"
[dependencies.serde_json]
optional = true
version = "1"
[dependencies.slab]
version = "0.4.9"
[dependencies.wasip2]
version = "1.0"
[dependencies.wstd-macro]
version = "=0.6.5"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.clap]
features = ["derive"]
version = "4.5.26"
[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]
features = ["derive"]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[[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"
[features]
default = ["json"]
json = ["dep:serde", "dep:serde_json"]
[lib]
name = "wstd"
path = "src/lib.rs"
[package]
authors = ["Yoshua Wuyts <rust@yosh.is>", "Pat Hickey <pat@moreproductive.org>", "Dan Gohman <dev@sunfishcode.online>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["wasm", "asynchronous"]
description = "An async standard library for Wasm Components and WASI 0.2"
documentation = "https://docs.rs/wstd"
edition = "2024"
keywords = ["WebAssembly", "async", "stdlib", "Components"]
license = "Apache-2.0 WITH LLVM-exception"
name = "wstd"
readme = "README.md"
repository = "https://github.com/bytecodealliance/wstd"
resolver = "2"
rust-version = "1.88"
version = "0.6.5"
[package.metadata.docs.rs]
all-features = true
targets = ["wasm32-wasip2"]
[[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_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"