Cargo Features

[dependencies]
oxigraph = { version = "0.5.5", default-features = false, features = ["rocksdb", "js", "http-client", "http-client-native-tls", "http-client-rustls-webpki", "http-client-rustls-native", "rocksdb-pkg-config", "rocksdb-debug", "rdf-12"] }
default = rocksdb

The rocksdb feature is set by default whenever oxigraph is added without default-features = false somewhere in the dependency tree.

rocksdb default = oxrocksdb-sys

Affects binary_encoder::decode_term

js = js-sys

Enables js of oxsdatatypes and wasm_js of getrandom ^0.3.4

getrandom:

Optional backend: wasm_js

This flag enables the wasm_js backend and uses it by default on wasm32 where the target_os is unknown. The getrandom_backend cfg may override this.

WARNING: We strongly recommend against enabling this feature in libraries (except for tests) since it is known to break non-Web WASM builds and further since the usage of wasm-bindgen causes significant bloat to Cargo.lock (on all targets).

The only exception to this rule: if your crate already unconditionally depends on wasm-bindgen or js-sys on "unknown" WASM targets then it's acceptable to enable this feature unconditionally.

http-client http-client-native-tls? http-client-rustls-native? http-client-rustls-webpki? = oxhttp
http-client-native-tls = http-client

Enables native-tls of oxhttp

http-client-rustls-webpki = http-client

Enables rustls-ring-webpki of oxhttp

http-client-rustls-native = http-client

Enables rustls-ring-native of oxhttp

rocksdb-pkg-config

Enables pkg-config of oxrocksdb-sys

rocksdb-debug
rdf-12

Enables rdf-12 of oxrdfio, sparql-12 of spareval

Affects numeric_encoder::EncodedTriple, numeric_encoder::Decoder.decode_triple

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

js-sys wasm unknown js?
oxrocksdb-sys not wasm rocksdb rocksdb-pkg-config?
oxhttp not wasm http-client? http-client-native-tls? http-client-rustls-native? http-client-rustls-webpki?