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 more