Skip to content

Commit

Permalink
enh: further reduce size of *_sys crates by excluding build files
Browse files Browse the repository at this point in the history
These are unused because we reimplement the build logic on our build
scripts.
  • Loading branch information
AlexTMjugador committed Nov 28, 2024
1 parent a34fca1 commit bf99a1e
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 8 deletions.
30 changes: 26 additions & 4 deletions packages/aotuv_lancer_vorbis_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
19 changes: 17 additions & 2 deletions packages/ogg_next_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions packages/vorbis_rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit bf99a1e

Please sign in to comment.