diff --git a/docs/openrpc.json b/docs/openrpc.json index 144c76a..213bfc7 100644 --- a/docs/openrpc.json +++ b/docs/openrpc.json @@ -1225,7 +1225,7 @@ "name": "MIT" }, "title": "soulseek-rs daemon", - "version": "12.0.0" + "version": "1" }, "methods": [ { diff --git a/soulseek-rs/src/daemon/openrpc.rs b/soulseek-rs/src/daemon/openrpc.rs index f965e58..90e6473 100644 --- a/soulseek-rs/src/daemon/openrpc.rs +++ b/soulseek-rs/src/daemon/openrpc.rs @@ -331,7 +331,10 @@ fn document() -> Value { "openrpc": "1.3.2", "info": { "title": "soulseek-rs daemon", - "version": env!("CARGO_PKG_VERSION"), + // The contract's own version, which is what a client negotiates in + // `auth`. The crate version would put a release bump in this file + // and fail `document_is_current` on every release PR. + "version": crate::daemon::proto::PROTOCOL_VERSION.to_string(), "description": "Control a running soulseek-rs daemon. Newline-delimited \ JSON-RPC 2.0 over a Unix socket (local, authenticated by socket permissions) or \ TCP (remote, authenticated by the token in /daemon.token). `auth` must \