Merge #62
62: Prio fixes r=jowax a=jowax Co-authored-by: Joel Wachsler <jowax@users.noreply.github.com>
This commit is contained in:
commit
1efa901d61
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry
|
path: ~/.cargo/registry
|
||||||
key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.toml') }}
|
||||||
|
|
||||||
- name: Install latest stable
|
- name: Install latest stable
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
@ -75,7 +75,7 @@ jobs:
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry
|
path: ~/.cargo/registry
|
||||||
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('Cargo.toml') }}
|
||||||
|
|
||||||
- name: Install latest stable
|
- name: Install latest stable
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
target
|
target
|
||||||
.env
|
.env
|
||||||
|
/Cargo.lock
|
||||||
|
|
16
Cargo.lock
generated
16
Cargo.lock
generated
|
@ -22,9 +22,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anyhow"
|
name = "anyhow"
|
||||||
version = "1.0.60"
|
version = "1.0.61"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c794e162a5eff65c72ef524dfe393eb923c354e350bb78b9c7383df13f3bc142"
|
checksum = "508b352bb5c066aac251f6daf6b36eccd03e8a88e8081cd44959ea277a3af9a8"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "autocfg"
|
name = "autocfg"
|
||||||
|
@ -370,9 +370,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.127"
|
version = "0.2.131"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "505e71a4706fa491e9b1b55f51b95d4037d0821ee40131190475f692b35b009b"
|
checksum = "04c3b4822ccebfa39c02fc03d1534441b22ead323fa0f48bb7ddd8e6ba076a40"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lock_api"
|
name = "lock_api"
|
||||||
|
@ -751,18 +751,18 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "1.0.142"
|
version = "1.0.143"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e590c437916fb6b221e1d00df6e3294f3fccd70ca7e92541c475d6ed6ef5fee2"
|
checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde_derive",
|
"serde_derive",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_derive"
|
name = "serde_derive"
|
||||||
version = "1.0.142"
|
version = "1.0.143"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "34b5b8d809babe02f538c2cfec6f2c1ed10804c0e5a6a041a049a4f5588ccc2e"
|
checksum = "d3d8e8de557aee63c26b85b947f5e59b690d0454c753f3adeb5cd7835ab88391"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|
12
Cargo.toml
12
Cargo.toml
|
@ -8,13 +8,13 @@ repository = "https://github.com/jowax/qbittorrent-web-api"
|
||||||
description = "Generated web api for qBittorrent"
|
description = "Generated web api for qBittorrent"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
reqwest = { version = "0.11.11", features = ["json", "multipart"] }
|
reqwest = { version = "0.11", features = ["json", "multipart"] }
|
||||||
tokio = { version = "1.19.2", features = ["full"] }
|
tokio = { version = "1.19", features = ["full"] }
|
||||||
qbittorrent-web-api-gen = { path = "./qbittorrent-web-api-gen", version = "0.6.3" }
|
qbittorrent-web-api-gen = { path = "./qbittorrent-web-api-gen", version = "0.6.3" }
|
||||||
serde = { version = "1.0.138", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0.82"
|
serde_json = "1.0"
|
||||||
serde_repr = "0.1.9"
|
serde_repr = "0.1"
|
||||||
thiserror = "1.0.31"
|
thiserror = "1.0"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["qbittorrent-web-api-gen"]
|
members = ["qbittorrent-web-api-gen"]
|
||||||
|
|
|
@ -25,19 +25,19 @@ name = "tests"
|
||||||
path = "tests/tests.rs"
|
path = "tests/tests.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
syn = { version = "1.0.98", features = ["extra-traits"] }
|
syn = { version = "1.0", features = ["extra-traits"] }
|
||||||
quote = "1.0.20"
|
quote = "1.0"
|
||||||
proc-macro2 = "1.0.40"
|
proc-macro2 = "1.0"
|
||||||
case = "1.0.0"
|
case = "1.0"
|
||||||
thiserror = "1.0.31"
|
thiserror = "1.0.31"
|
||||||
serde = { version = "1.0.138", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0.82"
|
serde_json = "1.0"
|
||||||
serde_repr = "0.1.9"
|
serde_repr = "0.1"
|
||||||
regex = "1.6.0"
|
regex = "1.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
trybuild = { version = "1.0.63", features = ["diff"] }
|
trybuild = { version = "1.0", features = ["diff"] }
|
||||||
anyhow = "1.0.58"
|
anyhow = "1.0"
|
||||||
tokio = { version = "1.19.2", features = ["full"] }
|
tokio = { version = "1.19", features = ["full"] }
|
||||||
reqwest = { version = "0.11.11", features = ["json", "multipart"] }
|
reqwest = { version = "0.11", features = ["json", "multipart"] }
|
||||||
pretty_assertions = "1.2.1"
|
pretty_assertions = "1.2"
|
||||||
|
|
|
@ -1667,7 +1667,8 @@ Possible values of `priority`:
|
||||||
Value | Description
|
Value | Description
|
||||||
-----------|------------
|
-----------|------------
|
||||||
`0` | Do not download
|
`0` | Do not download
|
||||||
`4` | Normal priority
|
`1` | Normal priority
|
||||||
|
`4` | Default Normal priority
|
||||||
`6` | High priority
|
`6` | High priority
|
||||||
`7` | Maximal priority
|
`7` | Maximal priority
|
||||||
|
|
||||||
|
|
|
@ -4431,6 +4431,13 @@
|
||||||
"Normal priority",
|
"Normal priority",
|
||||||
),
|
),
|
||||||
value: "NormalPriority",
|
value: "NormalPriority",
|
||||||
|
original_value: "1",
|
||||||
|
},
|
||||||
|
EnumValue {
|
||||||
|
description: Some(
|
||||||
|
"Default Normal priority",
|
||||||
|
),
|
||||||
|
value: "DefaultNormalPriority",
|
||||||
original_value: "4",
|
original_value: "4",
|
||||||
},
|
},
|
||||||
EnumValue {
|
EnumValue {
|
||||||
|
|
|
@ -8007,10 +8007,17 @@ TokenTree {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
TableRow {
|
TableRow {
|
||||||
raw: "`4` | Normal priority",
|
raw: "`1` | Normal priority",
|
||||||
|
columns: [
|
||||||
|
"1",
|
||||||
|
"Normal priority",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
TableRow {
|
||||||
|
raw: "`4` | Default Normal priority",
|
||||||
columns: [
|
columns: [
|
||||||
"4",
|
"4",
|
||||||
"Normal priority",
|
"Default Normal priority",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
TableRow {
|
TableRow {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user