eddn 0.3.0

Elite: Dangerous Data Network (EDDN) subscriber
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use eddn::{subscribe, URL};

fn main() {
    // Without this the crate traces into the void.
    tracing_subscriber::fmt::init();

    for result in subscribe(URL, None) {
        match result {
            Ok(envelope) => {
                dbg!(envelope);
            }
            Err(err) => eprintln!("{}", err),
        }
    }
}