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 wheneverpg-core
is added without
somewhere in the dependency tree.default-features = false - 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
-
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.