krizaka_rust/lib.rs
1//! What every Krizaka macOS app (Tauri 2) shares, with no dependency on Tauri itself so it is tested without a window.
2//! The Tauri glue that wires these rules into an app is the `tauri-plugin-krizaka` crate of this repository.
3//!
4//! - [`scope`]: the folder grants. A path is readable only inside a folder the user granted, compared on canonical paths.
5//! - [`files`]: listing and previewing inside a grant.
6//! - [`access`]: who may read what: the granted folders, and the files dropped on the window this session.
7//! - [`nav_guard`]: a window stays on the app's own places; a web link elsewhere opens in the browser.
8//! - [`deep_link`]: `product://…` and the product's web links become a route inside the app, or are refused.
9//! - [`menu`]: the native menu bar the page describes, checked before it is built.
10//! - [`secrets`]: small secrets (the session token) and their rules; the Keychain store is in the plugin.
11//! - [`device_flow`]: the OAuth device flow (GitHub first) with the tokens in the Keychain, refreshed, signed out locally.
12//! - [`settings`]: small JSON files written atomically.
13//! - [`update`]: the update channel (`stable`, `beta`) and its feed.
14
15pub mod access;
16pub mod deep_link;
17pub mod device_flow;
18pub mod files;
19#[cfg(feature = "keychain")]
20pub mod keychain;
21pub mod menu;
22pub mod nav_guard;
23pub mod scope;
24pub mod secrets;
25pub mod settings;
26pub mod update;