Skip to content

Commit 2811d23

Browse files
committed
Remove default rsmpeg to prevent downloading multiple versions
- Removed default rsmpeg dependency - Each platform now only downloads its specific rsmpeg version - Linux: 0.14.2 (FFmpeg 6.1) - macOS: 0.18.0 (FFmpeg 8.0) - Windows: 0.17.0 (FFmpeg 7.1) - Removed invalid feature flags (ffmpeg6, ffmpeg7_1, ffmpeg8)
1 parent d066419 commit 2811d23

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/rust/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ crate-type = ["staticlib"]
1414
log = "0.4.26"
1515
env_logger = "0.8.4"
1616
palette = "0.6.1"
17-
# Default rsmpeg for macOS and other platforms (FFmpeg 8.0)
18-
rsmpeg = { version = "=0.18.0", default-features = false, features = ["ffmpeg8", "link_system_ffmpeg"], optional = true }
1917
tesseract-sys = { version = "0.5.15", optional = true, default-features = false }
2018
leptonica-sys = { version = "= 0.4.6", optional = true, default-features = false }
2119
clap = { version = "4.5.31", features = ["derive"] }
@@ -28,13 +26,16 @@ lib_ccxr = { path = "lib_ccxr" }
2826
url = "2.5.4"
2927
encoding_rs = "0.8.5"
3028

31-
# Platform-specific rsmpeg configurations (overrides default)
32-
# Linux uses FFmpeg 6.1, Windows uses FFmpeg 7.1
29+
# Platform-specific rsmpeg configurations
30+
# Each platform gets only its specific version
3331
[target.'cfg(target_os = "linux")'.dependencies]
34-
rsmpeg = { version = "=0.14.2", features = ["ffmpeg6", "link_system_ffmpeg"], optional = true }
32+
rsmpeg = { version = "=0.14.2", default-features = false, features = ["link_system_ffmpeg"], optional = true }
33+
34+
[target.'cfg(target_os = "macos")'.dependencies]
35+
rsmpeg = { version = "=0.18.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
3536

3637
[target.'cfg(windows)'.dependencies]
37-
rsmpeg = { version = "=0.17.0", features = ["ffmpeg7_1", "link_system_ffmpeg"], optional = true }
38+
rsmpeg = { version = "=0.17.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
3839

3940
[build-dependencies]
4041
bindgen = "0.64.0"

0 commit comments

Comments
 (0)