From c484777f3a7dde9e9fe8f47344fd8a6b30840b78 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 22 Sep 2020 19:09:40 +0200 Subject: Add feature to generate bindings during build This patch adds the bindgen feature to the crate that allows users to re-generate the bindings, including layout tests, during the build instead of using the pre-generated bindings. Per default, this feature is disabled. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 068670b..99b2afd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,8 @@ build = "build.rs" readme = "README.md" [build-dependencies] +bindgen = { version = "0.55.1", optional = true } cc = "1.0" + +[features] +default = [] -- cgit v1.2.1