Skip to content

Commit 64f88f7

Browse files
committed
make package smaller
1 parent 6c698d6 commit 64f88f7

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

projectm-sys/Cargo.toml

+23-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,33 @@ description = "Bindings for ProjectM"
88
license = "LGPL-3.0-or-later"
99
repository = "https://github.com/projectM-visualizer/projectm-rs"
1010
documentation = "https://docs.rs/projectm-sys/latest"
11-
keywords = ["visualization", "audio", "sound", "projectm"]
11+
keywords = ["visualization", "audio", "sound", "projectm"]
1212
categories = ["multimedia", "multimedia::video", "multimedia::audio"]
1313
readme = "README.md"
1414
links = "projectm"
1515

16-
include = ["src/**", "Cargo.toml", "build.rs", "README.md", "LICENSE"]
16+
include = ["src/**",
17+
"src/**",
18+
"Cargo.toml",
19+
"build.rs",
20+
"README.md",
21+
"LICENSE",
22+
"build_bindgen.rs",
23+
"libprojectM/CMakeLists.txt",
24+
"libprojectM/src/**",
25+
"libprojectM/include/**",
26+
"libprojectM/presets/**",
27+
"libprojectM/cmake/**",
28+
"libprojectM/vendor/**",
29+
"libprojectM/vendor/projectm-eval/**",
30+
"libprojectM/vendor/**/CMakeLists.txt",
31+
"libprojectM/vendor/**/cmake/**",
32+
"libprojectM/**/*.cmake",
33+
"libprojectM/**/*.h",
34+
"libprojectM/**/*.hpp",
35+
"libprojectM/config*",
36+
"bindgen/**",
37+
]
1738
exclude = ["docs/**", "libprojectM/docs/**", "libprojectM/web/**", "libprojectM/screenshots/**"]
1839

1940
[dependencies]

projectm-sys/build_bindgen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn bindgen() {
1818
.header(get_header())
1919
.allowlist_function("projectm_.*")
2020
.clang_arg(format!("-I{}/include", out_dir.display()))
21-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
21+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
2222
.generate()
2323
.expect("Unable to generate bindings");
2424

0 commit comments

Comments
 (0)