rust-lang / cfg-if

A if/elif-like macro for Rust #[cfg] statements
Apache License 2.0
557 stars 40 forks source link

A crate to parametrize compile-time conditionals? #54

Closed Wandalen closed 2 years ago

Wandalen commented 2 years ago

Is that something possible?

https://users.rust-lang.org/t/a-crate-to-parametrize-compile-time-conditionals/75027/3

alexcrichton commented 2 years ago

Unfortunately no, this crate can't be used for that. AFAIK build scripts are mainly used for that.

Wandalen commented 2 years ago

@alexcrichton Build script? Any example?

Is that possible?

Wandalen commented 2 years ago

Apparently author is too busy to answer all questions. For those who are interested in such kind of crate, it is here. Useful thing!