Cargo Features

[dependencies]
webc = { version = "6.0.0-alpha5", default-features = false, features = ["v1", "v2", "v3", "package", "crypto", "mmap"] }
default = package, v1, v2, v3

These default features are set whenever webc is added without default-features = false somewhere in the dependency tree.

v1 default

Load WEBC files in the v1 format

Enables base64 ^0.21.0, ignore, leb128, lexical-sort, path-clean, and rand

Affects webc::v1

v2 default package

Load WEBC files in the v2 format

Enables once_cell

Affects webc::v2, webc::migration

v3 default package

Load WEBC files in the v3 format

Enables base64 ^0.21.0 and once_cell

Affects webc::v3, webc::migration

package default = v2, v3

Load Wasmer packages from disk (implies the v2 and v3 feature)

Enables base64 ^0.21.0, flate2, semver, tar, tempfile, and toml ^0.7.6

Affects webc::wasmer_package

crypto

Sign and verify binaries in v1 webc format

Enables sequoia-openpgp

Affects v1::ParseOptions.key

mmap

No longer used