-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #2280 now it'll show a nice git version instead of just the pkg version. ```sh > ./glaredb GlareDB (v0.8.0-11-g167702f) ``` you can read more about how the {git_version} is generated [here](https://docs.rs/built/0.7.1/built/#git2). TLDR; it uses the head (if its a tag, it uses just that, otherwise it uses a concatonation of the last tag + the commit) ## note for development purposes. It does cache this in your `target` dir, so if it's not showing the current commit, it's likely that this generated file is cached.
- Loading branch information
1 parent
3a6686a
commit 4e59620
Showing
5 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
built::write_built_file().expect("Failed to acquire build-time information"); | ||
} |
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