Cargo Features

git-pack has no features set by default.

[dependencies]
git-pack = { version = "0.31.0", features = ["pack-cache-lru-static", "pack-cache-lru-dynamic", "object-cache-dynamic", "serde1", "wasm", "document-features"] }
pack-cache-lru-static

Provide a fixed-size allocation-free LRU cache for packs. It's useful if caching is desired while keeping the memory footprint for the LRU-cache itself low.

Enables uluru

Affects cache::lru

pack-cache-lru-dynamic

Provide a hash-map based LRU cache whose eviction is based a memory cap calculated from object data.

Enables clru

Affects cache::lru

object-cache-dynamic

If set, select algorithms may additionally use a full-object cache which is queried before the pack itself.

Enables clru

serde1

Data structures implement serde::Serialize and serde::Deserialize.

Enables serde, serde1 of git-object

wasm

Make it possible to compile to the wasm32-unknown-unknown target.

Enables wasm of git-diff

Features from optional dependencies

document-features implicit feature

Enables document-features

If enabled, cargo doc will see feature documentation from this manifest.