Cargo Features

[dependencies]
keystone-engine = { version = "0.1.0", default-features = false, features = ["use-system-lib", "build-from-src"] }
default = build-from-src

The build-from-src feature is set by default whenever keystone-engine is added without default-features = false somewhere in the dependency tree.

use-system-lib = pkg-config
build-from-src default = cmake

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.

cmake build build-from-src
pkg-config build use-system-lib?