mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 23:43:55 +01:00
27 lines
573 B
Rust
27 lines
573 B
Rust
use crate::manager::HttpConnectionManager;
|
|
use tauri::plugin::{Builder, TauriPlugin};
|
|
use tauri::{Manager, Runtime};
|
|
|
|
mod chained_reader;
|
|
pub mod client;
|
|
pub mod decompress;
|
|
pub mod dns;
|
|
pub mod error;
|
|
pub mod manager;
|
|
pub mod path_placeholders;
|
|
mod proto;
|
|
pub mod sender;
|
|
pub mod tee_reader;
|
|
pub mod transaction;
|
|
pub mod types;
|
|
|
|
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
|
Builder::new("yaak-http")
|
|
.setup(|app, _api| {
|
|
let manager = HttpConnectionManager::new();
|
|
app.manage(manager);
|
|
Ok(())
|
|
})
|
|
.build()
|
|
}
|