asomers / mockall

A powerful mock object library for Rust
Apache License 2.0
1.5k stars 62 forks source link

Fix the build on Rust 1.73.0 and nearby versions #586

Closed asomers closed 3 months ago

asomers commented 3 months ago

Rust 1.71 and earlier ignored build script outputs like "cargo::name=value". Rust nightly from around 5-May-2024 complains about unexpected_cfgs , and the suggested solution is to add a "cargo::name=value" output to the build script. But intermediate Rust versions including 1.73.0 treat that syntax as an error. Happily, all tested Rust versions accept and understand "cargo:name=value" (note the single colon).

This fixes a regression introduced by #574 and not yet released.