Cargo Features

[dependencies]
ic-agent = { version = "0.34.0", default-features = false, features = ["reqwest", "hyper", "ic_ref_tests", "wasm-bindgen", "pem"] }
default ic_ref_tests? = pem, reqwest

These default features are set whenever ic-agent is added without default-features = false somewhere in the dependency tree.

reqwest default

Enables reqwest ^0.11.7

Affects http_transport::reqwest_transport

hyper

Enables http-body-to-bytes, http-body-util, hyper, hyper-rustls ^0.26.0, hyper-util, and tower

Affects http_transport::hyper_transport

ic_ref_tests = default

Used to separate integration tests for ic-ref which need a server running.

wasm-bindgen

Enables getrandom and js-sys, wasm-bindgen, wasm-bindgen-futures, and web-sys, wasm-bindgen of backoff, wasm of cached ^0.46, wasm-bindgen of time

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.

pem default

Enables pem ^2.0.1