[package]
name = "webc"
version = "6.1.0"
description = "WebContainer implementation for wapm.io"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
wasmer-config.workspace = true
indexmap.workspace = true
shared-buffer.workspace = true
base64 = { workspace = true, optional = true }
ignore = { version = "0.4.22", optional = true }
anyhow = "1.0"
bytes = { version = "1", features = ["serde"] }
cfg-if = "1.0.0"
document-features = "0.2.8"
flate2 = { version = "1", optional = true }
leb128 = { version = "0.2.1", optional = true }
lexical-sort = { version = "0.3.1", optional = true }
once_cell = { version = "1", optional = true }
path-clean = { version = "1.0", optional = true }
rand = { version = "0.8.5", optional = true }
semver = { version = "1.0.18", optional = true }
serde = { version = "1", features = ["derive"] }
ciborium = "0.2.2"
serde_json = "1"
sha2 = "0.10.2"
tar = { version = "0.4.39", optional = true }
tempfile = { version = "3.3.0", optional = true }
thiserror = "1"
toml = { workspace = true, optional = true }
url = { version = "2.2.2", features = ["serde"] }
libc = "0.2.153"
[dependencies.sequoia-openpgp]
version = "1.8.0"
default-features = false
features = [
"crypto-rust",
"allow-experimental-crypto",
"allow-variable-time-crypto",
]
optional = true
[dev-dependencies]
hexdump = "0.1.1"
insta = { version = "1", features = ["filters", "yaml"] }
pretty_assertions = "1.2.1"
regex = "1.9.1"
tempfile = "3.3.0"
ureq = "2.7.1"
[features]
default = ["package", "v1", "v2", "v3"]
v1 = [
"dep:ignore",
"dep:base64",
"dep:leb128",
"dep:lexical-sort",
"dep:path-clean",
"dep:rand",
]
v2 = ["dep:once_cell"]
v3 = ["dep:once_cell", "dep:base64"]
package = [
"v2",
"v3",
"dep:tempfile",
"dep:flate2",
"dep:semver",
"dep:toml",
"dep:base64",
"dep:tar",
]
crypto = ["dep:sequoia-openpgp"]
mmap = []
[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]