mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-14 20:00:55 +02:00
20 lines
450 B
Rust
20 lines
450 B
Rust
use crate::manager::HttpConnectionManager;
|
|
use tauri::plugin::{Builder, TauriPlugin};
|
|
use tauri::{Manager, Runtime};
|
|
|
|
pub mod client;
|
|
pub mod dns;
|
|
pub mod error;
|
|
pub mod manager;
|
|
pub mod path_placeholders;
|
|
|
|
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
|
Builder::new("yaak-http")
|
|
.setup(|app, _api| {
|
|
let manager = HttpConnectionManager::new();
|
|
app.manage(manager);
|
|
Ok(())
|
|
})
|
|
.build()
|
|
}
|