Commit Graph

10 Commits

Author SHA1 Message Date
Pietro Albini bd752e9920
add support for reading git-commit-info 2024-04-30 10:44:27 +02:00
Pietro Albini 80f96704e0
refactor setting the git info to support more sources 2024-04-30 10:35:11 +02:00
Chris Denton 6f7f927acf
Add a windows manifest file
This avoids the need for compatibility shims, sets the code page to UTF-8 and enables long path awareness.
2023-12-07 14:24:58 +00:00
Pietro Albini ab76a0bf3b
respect rust-lang/rust's omit-git-hash
The config.toml file in rust-lang/rust has the omit-git-hash option,
which prevents git information from being embedded into binaries. This
works for most tools, as they rely on the git information provided by
bootstrap through environment variables.

Cargo does its own git detection in its build script though, which
didn't adhere to to that option. This changes that by skipping git
detection whenever bootstrap signals the option is enabled.
2023-11-13 11:58:44 +01:00
Weihang Lo 5ccca80da8
clippy: allow usages of `std::env::var` family by exceptions
See comments above for each usage about why it is allowed.
2023-03-17 12:57:21 +00:00
Arlo Siemsen 50ce64191c Set cargo --version git short hash length to 9 2022-04-18 19:53:59 -05:00
Eric Huss 295ea6d940 Use local git info for version. 2022-01-24 15:28:04 -08:00
Eric Huss c5318a17e7 Add some more information to verbose version. 2021-10-08 12:54:24 -07:00
Alex Crichton 624acc8e2b Build manpage archive deterministically
Keep deterministic builds for Cargo! The changes here are:

* Sort files being added to the archive to ensure they're added in the
  same order on all platforms.
* Flag the archive builder as "deterministic mode" which means it won't
  pick up fields like mtime.

Closes #8599
2020-08-10 06:47:00 -07:00
Eric Huss 0e26eae5c1 Display embedded man pages for built-in commands. 2020-08-03 12:30:38 -07:00