docs: point the library snippets at the 8.x lib
v8.0.0 is on crates.io, so the Cargo.toml examples in the readme and on the install page were a major behind. Replace the 5.x upgrade note with one that does not name a version, so it stops going stale every release.
This commit is contained in:
@@ -95,7 +95,7 @@ To build your own Soulseek client, add to your `Cargo.toml`:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
soulseek-rs-lib = "7"
|
||||
soulseek-rs-lib = "8"
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -341,9 +341,9 @@ export const Install = () => {
|
||||
label="Cargo.toml"
|
||||
lines={[
|
||||
{ t: 'cm', text: '[dependencies]' },
|
||||
{ t: 'code', text: 'soulseek-rs-lib = "7"' },
|
||||
{ t: 'code', text: 'soulseek-rs-lib = "8"' },
|
||||
]}
|
||||
copy={'[dependencies]\nsoulseek-rs-lib = "7"'}
|
||||
copy={'[dependencies]\nsoulseek-rs-lib = "8"'}
|
||||
/>
|
||||
<Terminal label="src/main.rs" lines={LIB_LINES} copy={LIB_SRC} />
|
||||
<p className="text-[13px] text-muted">
|
||||
@@ -356,7 +356,7 @@ export const Install = () => {
|
||||
>
|
||||
docs.rs
|
||||
</a>
|
||||
. Note: v6 moved sharing from one directory to a list. See the{' '}
|
||||
. The lib API changes between majors, so check the{' '}
|
||||
<a
|
||||
href={LINKS.changelog}
|
||||
target="_blank"
|
||||
@@ -365,7 +365,7 @@ export const Install = () => {
|
||||
>
|
||||
changelog
|
||||
</a>{' '}
|
||||
if you’re upgrading from 5.x.
|
||||
when you upgrade.
|
||||
</p>
|
||||
</Step>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user