Skip to content

Commit

Permalink
re_build_build_info shall henceforth be known as re_build_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jun 8, 2023
1 parent e52b24b commit aa5a6ca
Show file tree
Hide file tree
Showing 27 changed files with 47 additions and 47 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ version = "0.7.0-alpha.0"
# re_log_types 0.3.0-alpha.0, NOT 0.3.0-alpha.4 even though it is newer and semver-compatible.
re_analytics = { path = "crates/re_analytics", version = "0.7.0-alpha.0", default-features = false }
re_arrow_store = { path = "crates/re_arrow_store", version = "0.7.0-alpha.0", default-features = false }
re_build_build_info = { path = "crates/re_build_build_info", version = "0.7.0-alpha.0", default-features = false }
re_build_tools = { path = "crates/re_build_tools", version = "0.7.0-alpha.0", default-features = false }
re_build_info = { path = "crates/re_build_info", version = "0.7.0-alpha.0", default-features = false }
re_build_web_viewer = { path = "crates/re_build_web_viewer", version = "0.7.0-alpha.0", default-features = false }
re_components = { path = "crates/re_components", version = "0.7.0-alpha.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion crates/re_analytics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ web-sys = { version = "0.3.58", features = ["Storage"] }


[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
4 changes: 2 additions & 2 deletions crates/re_analytics/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fn main() {
re_build_build_info::rebuild_if_crate_changed("re_analytics");
re_build_build_info::export_env_vars();
re_build_tools::rebuild_if_crate_changed("re_analytics");
re_build_tools::export_env_vars();
}
2 changes: 1 addition & 1 deletion crates/re_build_info/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "re_build_info"
authors.workspace = true
description = "Information about the build. Use together with re_build_build_info"
description = "Information about the build. Use together with re_build_tools"
edition.workspace = true
homepage.workspace = true
include.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/re_build_info/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Information about the build of a Rust crate.
//!
//! To use this you also need to call `re_build_build_info::export_env_vars()` from your build.rs.
//! To use this you also need to call `re_build_tools::export_env_vars()` from your build.rs.

mod build_info;
mod crate_version;
Expand All @@ -9,7 +9,7 @@ pub use build_info::BuildInfo;
pub use crate_version::CrateVersion;

/// Create a [`BuildInfo`] at compile-time using environment variables exported by
/// calling `re_build_build_info::export_env_vars()` from your build.rs.
/// calling `re_build_tools::export_env_vars()` from your build.rs.
#[macro_export]
macro_rules! build_info {
() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "re_build_build_info"
name = "re_build_tools"
authors.workspace = true
description = "build.rs helpers for generating build info"
edition.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# re_build_build_info
# re_build_tools

Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates.

[![Latest version](https://img.shields.io/crates/v/re_build_build_info.svg)](https://crates.io/crates/re_build_build_info)
[![Documentation](https://docs.rs/re_build_build_info/badge.svg)](https://docs.rs/re_build_build_info)
[![Latest version](https://img.shields.io/crates/v/re_build_tools.svg)](https://crates.io/crates/re_build_tools)
[![Documentation](https://docs.rs/re_build_tools/badge.svg)](https://docs.rs/re_build_tools)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
![Apache](https://img.shields.io/badge/license-Apache-blue.svg)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/re_renderer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ web-sys = { version = "0.3.61", features = [
[build-dependencies]

# Rerun
re_build_build_info.workspace = true
re_build_tools.workspace = true

# External
anyhow.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/re_renderer/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::path::{Path, PathBuf};
use anyhow::{bail, ensure, Context as _};
use walkdir::{DirEntry, WalkDir};

use re_build_build_info::{is_tracked_env_var_set, rerun_if_changed, write_file_if_necessary};
use re_build_tools::{is_tracked_env_var_set, rerun_if_changed, write_file_if_necessary};

// ---

Expand Down
2 changes: 1 addition & 1 deletion crates/re_sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ similar-asserts = "1.4.2"


[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
4 changes: 2 additions & 2 deletions crates/re_sdk/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fn main() {
re_build_build_info::rebuild_if_crate_changed("re_sdk");
re_build_build_info::export_env_vars();
re_build_tools::rebuild_if_crate_changed("re_sdk");
re_build_tools::export_env_vars();
}
2 changes: 1 addition & 1 deletion crates/re_viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3.52", features = ["Window"] }

[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
4 changes: 2 additions & 2 deletions crates/re_viewer/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fn main() {
re_build_build_info::rebuild_if_crate_changed("re_viewer");
re_build_build_info::export_env_vars();
re_build_tools::rebuild_if_crate_changed("re_viewer");
re_build_tools::export_env_vars();
}
2 changes: 1 addition & 1 deletion crates/re_web_viewer_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ re_analytics = { workspace = true, optional = true }


[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
re_build_web_viewer.workspace = true
re_error.workspace = true
2 changes: 1 addition & 1 deletion crates/re_web_viewer_server/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::unwrap_used)]

use re_build_build_info::{
use re_build_tools::{
get_and_track_env_var, is_tracked_env_var_set, rebuild_if_crate_changed, rerun_if_changed,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/rerun-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }


[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
4 changes: 2 additions & 2 deletions crates/rerun-cli/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fn main() {
re_build_build_info::rebuild_if_crate_changed("rerun-cli");
re_build_build_info::export_env_vars();
re_build_tools::rebuild_if_crate_changed("rerun-cli");
re_build_tools::export_env_vars();
}
2 changes: 1 addition & 1 deletion crates/rerun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }


[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
4 changes: 2 additions & 2 deletions crates/rerun/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fn main() {
re_build_build_info::rebuild_if_crate_changed("rerun");
re_build_build_info::export_env_vars();
re_build_tools::rebuild_if_crate_changed("rerun");
re_build_tools::export_env_vars();
}
2 changes: 1 addition & 1 deletion examples/rust/objectron/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ prost = "0.11"


[build-dependencies]
re_build_build_info = { path = "../../../crates/re_build_build_info" }
re_build_tools = { path = "../../../crates/re_build_tools" }
prost-build = "0.11"
protoc-prebuilt = "0.2"
2 changes: 1 addition & 1 deletion examples/rust/objectron/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::path::PathBuf;

use re_build_build_info::{is_tracked_env_var_set, write_file_if_necessary};
use re_build_tools::{is_tracked_env_var_set, write_file_if_necessary};

fn main() -> Result<(), std::io::Error> {
if std::env::var("CI").is_ok() {
Expand Down
2 changes: 1 addition & 1 deletion rerun_py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ uuid = "1.1"


[build-dependencies]
re_build_build_info.workspace = true
re_build_tools.workspace = true
pyo3-build-config = "0.18.0"


Expand Down
4 changes: 2 additions & 2 deletions rerun_py/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ fn main() {
// Required for `cargo build` to work on mac: https://pyo3.rs/v0.14.2/building_and_distribution.html#macos
pyo3_build_config::add_extension_module_link_args();

re_build_build_info::rebuild_if_crate_changed("rerun_py");
re_build_build_info::export_env_vars();
re_build_tools::rebuild_if_crate_changed("rerun_py");
re_build_tools::export_env_vars();
}
2 changes: 1 addition & 1 deletion scripts/publish_crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export RERUN_IS_PUBLISHING=yes
echo "Publishing crates…"

cargo publish $FLAGS -p re_build_info
cargo publish $FLAGS -p re_build_build_info
cargo publish $FLAGS -p re_build_tools
cargo publish $FLAGS -p re_log
cargo publish $FLAGS -p re_tracing
cargo publish $FLAGS -p re_int_histogram
Expand Down

0 comments on commit aa5a6ca

Please sign in to comment.