Both cargo::rustc-check-cfg and cargo:rustc-check-cfg (two or one colons) are accepted. :: is the 'correct' syntax as of Rust 1.77, but will error on some earlier versions. The : syntax is accepted (with warnings on some older versions) with both old and new versions, so these changes use :.
Rust 1.80 got a new lint to warn on unexpected cfg, which generates a lot of noise building both Magnus and rb-sys.
To make cfg expected we either need to output
cargo::rustc-check-cfg=cfg(name)
from build.rs or add:to Cargo.toml.
Both
cargo::rustc-check-cfg
andcargo:rustc-check-cfg
(two or one colons) are accepted.::
is the 'correct' syntax as of Rust 1.77, but will error on some earlier versions. The:
syntax is accepted (with warnings on some older versions) with both old and new versions, so these changes use:
.