webc 7.0.0-rc.2

WebContainer implementation for wapm.io
Documentation
[package]
name = "webc"
version = "7.0.0-rc.2"
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]
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 = ["v1", "v2", "v3"]

## Load WEBC files in the v1 format
v1 = [
    "dep:ignore",
    "dep:base64",
    "dep:leb128",
    "dep:lexical-sort",
    "dep:path-clean",
    "dep:rand",
]

## Load WEBC files in the v2 format
v2 = ["dep:once_cell"]

## Load WEBC files in the v3 format
v3 = ["dep:once_cell", "dep:base64"]

## Sign and verify binaries in v1 webc format
crypto = ["dep:sequoia-openpgp"]

## No longer used
mmap = []

[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]