rust/crates/rust-analyzer
bors[bot] ec6df5d3e8
Merge #4937
4937: Allow overriding rust-analyzer display version r=matklad a=oxalica

The build script invokes `git` for version information which is displayed when rust-analyzer is called with `--version`. But in build environment without `git` or when the source code is not a git repo, there's no way to manually specify the version information.

This patch respects environment variable ~`REV`~ `RUST_ANALYZER_REV` in compile time for overriding.

Related: https://github.com/NixOS/nixpkgs/pull/90976

Co-authored-by: oxalica <oxalicc@pm.me>
2020-06-19 13:43:42 +00:00
..
src Merge #4839 2020-06-19 13:34:24 +00:00
tests/heavy_tests Actually test include!(concant!(env!())); 2020-06-05 15:49:12 +02:00
build.rs Fix fmt 2020-06-19 02:25:07 +08:00
Cargo.toml Merge #4740 2020-06-04 13:04:24 +00:00