mirror of
https://codeberg.org/spire/dispenser.git
synced 2026-06-03 18:14:06 +02:00
bumb dependencies
This commit is contained in:
parent
cdb8452cb6
commit
c2fd7cd3f8
3 changed files with 350 additions and 280 deletions
634
Cargo.lock
generated
634
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -18,5 +18,5 @@ thrussh = "0.33"
|
||||||
thrussh-keys = "0.21"
|
thrussh-keys = "0.21"
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
pretty_env_logger = "0.4"
|
pretty_env_logger = "0.4"
|
||||||
cron = "0.9"
|
cron = "0.11.0"
|
||||||
rcon = "0.4"
|
rcon = { version = "0.6.0", features = ["rt-tokio"] }
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
use rcon::Connection;
|
use rcon::Connection;
|
||||||
use tokio::net::ToSocketAddrs;
|
use tokio::net::{TcpStream, ToSocketAddrs};
|
||||||
|
|
||||||
pub struct Rcon(Connection);
|
pub struct Rcon(Connection<TcpStream>);
|
||||||
|
|
||||||
impl Rcon {
|
impl Rcon {
|
||||||
pub async fn new<A: ToSocketAddrs>(host: A, password: &str) -> Result<Self, Error> {
|
pub async fn new<A: ToSocketAddrs>(host: A, password: &str) -> Result<Self, Error> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue