| 1 |
[package] |
| 2 |
name = "wasip2" |
| 3 |
version = "1.0.1+wasi-0.2.4" |
| 4 |
description = "WASIp2 API bindings for Rust" |
| 5 |
categories = ["no-std", "wasm"] |
| 6 |
keywords = ["webassembly", "wasm"] |
| 7 |
documentation = "https://docs.rs/wasip2" |
| 8 |
readme = "README.md" |
| 9 |
license.workspace = true |
| 10 |
edition.workspace = true |
| 11 |
repository.workspace = true |
| 12 |
rust-version.workspace = true |
| 13 |
|
| 14 |
[dependencies] |
| 15 |
wit-bindgen = { workspace = true } |
| 16 |
|
| 17 |
# When built as part of libstd |
| 18 |
core = { optional = true, workspace = true } |
| 19 |
alloc = { optional = true, workspace = true } |
| 20 |
|
| 21 |
[features] |
| 22 |
default = ["std", "bitflags"] |
| 23 |
std = [] |
| 24 |
bitflags = ["wit-bindgen/bitflags"] |
| 25 |
# Unstable feature to support being a libstd dependency |
| 26 |
rustc-dep-of-std = ["core", "alloc", "wit-bindgen/rustc-dep-of-std"] |
| 27 |
|
| 28 |
[[example]] |
| 29 |
name = "cli-command-no_std" |
| 30 |
crate-type = ["cdylib"] |
| 31 |
|
| 32 |
[[example]] |
| 33 |
name = "cli-command" |
| 34 |
crate-type = ["cdylib"] |
| 35 |
required-features = ["std"] |
| 36 |
|
| 37 |
[[example]] |
| 38 |
name = "hello-world" |
| 39 |
required-features = ["std"] |
| 40 |
|
| 41 |
[[example]] |
| 42 |
name = "http-proxy-no_std" |
| 43 |
crate-type = ["cdylib"] |
| 44 |
|
| 45 |
[[example]] |
| 46 |
name = "http-proxy" |
| 47 |
crate-type = ["cdylib"] |
| 48 |
required-features = ["std"] |