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
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
soulseek-rs-lib = "7"
|
soulseek-rs-lib = "8"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -341,9 +341,9 @@ export const Install = () => {
|
|||||||
label="Cargo.toml"
|
label="Cargo.toml"
|
||||||
lines={[
|
lines={[
|
||||||
{ t: 'cm', text: '[dependencies]' },
|
{ 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} />
|
<Terminal label="src/main.rs" lines={LIB_LINES} copy={LIB_SRC} />
|
||||||
<p className="text-[13px] text-muted">
|
<p className="text-[13px] text-muted">
|
||||||
@@ -356,7 +356,7 @@ export const Install = () => {
|
|||||||
>
|
>
|
||||||
docs.rs
|
docs.rs
|
||||||
</a>
|
</a>
|
||||||
. Note: v6 moved sharing from one directory to a list. See the{' '}
|
. The lib API changes between majors, so check the{' '}
|
||||||
<a
|
<a
|
||||||
href={LINKS.changelog}
|
href={LINKS.changelog}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -365,7 +365,7 @@ export const Install = () => {
|
|||||||
>
|
>
|
||||||
changelog
|
changelog
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
if you’re upgrading from 5.x.
|
when you upgrade.
|
||||||
</p>
|
</p>
|
||||||
</Step>
|
</Step>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user