geo icon indicating copy to clipboard operation
geo copied to clipboard

deprecate `use-foo` style feature flags in favor of just `foo`

Open michaelkirk opened this issue 1 year ago • 4 comments

Rust 1.60 introduced the dep:foo syntax, which removed the ambiguity between a feature name and an optional crate name, so we no longer need the use- prefix.

Let's change it and deprecate the old ones.

michaelkirk avatar Dec 19 '24 15:12 michaelkirk

I don't know that there's actually any good way of showing a deprecation warning when building with a deprecated feature flag. Anyone know any tricks?

https://github.com/rust-lang/cargo/issues/7130 https://github.com/rust-lang/rfcs/pull/3486

michaelkirk avatar Jan 08 '25 21:01 michaelkirk

Mark Geometry and friends as deprecated when the feature flags are set 😅.

lnicola avatar Jan 08 '25 21:01 lnicola

You brute! But that might work... 😄

michaelkirk avatar Jan 08 '25 21:01 michaelkirk

That's incredibly horrible and I love it.

urschrei avatar Jan 08 '25 21:01 urschrei