rustversion

Conditional compilation according to rustc compiler version

APACHE-2.0 License

Downloads
130.1M
Stars
333
Committers
3
rustversion - Latest Release

Published by dtolnay 5 months ago

  • Support Windows builds that have OUT_DIR prefixed with \\?\ (#51)
rustversion -

Published by dtolnay 6 months ago

  • Resolve unexpected_cfgs warning (#48)
rustversion -

Published by dtolnay 7 months ago

  • Recognize $RUSTC_WRAPPER environment variable (#47)
rustversion -

Published by dtolnay over 1 year ago

  • Documentation improvements
rustversion -

Published by dtolnay over 1 year ago

  • Add no-alloc category to crates.io metadata
rustversion -

Published by dtolnay over 1 year ago

  • Set html_root_url attribute
rustversion -

Published by dtolnay almost 2 years ago

  • Fix bug in build.rs causing build-script reruns (#37, thanks @monax3)
rustversion -

Published by dtolnay almost 2 years ago

  • Documentation improvements
rustversion -

Published by dtolnay about 2 years ago

  • Add categories to crates.io metadata
rustversion -

Published by dtolnay over 2 years ago

  • Support situations in which RUSTC is set to clippy-driver by reinvoking with --rustc flag (#13)
rustversion -

Published by dtolnay over 2 years ago

  • Adjust build script to avoid misusing .rs file extension in $OUT_DIR (#32)
rustversion -

Published by dtolnay almost 3 years ago

  • Add rustversion::cfg! macro which evaluates to true or false as an expression (#30)

    if rustversion::cfg!(nightly) {
        ...
    } else {
        ...
    }
    
rustversion -

Published by dtolnay over 3 years ago

  • Fix parsing nightly build versions that have a parenthesized component without a date inside, such as "rustc 1.52.1-nightly (gentoo)" (#28)
rustversion -

Published by dtolnay almost 4 years ago

  • Implement parsing using no dependencies
rustversion -

Published by dtolnay almost 4 years ago

  • Documentation improvements
rustversion -

Published by dtolnay over 4 years ago

  • Move rustc --version invocation from macro expansion time to rustversion's build time so it happens just once
rustversion -

Published by dtolnay almost 5 years ago

  • Treat nightly builds without a hash/date (rustc 1.42.0-nightly) the same as dev builds
rustversion -

Published by dtolnay about 5 years ago

  • Identical to 0.1.4, but I consider this crate to be stable. :)
rustversion -

Published by dtolnay about 5 years ago

rustversion -

Published by dtolnay about 5 years ago

  • Update version requirements to support -Z minimal-versions