fix build.yml, concurrency concerns, build.rs concerns
This commit is contained in:
6
build.rs
6
build.rs
@@ -17,10 +17,10 @@ fn main() {
|
||||
|
||||
let seed = env::var("RHAI_AHASH_SEED").map_or_else(|_| "None".into(), |s| format!("Some({s})"));
|
||||
|
||||
contents = contents.replace("{{ AHASH_SEED }}", &seed);
|
||||
contents = contents.replace("{{AHASH_SEED}}", &seed);
|
||||
|
||||
File::create("src/config/hashing.rs")
|
||||
File::create("src/config/hashing_env.rs")
|
||||
.expect("cannot create `config.rs`")
|
||||
.write_all(contents.as_bytes())
|
||||
.expect("cannot write to `config/hashing.rs`");
|
||||
.expect("cannot write to `config/hashing_env.rs`");
|
||||
}
|
||||
|
Reference in New Issue
Block a user