Enum re_build_tools::Environment
source · pub enum Environment {
PublishingCrates,
RerunCI,
CondaBuild,
DeveloperInWorkspace,
UsedAsDependency,
}
Expand description
Where is this build.rs
build script running?
Variants§
PublishingCrates
We are running cargo publish
(via scripts/ci/crates.py
); probably on CI.
RerunCI
We are running on CI for the Rerun workspace, but NOT publishing crates.
CondaBuild
We are running in the conda build environment.
This is a particularly special build environment because the branch checked out is from the conda feed-stock and the build happens via source downloaded from the github-hosted tgz.
DeveloperInWorkspace
Are we a developer running inside the workspace of https://github.com/rerun-io/rerun ?
UsedAsDependency
We are not on Rerun’s CI, and not in the Rerun workspace.
This is most likely a Rerun user who is compiling a re_
crate
because they depend on it either directly or indirectly in their Cargo.toml
,
or they running cargo install rerun-cli --locked
or other tool that depend on a re_
crate.
In these cases we should do as little shenanigans in the build.rs
as possible.
Implementations§
source§impl Environment
impl Environment
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Environment
impl Debug for Environment
source§impl PartialEq for Environment
impl PartialEq for Environment
source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for Environment
impl Eq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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
)