mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-23 03:36:38 +08:00
19 lines
534 B
Rust
19 lines
534 B
Rust
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
mod stream;
|
|
mod fetch;
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![
|
|
stream::stream_fetch,
|
|
fetch::http_fetch,
|
|
fetch::http_fetch_text,
|
|
fetch::http_fetch_json
|
|
])
|
|
.plugin(tauri_plugin_window_state::Builder::default().build())
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|