lighty-core
Overview
Quick Start
[dependencies]
lighty-core = "0.8.6"use lighty_core::{AppState, system::{OS, ARCHITECTURE}};
const QUALIFIER: &str = "com";
const ORGANIZATION: &str = "MyLauncher";
const APPLICATION: &str = "";
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Initialize application state
let _app = AppState::new(
QUALIFIER.to_string(),
ORGANIZATION.to_string(),
APPLICATION.to_string(),
)?;
let launcher_dir = AppState::get_project_dirs();
println!("Data directory: {}", launcher_dir.data_dir().display());
println!("Cache directory: {}", launcher_dir.cache_dir().display());
println!("Running on: {:?} {:?}", OS, ARCHITECTURE);
Ok(())
}Features
Documentation
Guide
Description
Related Crates
License
Last updated