mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Update MSRV to 1.61 and fix test
This commit is contained in:
parent
6b11fb5cee
commit
9e06b11609
3 changed files with 6 additions and 6 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -55,7 +55,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
toolchain:
|
toolchain:
|
||||||
- "1.60" # MSRV (Minimum supported rust version)
|
- "1.61" # MSRV (Minimum supported rust version)
|
||||||
- stable
|
- stable
|
||||||
experimental: [false]
|
experimental: [false]
|
||||||
# Ignore failures in beta
|
# Ignore failures in beta
|
||||||
|
@ -113,7 +113,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest]
|
os: [windows-latest]
|
||||||
toolchain:
|
toolchain:
|
||||||
- "1.60" # MSRV (Minimum supported rust version)
|
- "1.61" # MSRV (Minimum supported rust version)
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -160,7 +160,7 @@ jobs:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
target: [armv7-unknown-linux-gnueabihf]
|
target: [armv7-unknown-linux-gnueabihf]
|
||||||
toolchain:
|
toolchain:
|
||||||
- "1.60" # MSRV (Minimum supported rust version)
|
- "1.61" # MSRV (Minimum supported rust version)
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
|
@ -7,7 +7,7 @@ In order to compile librespot, you will first need to set up a suitable Rust bui
|
||||||
### Install Rust
|
### Install Rust
|
||||||
The easiest, and recommended way to get Rust is to use [rustup](https://rustup.rs). Once that’s installed, Rust's standard tools should be set up and ready to use.
|
The easiest, and recommended way to get Rust is to use [rustup](https://rustup.rs). Once that’s installed, Rust's standard tools should be set up and ready to use.
|
||||||
|
|
||||||
*Note: The current minimum supported Rust version at the time of writing is 1.60.*
|
*Note: The current minimum supported Rust version at the time of writing is 1.61.*
|
||||||
|
|
||||||
#### Additional Rust tools - `rustfmt`
|
#### Additional Rust tools - `rustfmt`
|
||||||
To ensure a consistent codebase, we utilise [`rustfmt`](https://github.com/rust-lang/rustfmt) and [`clippy`](https://github.com/rust-lang/rust-clippy), which are installed by default with `rustup` these days, else they can be installed manually with:
|
To ensure a consistent codebase, we utilise [`rustfmt`](https://github.com/rust-lang/rustfmt) and [`clippy`](https://github.com/rust-lang/rust-clippy), which are installed by default with `rustup` these days, else they can be installed manually with:
|
||||||
|
|
|
@ -7,8 +7,8 @@ use librespot_core::{authentication::Credentials, config::SessionConfig, session
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_connection() {
|
async fn test_connection() {
|
||||||
timeout(Duration::from_secs(30), async {
|
timeout(Duration::from_secs(30), async {
|
||||||
let result = Session::new(SessionConfig::default(), None, false)
|
let result = Session::new(SessionConfig::default(), None)
|
||||||
.connect(Credentials::with_password("test", "test"))
|
.connect(Credentials::with_password("test", "test"), false)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
match result {
|
match result {
|
||||||
|
|
Loading…
Reference in a new issue