fix(daemon): ship the OpenRPC document inside the crate
docs/openrpc.json lived at the repository root, outside the soulseek-rs package, so the include_str! in proto compiled from a checkout but not from the published tarball - cargo publish failed verification and the v13.0.0 release stopped after publishing the lib. The document moves into the crate's own docs/, where packaging can see it; the generator test and every link follow.
This commit is contained in:
@@ -360,8 +360,8 @@ const Daemon = () => (
|
||||
<ExtLink href="https://open-rpc.org">OpenRPC</ExtLink> document. The daemon serves
|
||||
that document itself through <Code>rpc.discover</Code>, so a client can ask it what
|
||||
it can do. The same document is checked in at{' '}
|
||||
<ExtLink href={`${LINKS.gh}/blob/master/docs/openrpc.json`}>
|
||||
docs/openrpc.json
|
||||
<ExtLink href={`${LINKS.gh}/blob/master/soulseek-rs/docs/openrpc.json`}>
|
||||
soulseek-rs/docs/openrpc.json
|
||||
</ExtLink>{' '}
|
||||
on GitHub. <Code>auth</Code> answers with the protocol version, 1 today, so a
|
||||
client written against an older shape learns it at connect time.
|
||||
|
||||
Reference in New Issue
Block a user