Rely on cxx to enforce matching versions (#3713)

This commit is contained in:
David Tolnay 2024-12-01 14:12:05 -08:00 committed by GitHub
parent c2cb7f36a7
commit dfc36aefcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 65 deletions

View file

@ -10,21 +10,11 @@ crate-type = ["staticlib"]
[dependencies]
taskchampion = "0.9.0"
# All three cxx* dependencies must have precisely the same version.
cxx = "=1.0.124"
cxx = "1.0.133"
[features]
# use native CA roots, instead of bundled
tls-native-roots = ["taskchampion/tls-native-roots"]
[build-dependencies]
# All three cxx* dependencies must have precisely the same version.
cxx-build = "=1.0.124"
# Include cxxbridge-cmd in Cargo.lock along with the others. This gives a
# warning "ignoring invalid dependency `cxxbridge-cmd` which is missing a lib
# target" but this can be safely ignored.
# See https://github.com/dtolnay/cxx/issues/1407#issuecomment-2509136343
[target.'cfg(any())'.dependencies]
# All three cxx* dependencies must have precisely the same version.
cxxbridge-cmd = "=1.0.124"
cxx-build = "1.0.133"