Skip to content

Commit cff6037

Browse files
committed
Fix macOS CI build by adding platform-specific rsmpeg configuration
- Use rsmpeg 0.18.0 (FFmpeg 8.0) for macOS - Use rsmpeg 0.17.0 (FFmpeg 7.1) for Windows - Use rsmpeg 0.14.2 (FFmpeg 6.1) for Linux - Default remains rsmpeg 0.18.0 for other platforms
1 parent bd389ad commit cff6037

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/rust/Cargo.toml

Lines changed: 6 additions & 3 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 macOS and other platforms (FFmpeg 8.0)
17+
# Default rsmpeg (for other platforms)
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,11 +28,14 @@ lib_ccxr = { path = "lib_ccxr" }
2828
url = "2.5.4"
2929
encoding_rs = "0.8.5"
3030

31-
# Platform-specific rsmpeg configurations (overrides default FFmpeg 8.0)
32-
# Linux uses FFmpeg 6.1, Windows uses FFmpeg 7.1
31+
# Platform-specific rsmpeg configurations
32+
# Linux uses FFmpeg 6.1, Windows uses FFmpeg 7.1, macOS uses FFmpeg 8.0
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+
3639
[target.'cfg(windows)'.dependencies]
3740
rsmpeg = { version = "=0.17.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
3841

0 commit comments

Comments
 (0)