mirror of
https://github.com/priyanshujain/margin.git
synced 2026-10-02 19:17:03 +00:00
18 lines
484 B
Rust
18 lines
484 B
Rust
mod pdf;
|
|
mod project;
|
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_opener::init())
|
|
.plugin(tauri_plugin_dialog::init())
|
|
.invoke_handler(tauri::generate_handler![
|
|
pdf::compile_pdf,
|
|
project::read_file,
|
|
project::write_file,
|
|
project::write_bytes
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running margin");
|
|
}
|