Skip to content

Commit

Permalink
fix(starknet_sierra_compile): missing import in feature (#2495)
Browse files Browse the repository at this point in the history
commit-id:abd0a286
  • Loading branch information
Itay-Tsabary-Starkware authored Dec 5, 2024
1 parent 1c3ab37 commit 0878678
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/starknet_sierra_compile/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::path::PathBuf;
use std::process::Command;

include!("src/constants.rs");
Expand Down Expand Up @@ -127,13 +126,13 @@ fn set_run_time_out_dir_env_var() {
}

// Returns the OUT_DIR. This function is only operable at build time.
fn out_dir() -> PathBuf {
fn out_dir() -> std::path::PathBuf {
std::env::var("OUT_DIR")
.expect("Failed to get the build time OUT_DIR environment variable")
.into()
}

#[cfg(feature = "cairo_native")]
fn repo_root_dir() -> PathBuf {
fn repo_root_dir() -> std::path::PathBuf {
std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../..").to_path_buf()
}

0 comments on commit 0878678

Please sign in to comment.