Files
oh-my-pi/.cargo/config.toml
T
Slava Zavadsky 7423339281 fix(build): set CMAKE_POLICY_VERSION_MINIMUM for audiopus_sys in cargo env
audiopus_sys 0.2.2 builds its vendored Opus via the cmake crate, and the
bundled opus CMakeLists still declares cmake_minimum_required(VERSION 3.1).
CMake 4.0 removed compatibility with < 3.5, so any dev host with a modern
cmake fails cargo check/clippy on pi-voice with 'Compatibility with CMake
< 3.5 has been removed from CMake.'

The bazel build already sets this override for the same crate (audiopus_sys
annotation in MODULE.bazel); mirror it in .cargo/config.toml so the cargo
path (bun check:rs) works on CMake 4.x hosts too.
2026-08-09 11:45:39 -04:00

12 lines
602 B
TOML

# Cargo environment for the workspace.
#
# audiopus_sys 0.2.2 builds its vendored Opus via the `cmake` crate, and the
# bundled opus CMakeLists still declares `cmake_minimum_required(VERSION 3.1)`.
# CMake 4.0 removed compatibility with < 3.5, so any dev host with a modern
# cmake fails `cargo check`/`cargo clippy` on pi-voice with
# "Compatibility with CMake < 3.5 has been removed from CMake." The bazel build
# already sets this override for the same crate (see the audiopus_sys
# annotation in MODULE.bazel); mirror it here so the cargo path works too.
[env]
CMAKE_POLICY_VERSION_MINIMUM = "3.5"