add a small example
This commit is contained in:
parent
bf7112ff39
commit
12cbd17da7
1 changed files with 11 additions and 0 deletions
11
examples/client.rs
Normal file
11
examples/client.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
extern crate xmpp;
|
||||
|
||||
use xmpp::jid::Jid;
|
||||
use xmpp::client::ClientBuilder;
|
||||
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let jid: Jid = env::var("JID").unwrap().parse().unwrap();
|
||||
let client = ClientBuilder::new(jid).connect().unwrap();
|
||||
}
|
Loading…
Reference in a new issue