https://github.com/seanpray/embedded-version
embed version number into bin
https://github.com/seanpray/embedded-version
Last synced: about 1 month ago
JSON representation
embed version number into bin
- Host: GitHub
- URL: https://github.com/seanpray/embedded-version
- Owner: seanpray
- Created: 2023-08-08T01:25:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-08T01:26:00.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T02:52:17.450Z (about 2 months ago)
- Language: Rust
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
add in main.rs (toplevel)
```
include!(concat!(env!("OUT_DIR"), "/version.rs"));
```add to build.rs
```
fn main() {
embedded_version::version().expect("Failed to write version.rs file");
}
```