stop using cargo pkg version

One fewer thing to manage at release time.
This commit is contained in:
Scott Lamb
2023-10-17 09:36:32 -07:00
parent ef62ebfc6c
commit a76483a912
11 changed files with 90 additions and 42 deletions

View File

@@ -39,6 +39,7 @@ pub fn run(args: Args) -> Result<i32, Error> {
preset_journal: &args.preset_journal,
no_vacuum: args.no_vacuum,
},
crate::VERSION,
&mut conn,
)?;
Ok(0)

View File

@@ -25,9 +25,11 @@ mod bundled_ui;
const DEFAULT_DB_DIR: &str = "/var/lib/moonfire-nvr/db";
const VERSION: &str = git_version::git_version!(args = ["--always", "--dirty"]);
/// Moonfire NVR: security camera network video recorder.
#[derive(Bpaf, Debug)]
#[bpaf(options, version)]
#[bpaf(options, version(VERSION))]
enum Args {
// See docstrings of `cmds::*::Args` structs for a description of the respective subcommands.
Check(#[bpaf(external(cmds::check::args))] cmds::check::Args),