Skip to main content

Crate onyx

Crate onyx 

Source
Expand description

Cross-platform toolkit for desktop applications.

See module-level docs for surface and usage.

Modules§

appearance
Reports the operating system’s current color scheme so applications can match the native light or dark theme.
clipboard
Read and write the system clipboard as plain text via per-platform backends. Mirrors the Go onyx/clipboard package.
files
Open files and URLs with the user’s default application, and reveal a path in the platform file manager.
keyring
Store, retrieve, and delete secrets in the system credential store via per-platform backends. Mirrors the Go onyx/keyring package.
machineid
Stable, per-application identifier for the current machine, persisted in the system keyring so it survives application restarts.
notify
Show desktop notifications via per-platform backends. Mirrors the Go onyx/notify package.
osinfo
Single source of truth for platform identity.
paths
Per-application platform paths (config, data, cache, logs).
process
Launches and relaunches the host application across platforms, hiding the per-OS command needed to open a fresh instance.
shell
Locate command-line executables. Each lookup target is treated as a PATH name when it has no separators, or as a file path otherwise.