Cargo Features

[dependencies]
metis-sys = { version = "0.3.1", default-features = false, features = ["vendored", "use-system", "generate-bindings", "force-optimize-vendor"] }
default = force-optimize-vendor, vendored

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

vendored build default force-optimize-vendor generate-bindings?

Build and statically link to METIS and GKLib.

Enables cc

use-system = bindgen

Use existing METIS install and links dynamically to it.

generate-bindings = bindgen, vendored

Regenerate bindings in metis-sys/gen/bindings.rs from METIS in the "vendor"
directory. Also enables "vendored".

force-optimize-vendor default = vendored

Force Metis to be optimized and to not follow the current profile for Rust Therefore, debug or dev build lead to correct performance.

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.

bindgen build generate-bindings? use-system?