nw_sys/
lib.rs

1//!
2//! [<img alt="github" src="https://img.shields.io/badge/github-aspectron/nw--sys-8da0cb?style=for-the-badge&labelColor=555555&color=8da0cb&logo=github" height="20">](https://github.com/aspectron/nw-sys)
3//! [<img alt="crates.io" src="https://img.shields.io/crates/v/nw-sys.svg?maxAge=2592000&style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/nw-sys)
4//! [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-nw--sys-56c2a5?maxAge=2592000&style=for-the-badge&logo=rust" height="20">](https://docs.rs/nw-sys)
5//! <img alt="license" src="https://img.shields.io/crates/l/nw-sys.svg?maxAge=2592000&color=6ac&style=for-the-badge&logo=opensourceinitiative&logoColor=fff" height="20">
6//!
7//! # Overview
8//!
9//! [`nw-sys`](self) provides [`wasm_bindgen`] bindings for
10//! [Node Webkit JavaScript APIs](https://nwjs.readthedocs.io/en/latest/)
11//! offered by the [NWJS](https://nwjs.io) project, allowing development of
12//! interactive desktop applications based on Node Webkit in Rust using WASM.
13//!
14//! Various helper structures that simplify this API and provide the Rust builder
15//! pattern are available via the [`workflow-nw`](https://crates.io/crates/workflow-nw) crate.
16//!
17//! Interactive installers for applications created using this crate targeting Windows,
18//! MacOS and Linux operating systems can be built using
19//! [`cargo-nw`](https://crates.io/crates/cargo-nw) packaging tool.
20//!
21//! An example application demonstrating use of these APIs can be
22//! found here:  [https://github.com/aspectron/nw-sys-example](https://github.com/aspectron/nw-sys-example)
23//!
24//! ---
25//! This framework is maintained by [ASPECTRON](https://aspectron.org/). If you find this crate useful,
26//! please consider supporting us. For more information, please visit [https://aspectron.org](https://aspectron.org/).
27//!
28//! ---
29//!
30
31pub mod error;
32pub mod options;
33pub mod result;
34
35mod nw;
36pub use nw::is_nw;
37pub use nw::try_nw;
38pub use nw::Nw;
39
40pub mod global;
41
42pub mod app;
43
44pub mod clipboard;
45#[doc(inline)]
46pub use clipboard::Clipboard;
47
48pub mod menu;
49#[doc(inline)]
50pub use menu::Menu;
51
52pub mod menu_item;
53#[doc(inline)]
54pub use menu_item::MenuItem;
55
56pub mod screen;
57
58pub mod shell;
59
60pub mod shortcut;
61#[doc(inline)]
62pub use shortcut::Shortcut;
63
64pub mod tray;
65#[doc(inline)]
66pub use tray::Tray;
67
68pub mod window;
69#[doc(inline)]
70pub use window::Window;
71
72pub mod prelude;
73pub mod utils;
74
75mod chrome;
76#[doc(inline)]
77pub use chrome::notifications;