libstrophe 0.20.3

Rust ergonomic wrapper for libstrophe
Documentation
1
2
3
4
5
6
7
8
9
use libstrophe::{Connection, ConnectionEvent, Context, StreamError};

fn main() {
	{
		let conn = Connection::new(Context::new_with_null_logger());
		let handler = |_: &Context, _: &mut Connection, _: ConnectionEvent| {};
		conn.connect_client(None, None, &handler).unwrap()
	};
}