-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "shadow-rs" | ||
version = "0.3.13" | ||
version = "0.3.14" | ||
authors = ["baoyachi <[email protected]>"] | ||
edition = "2018" | ||
description = "A tool record compiled project much information,version info,dependence info.Like shadow,if compiled,never change.forever follow your project." | ||
|
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 |
---|---|---|
|
@@ -24,6 +24,25 @@ const SHADOW_RS: &str = "shadow.rs"; | |
|
||
/// record compiled project much information. | ||
/// version info,dependence info.Like shadow,if compiled,never change.forever follow your project. | ||
/// generated rust const by exec:`cargo build` | ||
/// | ||
///```rust | ||
/// pub const RUST_VERSION :&str = "rustc 1.45.0 (5c1f21c3b 2020-07-13)"; | ||
/// pub const BUILD_RUST_CHANNEL :&str = "debug"; | ||
/// pub const COMMIT_AUTHOR :&str = "baoyachi"; | ||
/// pub const BUILD_TIME :&str = "2020-08-16 13:48:52"; | ||
/// pub const COMMIT_DATE :&str = "2020-08-16 13:12:52"; | ||
/// pub const COMMIT_EMAIL :&str = "[email protected]"; | ||
/// pub const PROJECT_NAME :&str = "shadow-rs"; | ||
/// pub const RUST_CHANNEL :&str = "stable-x86_64-apple-darwin (default)"; | ||
/// pub const BRANCH :&str = "master"; | ||
/// pub const CARGO_LOCK :&str = ""; | ||
/// pub const CARGO_VERSION :&str = "cargo 1.45.0 (744bd1fbb 2020-06-15)"; | ||
/// pub const BUILD_OS :&str = "macos-x86_64"; | ||
/// pub const COMMIT_HASH :&str = "386741540d73c194a3028b96b92fdeb53ca2788a"; | ||
/// pub const PKG_VERSION :&str = "0.3.13"; | ||
/// | ||
/// ``` | ||
#[derive(Debug)] | ||
pub struct Shadow { | ||
f: File, | ||
|
@@ -50,24 +69,6 @@ impl Shadow { | |
CIType::None | ||
} | ||
|
||
/// generated rust const by exec:`cargo build` | ||
/// | ||
///```rust | ||
/// pub const RUST_VERSION :&str = "rustc 1.45.0 (5c1f21c3b 2020-07-13)"; | ||
/// pub const BUILD_RUST_CHANNEL :&str = "debug"; | ||
/// pub const COMMIT_AUTHOR :&str = "baoyachi"; | ||
/// pub const BUILD_TIME :&str = "2020-08-16 13:48:52"; | ||
/// pub const COMMIT_DATE :&str = "2020-08-16 13:12:52"; | ||
/// pub const COMMIT_EMAIL :&str = "[email protected]"; | ||
/// pub const PROJECT_NAME :&str = "shadow-rs"; | ||
/// pub const RUST_CHANNEL :&str = "stable-x86_64-apple-darwin (default)"; | ||
/// pub const BRANCH :&str = "master"; | ||
/// pub const CARGO_LOCK :&str = ""; | ||
/// pub const CARGO_VERSION :&str = "cargo 1.45.0 (744bd1fbb 2020-06-15)"; | ||
/// pub const BUILD_OS :&str = "macos-x86_64"; | ||
/// pub const COMMIT_HASH :&str = "386741540d73c194a3028b96b92fdeb53ca2788a"; | ||
/// | ||
/// ``` | ||
pub fn build(src_path: String, out_path: String) -> SdResult<()> { | ||
let ci_type = Self::try_ci(); | ||
let src_path = Path::new(src_path.as_str()); | ||
|