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