-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add features to control git-version (#21)
Added git dependencies: fusion-engineering/rust-git-version#19 This allows us to avoid rebuilds when staging changes. Also added another feature to avoid rebuilds altogether. Eg: if git versions are specified via env variable then we don't need to use git from within the rust-build at all. This is fine for most dev setups if we don't care about versions locally testing. Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information
1 parent
41a8ecf
commit 7562791
Showing
6 changed files
with
83 additions
and
27 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,3 +1,7 @@ | ||
[submodule "h2"] | ||
path = h2 | ||
url = https://github.com/openebs/h2.git | ||
[submodule "rust-git-version"] | ||
path = rust-git-version | ||
url = https://github.com/openebs/rust-git-version.git | ||
branch = mayastor |
Submodule rust-git-version
added at
7a919e
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,5 +1,6 @@ | ||
mod git_utils; | ||
mod version_info; | ||
#[cfg(feature = "default-git-versions")] | ||
pub use git_utils::{long_raw_version_str, raw_version_str, raw_version_string}; | ||
pub use version_info::VersionInfo; | ||
pub mod macros; |
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