Security Features Home Extensions Ecosystem

Certain features, such as HTTP/2, HTTPS, or compression might not be needed. When Kvarn is deployed to an IOT device controlled from within the network, these features aren’t needed. Disabling them cuts down on compilation time, memory requirements, and space requirements.

To view the dependencies used by each feature, see the Cargo.toml file.

These can be enabled in your Cargo.toml:

[dependencies]
kvarn = { version = "0.4", default-features = false, features = ["https", "http2", "all-compression"] }

See the official Cargo guide on the matter.


Which Cargo features are required for certain items are also shown in the docs (e.g. the Host::new function).

There are additionally several feature sets: