Expand description
Common types used by the build-info and build-info-build crates.
User code should not depend on this crate directly, but rather depend on build-info (as a [dependency]) and build-info-build (as a [build-dependency]).
The types provided herein are reexported by build-info and should be used that way.
For example, build_info_common::BuildInfo should be used as build_info::BuildInfo instead.
Re-exports§
Structs§
- Build
Info - Information about the current build
- Compiler
Info rustcversion and configuration- CpuInfo
- Crate
Info - Information about the current crate (i.e., the crate for which build information has been generated)
- GitInfo
- Information about a git repository
- Target
Info
Enums§
- Compiler
Channel rustcdistribution channel (some compiler features are only available on specific channels)- Endianness
- CPU Endianness
- Optimization
Level - The various possible optimization levels
- Version
Control - Support for different version control systems
Functions§
- crate_
version - Gets the version of the
build-info-commoncrate (this crate)