Skip to content

Commit

Permalink
chore: cleanups of OUT_DIR env var (#2484)
Browse files Browse the repository at this point in the history
commit-id:18d61b1d
  • Loading branch information
Itay-Tsabary-Starkware authored Dec 5, 2024
1 parent 3cc89a5 commit 5f1b1bb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
2 changes: 2 additions & 0 deletions crates/infra_utils/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ pub fn create_shell_command(command_name: &str) -> Command {
env::vars().filter(|(key, _)| key.starts_with("CARGO_")).for_each(|(key, _)| {
command.env_remove(key);
});
// Filter out (the potentially set) OUT_DIR environment variable.
command.env_remove("OUT_DIR");
command
}
2 changes: 1 addition & 1 deletion crates/infra_utils/src/tracing_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct MessageVisitor<'a> {
message: &'a mut String,
}

impl<'a> Visit for MessageVisitor<'a> {
impl Visit for MessageVisitor<'_> {
fn record_debug(&mut self, field: &Field, value: &dyn Debug) {
if field.name() == "message" {
self.message.push_str(&format!("{:?}", value));
Expand Down
3 changes: 0 additions & 3 deletions crates/starknet_gateway/build.rs

This file was deleted.

3 changes: 0 additions & 3 deletions crates/starknet_integration_tests/build.rs

This file was deleted.

3 changes: 0 additions & 3 deletions crates/starknet_sequencer_node/build.rs

This file was deleted.

6 changes: 3 additions & 3 deletions crates/starknet_sierra_compile/src/paths.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Note: This module includes constants that are needed during build and run times. It must
// not contain functionality that is available in only in one of these modes. Specifically, it
// must avoid relying on env variables such as 'CARGO_*' or 'OUT_DIR'.
// Note: This module includes path resolution functions that are needed during build and run times.
// It must not contain functionality that is available in only in one of these modes. Specifically,
// it must avoid relying on env variables such as 'CARGO_*' or 'OUT_DIR'.

fn target_dir(out_dir: std::path::PathBuf) -> std::path::PathBuf {
out_dir
Expand Down

0 comments on commit 5f1b1bb

Please sign in to comment.