Skip to content

Commit

Permalink
Properly report mtrack version. (#53)
Browse files Browse the repository at this point in the history
The mtrack version hadn't been updated in a while. We'll use clap's
`crate_version!()` macro to make sure it stays up to date.
  • Loading branch information
mdwn authored Dec 13, 2024
1 parent 5987744 commit a9628d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

`mtrack -V` will report the correct mtrack version.

## [0.1.7] - Fix dependencies.

Dependencies for mtrack have all been updated. This should hopefully resolve the issue
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exclude = [
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.5.23", features = ["derive"] }
clap = { version = "4.5.23", features = ["cargo", "derive"] }
cpal = "0.15.3"
hound = "3.5.1"
libc = "0.2.168"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod songs;
#[cfg(test)]
mod test;

use clap::{Parser, Subcommand};
use clap::{crate_version, Parser, Subcommand};
use config::init_player_and_controller;
use dmx::universe::UniverseConfig;
use player::Player;
Expand Down Expand Up @@ -55,7 +55,7 @@ Alias=mtrack.service
#[derive(Parser)]
#[clap(
author = "Michael Wilson",
version = "0.1.0",
version = crate_version!(),
about = "A multitrack player."
)]
struct Cli {
Expand Down

0 comments on commit a9628d2

Please sign in to comment.