Yoda/src/main.rs

31 lines
624 B
Rust
Raw Normal View History

mod action;
2024-10-02 02:14:00 +03:00
mod app;
mod profile;
2024-09-18 20:33:29 +03:00
use crate::profile::Profile;
2024-10-02 02:14:00 +03:00
use app::App;
use gtk::glib::ExitCode;
use std::rc::Rc;
2024-09-21 20:48:12 +03:00
2024-10-03 19:46:13 +03:00
const VENDOR: &str = "YGGverse";
const APP_ID: &str = "Yoda";
2024-10-11 22:57:35 +03:00
const BRANCH: &str = "master";
2024-10-03 19:46:13 +03:00
2024-09-30 02:00:14 +03:00
fn main() -> ExitCode {
match gtk::init() {
Ok(_) => App::new(Rc::new(Profile::new(
VENDOR,
APP_ID,
BRANCH,
format!(
"{}.{}",
env!("CARGO_PKG_VERSION_MAJOR"),
env!("CARGO_PKG_VERSION_MINOR")
)
.as_str(),
)))
.run(),
Err(_) => ExitCode::FAILURE,
}
2024-09-20 18:02:10 +03:00
}