chore: update documentation

This commit is contained in:
Lucas Nogueira
2026-09-22 11:30:47 -03:00
parent d869c162a7
commit a87a3c7d44
104 changed files with 4875 additions and 222 deletions
+3
View File
@@ -4,6 +4,9 @@
use serde::{Serialize, Serializer};
/// All errors that can occur while running the os plugin.
///
/// This enum currently has no variants: none of the plugin's commands can fail.
#[derive(Debug, thiserror::Error)]
pub enum Error {}
+7
View File
@@ -23,11 +23,17 @@ mod error;
pub use error::Error;
/// The type of the current operating system, as returned by [`type_`].
pub enum OsType {
/// Linux and Linux-based systems such as FreeBSD, DragonFly BSD, NetBSD and OpenBSD.
Linux,
/// Windows.
Windows,
/// macOS.
Macos,
/// iOS.
IOS,
/// Android.
Android,
}
@@ -127,6 +133,7 @@ impl InitJavascript<'_> {
}
}
/// Initializes the plugin.
pub fn init<R: Runtime>() -> TauriPlugin<R> {
let init_js = InitJavascript::new()
.render_default(&Default::default())