Skip to content

Commit

Permalink
Explain the __ci feature flag rational in the build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Mar 20, 2023
1 parent 90be66e commit 5948394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/re_web_viewer_server/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ fn main() {
pkgs.track_implicit_dep("re_viewer");

if std::env::var("CARGO_FEATURE___CI").is_ok() {
// This saves a lot of CI time.
// If the `__ci` feature is set we skip building the web viewer wasm, saving a lot of time.
// This feature is set on CI (hence the name), but also with `--all-features`, which is set by rust analyzer, bacon, etc.
eprintln!("__ci feature detected: Skipping building of web viewer wasm.");
} else {
let release = std::env::var("PROFILE").unwrap() == "release";
Expand Down

0 comments on commit 5948394

Please sign in to comment.