From 5fc1db6bd77a5335fb092a41d063d3a84729c0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Wed, 27 Mar 2024 16:59:34 +0100 Subject: [PATCH] Fix building from source by including source in published crate Users of the published `russimp-sys` crate, which transitively includes `russimp`, can't really leverage the build from source feature because the published `russimp-sys` crate files don't include `assimp` sources, such as the CMake lists file, which are expected by the build script in this mode. Ideally, crate build scripts aren't supposed to download stuff from Internet, so let's just relax our file exclusion constraints. This will increase the published crate size, but render the build from source feature functional in the most error-proof way. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index bf92f2b..f6777f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ keywords = ["assimp", "3d", "blend", "3ds", "glTF"] repository = "https://github.com/jkvargas/russimp-sys" description = "Raw Assimp bindings for Rust" include = [ - "/assimp/include/assimp/**/*.{h,inl}", + "/assimp/", "/src/", "/bin/", "/build.rs",