SergioBenitez / version_check

Rust library for checking the installed/running rustc's version.
https://docs.rs/version_check
Apache License 2.0
50 stars 14 forks source link

add autocfg as an alternative #18

Closed matklad closed 3 years ago

SergioBenitez commented 3 years ago

Can you say what it does and how it differs? Something to the effect of "Or, if you'd like X with caveats Y, see auto_cfg."

matklad commented 3 years ago

@SergioBenitez

It user feature-detection API instead of direct version checking.

Kind of answers that question. I've added an inline example to make the meaning clear for folks unfamiliar with the "feature detection vs browser detection" terminology.

SergioBenitez commented 3 years ago

How does this look?

matklad commented 3 years ago

Yeah, this is a much better way to put it!