initial commit

This commit is contained in:
2024-12-09 22:53:43 +01:00
commit ce8c259d1b
41 changed files with 4966 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#[tauri::command]
pub fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust, with a different file!", name)
}

11
src-tauri/src/lib.rs Normal file
View File

@@ -0,0 +1,11 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
mod handlers;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![handlers::greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

6
src-tauri/src/main.rs Normal file
View File

@@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
ezpplauncher_lib::run()
}