Struct re_build_info::build_info::BuildInfo
source · pub struct BuildInfo {
pub crate_name: &'static str,
pub features: &'static str,
pub version: CrateVersion,
pub rustc_version: &'static str,
pub llvm_version: &'static str,
pub git_hash: &'static str,
pub git_branch: &'static str,
pub is_in_rerun_workspace: bool,
pub target_triple: &'static str,
pub datetime: &'static str,
}
Expand description
Information about the build of a Rust crate.
Create this with crate::build_info!
.
The git_
fields are all empty on failure. Most likely git fails because we’re not in a git repository
to begin with, which happens because we’ve imported the published crate from crates.io.
There are a few other cases though, like
git
is not installed- the user downloaded rerun as a tarball and then imported via a
path = …
import - others?
Fields§
§crate_name: &'static str
CARGO_PKG_NAME
features: &'static str
Space-separated names of all features enabled for this crate.
version: CrateVersion
Crate version, parsed from CARGO_PKG_VERSION
, ignoring any +metadata
suffix.
rustc_version: &'static str
The raw version string of the Rust compiler used, or an empty string.
llvm_version: &'static str
The raw version string of the LLVM toolchain used, or an empty string.
git_hash: &'static str
Git commit hash, or empty string.
git_branch: &'static str
Current git branch, or empty string.
is_in_rerun_workspace: bool
True if we are building within the rerun repository workspace.
This is a good proxy for “user checked out the project and built it from source”.
target_triple: &'static str
Target architecture and OS
Example: xaarch64-apple-darwin
datetime: &'static str
ISO 8601 / RFC 3339 build time.
Example: "2023-02-23T19:33:26Z"
Empty if unknown.
Implementations§
Trait Implementations§
impl Copy for BuildInfo
Auto Trait Implementations§
impl Freeze for BuildInfo
impl RefUnwindSafe for BuildInfo
impl Send for BuildInfo
impl Sync for BuildInfo
impl Unpin for BuildInfo
impl UnwindSafe for BuildInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)