breadx 3.0.1

Pure-Rust X11 connection implementation with a focus on adaptability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// MIT/Apache2 License

//! Less of an example of what to do and more of just a diagnostic tool
//! for what our `Setup` looks like.

#[cfg(feature = "std")]
use breadx::{display::DisplayConnection, prelude::*};

#[cfg(feature = "std")]
fn main() {
    let conn = DisplayConnection::connect(None).unwrap();
    println!("{:#?}", conn.setup());
}

#[cfg(not(feature = "std"))]
fn main() {
    println!("This example requires the `std` feature.");
}