Skip to content

Commit b2d8d9c

Browse files
committed
Fix rsmpeg version specifications - remove invalid feature flags
- rsmpeg doesn't use feature flags for FFmpeg versions - Must use specific rsmpeg versions: 0.14.2 for FFmpeg 6, 0.17.0 for FFmpeg 7, 0.18.0 for FFmpeg 8 - Fixed incorrect 'ffmpeg6', 'ffmpeg7', 'ffmpeg8' feature flags
1 parent cff6037 commit b2d8d9c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/rust/Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ crate-type = ["staticlib"]
1414
log = "0.4.26"
1515
env_logger = "0.8.4"
1616
palette = "0.6.1"
17-
# Default rsmpeg (for other platforms)
17+
# Default rsmpeg for macOS and other platforms (FFmpeg 8.0)
1818
rsmpeg = { version = "=0.18.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
1919
tesseract-sys = { version = "0.5.15", optional = true, default-features = false }
2020
leptonica-sys = { version = "= 0.4.6", optional = true, default-features = false }
@@ -28,14 +28,11 @@ lib_ccxr = { path = "lib_ccxr" }
2828
url = "2.5.4"
2929
encoding_rs = "0.8.5"
3030

31-
# Platform-specific rsmpeg configurations
32-
# Linux uses FFmpeg 6.1, Windows uses FFmpeg 7.1, macOS uses FFmpeg 8.0
31+
# Platform-specific rsmpeg configurations (overrides default)
32+
# Linux uses FFmpeg 6.1, Windows uses FFmpeg 7.1
3333
[target.'cfg(target_os = "linux")'.dependencies]
3434
rsmpeg = { version = "=0.14.2", default-features = false, features = ["link_system_ffmpeg"], optional = true }
3535

36-
[target.'cfg(target_os = "macos")'.dependencies]
37-
rsmpeg = { version = "=0.18.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
38-
3936
[target.'cfg(windows)'.dependencies]
4037
rsmpeg = { version = "=0.17.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
4138

0 commit comments

Comments
 (0)