Cargo Features

[dependencies]
git-cinnabar = { version = "0.7.1", default-features = false, features = ["full-version", "curl-compat", "version-check", "self-update", "compile_commands", "gitdev"] }
default = full-version, version-check

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

full-version default

Enables concat_const and git-version

curl-compat = rustflags

libcurl.so compatibility (Linux only).

version-check default = shared_child

Check and report when a new version is available.

Affects version_check::VersionChecker, version::BUILD_BRANCH, version::BuildBranch

self-update = shared_child

Download and apply new versions.

Enables concat_const and tar, xz2 and zip, Win32_System_Threading of windows-sys

Affects version_check::check_new_version, version_check::find_version, version::BUILD_BRANCH, version::BuildBranch

compile_commands

Development features

Create compile_commands.json for IDE integration.

gitdev

Enable libgit development options.

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.

rustflags build curl-compat?
shared_child self-update? version-check