Cargo Features
[dependencies]
opa-wasm = { version = "0.1.3", default-features = false, features = ["loader", "cli", "fast", "rng", "time", "base64url-builtins", "crypto-digest-builtins", "crypto-hmac-builtins", "crypto-md5-builtins", "crypto-sha1-builtins", "crypto-sha2-builtins", "hex-builtins", "semver-builtins", "sprintf-builtins", "json-builtins", "units-builtins", "rand-builtins", "yaml-builtins", "urlquery-builtins", "time-builtins", "all-crypto-builtins", "all-builtins"] }
- default = all-builtins, fast
-
These default features are set whenever
opa-wasm
is added without
somewhere in the dependency tree.default-features = false - loader cli?
-
Enables async-compression and futures-util, fs and io-util of tokio and tokio-tar
Loader
- cli = fast, loader
-
Enables tracing-forest and tracing-subscriber, fs and rt-multi-thread of tokio and camino and clap
camino:
CLI
Required by opa-eval and simple binaries
- fast default cli?
-
Enables cranelift and parallel-compilation of wasmtime
- rng rand-builtins?
-
Enables rand
Affects
impls::rand
,context::EvaluationContext.get_rng
… - time time-builtins?
-
Enables chrono
Affects
context::EvaluationContext.now
… - base64url-builtins all-builtins
-
base64:
Builtins
Affects
impls::base64url
… - crypto-digest-builtins all-crypto-builtins?
-
Affects
crypto::digest.sha1
,crypto::digest.sha256
,crypto::digest
… - crypto-hmac-builtins all-crypto-builtins?
-
Affects
crypto::hmac
… - crypto-md5-builtins all-crypto-builtins?
-
Enables md-5
Affects
crypto::hmac.md5
,crypto::digest.md5
,crypto::hmac
,crypto::digest
… - crypto-sha1-builtins all-crypto-builtins?
-
Enables sha1
Affects
crypto::hmac.sha1
,crypto::digest.sha1
,crypto::hmac
,crypto::digest
… - crypto-sha2-builtins all-crypto-builtins?
-
Enables sha2
Affects
crypto::hmac.sha256
,crypto::hmac.sha512
,crypto::digest.sha256
,crypto::hmac
,crypto::digest
… - hex-builtins all-builtins
-
Enables hex
Affects
impls::hex
… - semver-builtins all-builtins
-
Enables semver
Affects
impls::semver
… - sprintf-builtins all-builtins
-
Enables sprintf
Affects
impls::sprintf
… - json-builtins all-builtins
-
Enables json-patch
Affects
impls::json
… - units-builtins all-builtins
-
Enables parse-size
Affects
impls::units
… - rand-builtins all-builtins = rng
- yaml-builtins all-builtins
-
Enables serde_yaml
Affects
impls::yaml
… - urlquery-builtins all-builtins
-
Enables form_urlencoded and urlencoding
Affects
impls::urlquery
… - time-builtins all-builtins = time
-
Enables chrono-tz, chronoutil, and duration-str
Affects
impls::time
… - all-crypto-builtins all-builtins = crypto-digest-builtins, crypto-hmac-builtins, crypto-md5-builtins, crypto-sha1-builtins, crypto-sha2-builtins
- all-builtins default = all-crypto-builtins, base64url-builtins, hex-builtins, json-builtins, rand-builtins, semver-builtins, sprintf-builtins, time-builtins, units-builtins, urlquery-builtins, yaml-builtins