Cargo Features

[dependencies]
pg-core = { version = "0.3.0", default-features = false, features = ["rust", "web", "stream", "test"] }
default = rust

The rust feature is set by default whenever pg-core is added without default-features = false somewhere in the dependency tree.

rust default = aead, aes-gcm

Affects client::rust, pg-core::client

web = futures, js-sys, wasm-bindgen, wasm-bindgen-futures

Enables web-sys

Affects client::web, pg-core::client

stream = futures

Enables stream of aead

For the Rust Crypto backend.

Affects rust::stream, web::stream

test

Affects pg-core::test

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.

futures stream? web?

Enables futures

For both stream features and the web implementation.

aead rust stream?
aes-gcm rust
wasm-bindgen web?

Enables wasm-bindgen

For the Web Crypto backend.

js-sys web?
wasm-bindgen-futures web?
web-sys web?