aboutsummaryrefslogtreecommitdiff
path: root/src/bin/quassel-client.rs
blob: ce450b6ad12cf3f30e090eb24a606368e54676d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use failure::Error;

extern crate libquassel;
use libquassel::client;

#[macro_use]
extern crate tokio;

#[tokio::main]
async fn main() -> Result<(), Error> {

    let mut client = client::Client::connect(
        "localhost",
        4242,
        false,
        true,
    ).await.unwrap();

    client.run().await;
//    client.login("audron", "audron", client_init);

    Ok(())
} // the stream is closed here