From bf99a1ec7791c3e7329056ccf56e34af8db1a6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Thu, 28 Nov 2024 21:45:23 +0100 Subject: [PATCH] enh: further reduce size of `*_sys` crates by excluding build files These are unused because we reimplement the build logic on our build scripts. --- packages/aotuv_lancer_vorbis_sys/Cargo.toml | 30 ++++++++++++++++++--- packages/ogg_next_sys/Cargo.toml | 19 +++++++++++-- packages/vorbis_rs/Cargo.toml | 12 +++++++-- 3 files changed, 53 insertions(+), 8 deletions(-) diff --git a/packages/aotuv_lancer_vorbis_sys/Cargo.toml b/packages/aotuv_lancer_vorbis_sys/Cargo.toml index eda4d8d..b4d492d 100644 --- a/packages/aotuv_lancer_vorbis_sys/Cargo.toml +++ b/packages/aotuv_lancer_vorbis_sys/Cargo.toml @@ -11,11 +11,33 @@ edition.workspace = true links = "vorbis" rust-version.workspace = true keywords = ["libvorbis", "vorbisfile", "libvorbisenc", "aotuv", "lancer"] -categories = ["external-ffi-bindings", "multimedia", "multimedia::audio", "multimedia::encoding"] +categories = [ + "external-ffi-bindings", + "multimedia", + "multimedia::audio", + "multimedia::encoding", +] exclude = [ - "/ogg_vendor/**/.*", "/ogg_vendor/cmake", "/ogg_vendor/doc", "/ogg_vendor/README.md", - "/vorbis_vendor/**/.*", "/vorbis_vendor/cmake", "/vorbis_vendor/doc", "/vorbis_vendor/test/**/*", "/vorbis_vendor/README.md", - "/src/*.ogg" + "/ogg_vendor/**/.*", + "/ogg_vendor/cmake", + "/ogg_vendor/doc", + "/ogg_vendor/win32", + "/ogg_vendor/README.md", + "/ogg_vendor/**/*.ac", + "/ogg_vendor/**/*.m4", + "/ogg_vendor/**/*.in", + "/ogg_vendor/**/*.am", + "/vorbis_vendor/**/.*", + "/vorbis_vendor/cmake", + "/vorbis_vendor/doc", + "/vorbis_vendor/win32", + "/vorbis_vendor/test/**/*", + "/vorbis_vendor/README.md", + "/vorbis_vendor/**/*.ac", + "/vorbis_vendor/**/*.m4", + "/vorbis_vendor/**/*.in", + "/vorbis_vendor/**/*.am", + "/src/*.ogg", ] [dependencies] diff --git a/packages/ogg_next_sys/Cargo.toml b/packages/ogg_next_sys/Cargo.toml index 0c58e1d..0b1418a 100644 --- a/packages/ogg_next_sys/Cargo.toml +++ b/packages/ogg_next_sys/Cargo.toml @@ -11,8 +11,23 @@ edition.workspace = true links = "ogg" rust-version.workspace = true keywords = ["libogg", "xiph"] -categories = ["external-ffi-bindings", "multimedia", "multimedia::audio", "multimedia::encoding"] -exclude = ["/ogg_vendor/**/.*", "/ogg_vendor/cmake", "/ogg_vendor/doc", "/ogg_vendor/README.md"] +categories = [ + "external-ffi-bindings", + "multimedia", + "multimedia::audio", + "multimedia::encoding", +] +exclude = [ + "/ogg_vendor/**/.*", + "/ogg_vendor/cmake", + "/ogg_vendor/doc", + "/ogg_vendor/win32", + "/ogg_vendor/README.md", + "/ogg_vendor/**/*.ac", + "/ogg_vendor/**/*.m4", + "/ogg_vendor/**/*.in", + "/ogg_vendor/**/*.am", +] [build-dependencies] cc.workspace = true diff --git a/packages/vorbis_rs/Cargo.toml b/packages/vorbis_rs/Cargo.toml index 48e4eb9..2ab5a53 100644 --- a/packages/vorbis_rs/Cargo.toml +++ b/packages/vorbis_rs/Cargo.toml @@ -10,14 +10,22 @@ documentation = "https://docs.rs/vorbis_rs" edition.workspace = true rust-version.workspace = true keywords = ["vorbis", "aotuv", "lancer", "ogg", "xiph"] -categories = ["api-bindings", "multimedia", "multimedia::audio", "multimedia::encoding"] +categories = [ + "api-bindings", + "multimedia", + "multimedia::audio", + "multimedia::encoding", +] [dependencies] aotuv_lancer_vorbis_sys.workspace = true ogg_next_sys.workspace = true errno = { version = "0.3.10", default-features = false } -tinyvec = { version = "1.8.0", default-features = false, features = ["alloc", "rustc_1_57"] } +tinyvec = { version = "1.8.0", default-features = false, features = [ + "alloc", + "rustc_1_57", +] } thiserror = "2.0.3" getrandom = { version = "0.2.15", features = ["std"], optional = true }