cargo new x11n900 --bin
[dependencies] libc = "*" x11-dl = "*"
cargo run
37c37 < x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so"], 767, --- > x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so"], 763, 241d240 < pub fn XESetCopyEventCookie (_3: *mut Display, _2: c_int, _1: Option<unsafe extern "C" fn (*mut Display, *mut XGenericEventCookie, *mut XGenericEventCookie) -> c_int>) -> Option<unsafe extern "C" fn (*mut Display, *mut XGenericEventCookie, *mut XGenericEventCookie) -> c_int>, 254d252 < pub fn XESetWireToEventCookie (_3: *mut Display, _2: c_int, _1: Option<unsafe extern "C" fn (*mut Display, *mut XGenericEventCookie, *mut xEvent) -> c_int>) -> Option<unsafe extern "C" fn (*mut Display, *mut XGenericEventCookie, *mut xEvent) -> c_int>, 278d275 < pub fn XFreeEventData (_2: *mut Display, _1: *mut XGenericEventCookie) -> (), 298d294 < pub fn XGetEventData (_2: *mut Display, _1: *mut XGenericEventCookie) -> c_int,
cargo clean cargo run ldd target/debug/x11n900
cargo build --target=armv7-unknown-linux-gnueabihf --release rsync -ave ssh target/armv7-unknown-linux-gnueabihf/release/x11n900 root@n900:/root/rust/
LD_LIBRARY_PATH=/root/rust/ /root/rust/x11n900