mirror of
https://github.com/danog/strum.git
synced 2024-12-02 09:27:57 +01:00
ddb9c2682e
* Adding vis to EnumDiscriminants (#137) * Improved doctest example names (#137) * Fixing incorrect occurrence_error attr string * Using r#pub on doctest * Adding tests for discriminant visibility, and rustc-cfg for bare "pub" * Doing local import with "self::" * Back to having tests pass on latest stable * Moved sample doctest with vis example to separate nocompile block
8 lines
222 B
Rust
8 lines
222 B
Rust
fn main() {
|
|
// Check if version of rustc is >= 1.34
|
|
if let Some(true) = version_check::is_min_version("1.34.0") {
|
|
println!("cargo:rustc-cfg=try_from");
|
|
println!("cargo:rustc-cfg=bare_pub");
|
|
}
|
|
}
|