Skip to content

Commit 503c568

Browse files
SyntaxNyahclaude
andcommitted
Fix /about version: bump to 0.2.0 (Abyssinian)
- Cargo.toml version 0.1.0 → 0.2.0 - VERSION constant now uses env!("CARGO_PKG_VERSION") + release name so it always matches Cargo.toml automatically - /about now shows "NyahAO v0.2.0 (Abyssinian)" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 776a83b commit 503c568

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nyahao"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]

src/commands/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Commands:
9595
}
9696

9797
fn cmd_about(session: &mut ClientSession, state: &Arc<ServerState>) {
98-
session.server_message(&state.config.server.name, &format!("NyahAO v0.1.0 - Privacy-first AO2 server"));
98+
session.server_message(&state.config.server.name, &format!("{} - Privacy-first AO2 server", crate::server::VERSION));
9999
}
100100

101101
async fn cmd_who(session: &mut ClientSession, state: &Arc<ServerState>) {

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::{
2121
storage::EncryptedDb,
2222
};
2323

24-
pub const VERSION: &str = "NyahAO v0.1.0";
24+
pub const VERSION: &str = concat!("NyahAO v", env!("CARGO_PKG_VERSION"), " (Abyssinian)");
2525

2626
/// Cached snapshot of the last-broadcast ARUP values.
2727
///

0 commit comments

Comments
 (0)