diff --git a/Cargo.toml b/Cargo.toml index 5669190..8eb1f82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "transmission-rpc" -version = "0.4.1" -authors = ["red ", "George Miao "] +version = "0.4.2" +authors = ["red "] edition = "2021" repository = "https://github.com/j0rsa/transmission-rpc" license = "MIT" @@ -15,17 +15,17 @@ include = ["**/*.rs", "Cargo.toml"] sync = [] [dependencies] -reqwest = { version = "0.11.11", features = [ +reqwest = { version = "0.11.22", features = [ "json", "rustls-tls", ], default-features = false } -serde = { version = "1.0.144", features = ["derive"] } -serde_repr = "0.1" -enum-iterator = "1.2.0" +serde = { version = "1.0.190", features = ["derive"] } +serde_repr = "0.1.17" +enum-iterator = "1.4.1" -log = "0.4.17" +log = "0.4.20" [dev-dependencies] env_logger = "0.10.0" -dotenvy = "0.15.5" -tokio = { version = "1.21.1", features = ["macros", "rt-multi-thread"] } +dotenvy = "0.15.7" +tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] } diff --git a/README.md b/README.md index 30449d2..2ea9dde 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ https://github.com/transmission/transmission/blob/main/docs/rpc-spec.md - [X] torrent-remove - [X] torrent-set-location - [X] torrent-rename-path -- [ ] session-set +- [X] session-set - [X] session-get - [X] session-stats - [X] blocklist-update diff --git a/src/types/response.rs b/src/types/response.rs index 6686235..b8b766c 100644 --- a/src/types/response.rs +++ b/src/types/response.rs @@ -137,7 +137,7 @@ pub struct Torrent { pub priorities: Option>, pub file_stats: Option>, #[serde(rename = "file-count")] - pub file_count: Option + pub file_count: Option, } impl Torrent {