mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-09 10:32:26 +02:00
16 lines
510 B
Rust
16 lines
510 B
Rust
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// This is an example of a tauri app built into a dll
|
|
// Calling lib_test1 within the dll will launch the webview
|
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn run_tauri() {
|
|
tauri::Builder::default()
|
|
.run(tauri::generate_context!("./tauri.conf.json"))
|
|
.expect("error while running tauri application");
|
|
}
|