Cargo Features

gix-error has no features set by default.

[dependencies]
gix-error = { version = "0.2.0", features = ["anyhow", "auto-chain-error", "tree-error", "document-features"] }
anyhow

The Exn type converts to anyhow::Error natively so ? can be used directly.

Otherwise, it would have to be manually converted via into_box() or into_inner().

Enables anyhow

auto-chain-error

The Error type is always flattening the Exn error tree into a chain of errors, while keeping their locations and runtime type-information.

tree-error

The opposite of auto-chain-error and implicitly enabled by default. Use it to override auto-chain-error.

Features from optional dependencies

document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml