slint-ui / document-features

Extract documentation for the feature flags from comments in Cargo.toml
Apache License 2.0
173 stars 13 forks source link

Consider a shorter alias for the macro name #4

Open pravic opened 2 years ago

pravic commented 2 years ago

Because #![doc = document_features::document_features!()] is quite long and unnecessary repeats itself.

I think it'll be better to have something like document_features::get!(), extract, etc.

ogoffart commented 2 years ago

That's true. On the other hand, this only appear once per crate, so not such a big deal. And the document-features crate can be imported with another name, or the macro used.

I'm not so convinced by the suggested names though.