You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement vergen crate for git-based versioning (#21)
- Add vergen build dependency with git and gitcl features
- Create build.rs to emit VERGEN_GIT_SHA and VERGEN_GIT_COMMIT_DATE
- Update version output to use short SHA and date (e.g., bbl_parser 14be1ee (2025-12-04))
- Use CARGO_PKG_NAME macro for package name consistency
- Remove hardcoded semantic version references from documentation
- Update .gitignore to whitelist build.rs
- Version now reflects actual git commit info at build time
/// Maximum recursion depth to prevent stack overflow
31
43
constMAX_RECURSION_DEPTH:usize = 100;
32
44
@@ -326,9 +338,14 @@ impl CsvFieldMap {
326
338
}
327
339
328
340
fnbuild_command() -> Command{
329
-
Command::new("BBL Parser")
330
-
.version(env!("CARGO_PKG_VERSION"))
331
-
.about("Read and parse BBL blackbox log files. Exports to CSV by default (optionally GPX/JSON).")
341
+
let about_text = format!(
342
+
"\n\nRead and parse BBL blackbox log files. Exports to CSV by default (optionally GPX/JSON).\n {} {} ({})",
343
+
env!("CARGO_PKG_NAME"),GIT_SHA,GIT_COMMIT_DATE
344
+
);
345
+
346
+
Command::new(env!("CARGO_PKG_NAME"))
347
+
.version(VERSION_STR)
348
+
.about(about_text)
332
349
.arg(
333
350
Arg::new("files")
334
351
.help("BBL files or directories to parse. Direct file paths: .BBL, .BFL, .TXT extensions supported. Directories: recursively finds .BBL/.BFL files only (TXT files must be specified directly). Case-insensitive, supports globbing.")
0 commit comments