mirror of
https://github.com/priyanshujain/margin.git
synced 2026-10-02 11:07:04 +00:00
feat(io): add read_file/write_file commands and dialog capability
This commit is contained in:
1 parent
eb63a6d49d
commit
13f2a70af2
3 files changed
+20
-2
No files matched your search
@@ -1,10 +1,16 @@
|
||||
mod pdf;
|
||||
mod project;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![pdf::compile_pdf])
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
pdf::compile_pdf,
|
||||
project::read_file,
|
||||
project::write_file
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running margin");
|
||||
}
|
||||
Reference in new issue
Block a user