diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f31f203..03507ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.lock') }} + key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.toml') }} - name: Install latest stable uses: actions-rs/toolchain@v1 @@ -75,7 +75,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('Cargo.lock') }} + key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('Cargo.toml') }} - name: Install latest stable uses: actions-rs/toolchain@v1 diff --git a/.gitignore b/.gitignore index c5dd462..89a34bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ target .env +/Cargo.lock diff --git a/Cargo.lock b/Cargo.lock index 4168ef7..77b9fa1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,9 +22,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.60" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c794e162a5eff65c72ef524dfe393eb923c354e350bb78b9c7383df13f3bc142" +checksum = "508b352bb5c066aac251f6daf6b36eccd03e8a88e8081cd44959ea277a3af9a8" [[package]] name = "autocfg" @@ -370,9 +370,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.127" +version = "0.2.131" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "505e71a4706fa491e9b1b55f51b95d4037d0821ee40131190475f692b35b009b" +checksum = "04c3b4822ccebfa39c02fc03d1534441b22ead323fa0f48bb7ddd8e6ba076a40" [[package]] name = "lock_api" @@ -751,18 +751,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.142" +version = "1.0.143" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e590c437916fb6b221e1d00df6e3294f3fccd70ca7e92541c475d6ed6ef5fee2" +checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.142" +version = "1.0.143" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34b5b8d809babe02f538c2cfec6f2c1ed10804c0e5a6a041a049a4f5588ccc2e" +checksum = "d3d8e8de557aee63c26b85b947f5e59b690d0454c753f3adeb5cd7835ab88391" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 5555cc5..4e70536 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,13 +8,13 @@ repository = "https://github.com/jowax/qbittorrent-web-api" description = "Generated web api for qBittorrent" [dependencies] -reqwest = { version = "0.11.11", features = ["json", "multipart"] } -tokio = { version = "1.19.2", features = ["full"] } +reqwest = { version = "0.11", features = ["json", "multipart"] } +tokio = { version = "1.19", features = ["full"] } qbittorrent-web-api-gen = { path = "./qbittorrent-web-api-gen", version = "0.6.3" } -serde = { version = "1.0.138", features = ["derive"] } -serde_json = "1.0.82" -serde_repr = "0.1.9" -thiserror = "1.0.31" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +serde_repr = "0.1" +thiserror = "1.0" [workspace] members = ["qbittorrent-web-api-gen"] diff --git a/qbittorrent-web-api-gen/Cargo.toml b/qbittorrent-web-api-gen/Cargo.toml index 189492f..5486be7 100644 --- a/qbittorrent-web-api-gen/Cargo.toml +++ b/qbittorrent-web-api-gen/Cargo.toml @@ -25,19 +25,19 @@ name = "tests" path = "tests/tests.rs" [dependencies] -syn = { version = "1.0.98", features = ["extra-traits"] } -quote = "1.0.20" -proc-macro2 = "1.0.40" -case = "1.0.0" +syn = { version = "1.0", features = ["extra-traits"] } +quote = "1.0" +proc-macro2 = "1.0" +case = "1.0" thiserror = "1.0.31" -serde = { version = "1.0.138", features = ["derive"] } -serde_json = "1.0.82" -serde_repr = "0.1.9" -regex = "1.6.0" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +serde_repr = "0.1" +regex = "1.6" [dev-dependencies] -trybuild = { version = "1.0.63", features = ["diff"] } -anyhow = "1.0.58" -tokio = { version = "1.19.2", features = ["full"] } -reqwest = { version = "0.11.11", features = ["json", "multipart"] } -pretty_assertions = "1.2.1" +trybuild = { version = "1.0", features = ["diff"] } +anyhow = "1.0" +tokio = { version = "1.19", features = ["full"] } +reqwest = { version = "0.11", features = ["json", "multipart"] } +pretty_assertions = "1.2" diff --git a/qbittorrent-web-api-gen/api-4_1.md b/qbittorrent-web-api-gen/api-4_1.md index 503f803..97fc654 100644 --- a/qbittorrent-web-api-gen/api-4_1.md +++ b/qbittorrent-web-api-gen/api-4_1.md @@ -1667,7 +1667,8 @@ Possible values of `priority`: Value | Description -----------|------------ `0` | Do not download -`4` | Normal priority +`1` | Normal priority +`4` | Default Normal priority `6` | High priority `7` | Maximal priority diff --git a/qbittorrent-web-api-gen/groups.txt b/qbittorrent-web-api-gen/groups.txt index 20e5b75..147aaca 100644 --- a/qbittorrent-web-api-gen/groups.txt +++ b/qbittorrent-web-api-gen/groups.txt @@ -4431,6 +4431,13 @@ "Normal priority", ), value: "NormalPriority", + original_value: "1", + }, + EnumValue { + description: Some( + "Default Normal priority", + ), + value: "DefaultNormalPriority", original_value: "4", }, EnumValue { diff --git a/qbittorrent-web-api-gen/token_tree.txt b/qbittorrent-web-api-gen/token_tree.txt index 8bec9b1..3d67a99 100644 --- a/qbittorrent-web-api-gen/token_tree.txt +++ b/qbittorrent-web-api-gen/token_tree.txt @@ -8007,10 +8007,17 @@ TokenTree { ], }, TableRow { - raw: "`4` | Normal priority", + raw: "`1` | Normal priority", + columns: [ + "1", + "Normal priority", + ], + }, + TableRow { + raw: "`4` | Default Normal priority", columns: [ "4", - "Normal priority", + "Default Normal priority", ], }, TableRow {