Cargo Features

git-worktree has no features set by default.

[dependencies]
git-worktree = { version = "0.12.3", features = ["serde1", "internal-testing-git-features-parallel", "internal-testing-to-avoid-being-run-by-cargo-test-all", "document-features"] }
serde1 = serde

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

Enables serde of bstr, serde1 of git-hash, git-index, and git-object

internal-testing-git-features-parallel

Enables parallel of git-features

git-features:

Use scoped threads and channels to parallelize common workloads on multiple objects. If enabled, it is used everywhere where it makes sense. As caches are likely to be used and instantiated per thread, more memory will be used on top of the costs for threads. The threading module will contain thread-safe primitives for shared ownership and mutation, otherwise these will be their single threaded counterparts. This way, single-threaded applications don't have to pay for threaded primitives.

internal-testing-to-avoid-being-run-by-cargo-test-all

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.

serde serde1?
document-features implicit feature

Enables document-features

document-features:

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