1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// this file is basically just to weave together the seperate mod files. // also the pub use statements bring objects over to our main file. // By: Curtis Jones <mail@curtisjones.ca> // Started on: September 07, 2020 // #[macro_export] /// Alot of the Xlib & Xft functions require pointers to uninitialized variables. /// It is very much not in the rust theme but that's the price you pay for using c libraries. macro_rules! init { () => { mem::MaybeUninit::uninit().assume_init(); }; } /// Main meat of the program, where all the direct access to Xlib lives. mod bar; /// Additional module to have a system tray display. mod system_tray; /// Parsing the config file and adjusting based on command line args provided. mod config; /// Turning basic random characters into Input struct that the Bar struct can display to the /// screen. mod input; /// To be used by the binary crate. pub use bar::{gen_config, Bar};