-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped version to 0.8.1.
- Loading branch information
Showing
19 changed files
with
67 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
//! Odra's contracts build script. | ||
use std::env; | ||
/// Uses the ENV variable `ODRA_MODULE` to set the `odra_module` cfg flag. | ||
pub fn main() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
odra_build::build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
//! Odra's contracts build script. | ||
use std::env; | ||
/// Uses the ENV variable `ODRA_MODULE` to set the `odra_module` cfg flag. | ||
pub fn main() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
odra_build::build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "odra-build" | ||
description = "Function used in build.rs files of Odra projects" | ||
edition = "2021" | ||
version.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pub fn build() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = std::env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
use std::env; | ||
//! Odra's contracts build script. | ||
/// Uses the ENV variable `ODRA_MODULE` to set the `odra_module` cfg flag. | ||
pub fn main() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
odra_build::build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
use std::env; | ||
//! Odra's contracts build script. | ||
/// Uses the ENV variable `ODRA_MODULE` to set the `odra_module` cfg flag. | ||
pub fn main() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
odra_build::build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
use std::env; | ||
//! Odra's contracts build script. | ||
/// Uses the ENV variable `ODRA_MODULE` to set the `odra_module` cfg flag. | ||
pub fn main() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
odra_build::build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
use std::env; | ||
//! Odra's contracts build script. | ||
/// Uses the ENV variable `ODRA_MODULE` to set the `odra_module` cfg flag. | ||
pub fn main() { | ||
println!("cargo:rerun-if-env-changed=ODRA_MODULE"); | ||
let module = env::var("ODRA_MODULE").unwrap_or_else(|_| "".to_string()); | ||
let msg = format!("cargo:rustc-cfg=odra_module=\"{}\"", module); | ||
println!("{}", msg); | ||
odra_build::build(); | ||
} |