From c017353eceee4c73535661c3591e6ff4ecaf997f Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 5 Jan 2022 14:35:02 +1100 Subject: [PATCH] Include imgui/misc/freetype/ in crate package Required for "--features freetype" to work when using via crates.io Closes #594 Closes #589 --- imgui-sys/Cargo.toml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/imgui-sys/Cargo.toml b/imgui-sys/Cargo.toml index 1a7605f..7c8549d 100644 --- a/imgui-sys/Cargo.toml +++ b/imgui-sys/Cargo.toml @@ -10,8 +10,20 @@ license = "MIT/Apache-2.0" categories = ["gui", "external-ffi-bindings"] build = "build.rs" links = "imgui" -# exclude .json, .lua from imgui dirs - they are intermediate artifacts from cimgui generator -exclude = ["third-party/imgui-*/*.json", "third-party/imgui-*/*.lua"] + +# exclude json, lua, and the imgui subdirs (imgui/examples, imgui/docs, etc) +# ..but we need imgui/misc/freetype/ for the freetype feature +exclude = [ + "third-party/*.json", + "third-party/*.lua", + "third-party/imgui/backends/", + "third-party/imgui/docs/", + "third-party/imgui/examples/", + "third-party/imgui/misc/cpp/", + "third-party/imgui/misc/debuggers/", + "third-party/imgui/misc/fonts/", + "third-party/imgui/misc/single_file/", +] [dependencies] chlorine = "1.0.7"