Cargo Features

webc = { version = "6.0.0-rc1", 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


Sign and verify binaries in v1 webc format

Enables sequoia-openpgp

Affects v1::ParseOptions.key


No longer used