diff --git a/.gitignore b/.gitignore index 7f71c90..476c8dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /target Cargo.lock -.env +/.env .idea/* .vscode/* diff --git a/Cargo.toml b/Cargo.toml index 5e77f32..0967b1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "transmission-rpc" -version = "0.3.3" +version = "0.3.4" authors = ["red "] edition = "2018" repository = "https://github.com/j0rsa/transmission-rpc" @@ -15,14 +15,14 @@ include = [ ] [dependencies] -reqwest = { version = "0.11.0", features = ["json", "rustls-tls"], default-features = false } -serde = { version = "1.0", features = ["derive"] } +reqwest = { version = "0.11.2", features = ["json", "rustls-tls"], default-features = false } +serde = { version = "1.0.124", features = ["derive"] } rustc-serialize = "0.3.24" enum-iterator = "0.6.0" dotenv = "0.15.0" -log = "0.4.8" -env_logger = "0.8.2" +log = "0.4.14" +env_logger = "0.8.3" [dev-dependencies] -tokio = { version = "1.2", features = ["macros", "rt-multi-thread"] } +tokio = { version = "1.3.0", features = ["macros", "rt-multi-thread"] } diff --git a/README.md b/README.md index f1fafb7..1ad1845 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Library to communicate with transmission rpc +**WARNING:** + +It is highly encouraged to use HTTPS since the Transmission authentication is using BasicAuth which could be easily intercepted + spec: https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt #### Supported Methods @@ -28,8 +32,6 @@ spec: https://github.com/transmission/transmission/blob/master/extras/rpc-spec.t - [ ] blocklist-update - [ ] port-test - [ ] session-close -- [ ] free-space - -[https://crates.io/crates/transmission-rpc]: https://img.shields.io/badge/crates.io-transmission_rpc%20=%20%220.2.0%22-brightgreen.svg +- [ ] free-space Support the project: [![Donate button](https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H337RKJSC4YG4&source=url) diff --git a/examples/.env b/examples/.env new file mode 100644 index 0000000..b7873c1 --- /dev/null +++ b/examples/.env @@ -0,0 +1,4 @@ +TURL=http://192.168.0.1/transmission/rpc +TUSER=transmission-user +TPWD=transmission-password +RUST_LOG=info \ No newline at end of file