-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor our build.rs
files
#3789
Conversation
19433b4
to
68a6dac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the CI failure, lgtm.
crates/re_build_tools/src/lib.rs
Outdated
@@ -57,6 +57,13 @@ pub(crate) fn should_output_cargo_build_instructions() -> bool { | |||
OUTPUT_CARGO_BUILD_INSTRUCTIONS.load(Ordering::Relaxed) | |||
} | |||
|
|||
/// Are we running inside the workspace of <https://github.com/rerun-io/rerun> ? | |||
/// | |||
/// Otherwise we might be running on users machines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an oddly formulated comment 🤔 Running inside the workspace and running on users machines are not antithetical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, good catch - I'll improve the naming and documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to communicate "Rerun user"
crates/re_build_tools/src/lib.rs
Outdated
/// We are likely running on a users machine. | ||
/// | ||
/// Try to do as little work as possible. | ||
ProbablyUserMachine, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, that whole notion of "user machine" is confusing.
I guess this means "OutOfWorkspace" or smth, which is what I would call it then.
What
This cleans up all our
build.rs
files by introducing better helpers inre_build_tools
. No functionality is actually changed (except a few tiny improvements).This will make it easier to take take the next steps of opting-in to most of these features.
This is just the first step.
Checklist