https://github.com/aspectron/nw-sys
Rust bindings for NWJS (NodeWebkit) APIs
https://github.com/aspectron/nw-sys
node-webkit nwjs rust wasm wasm-bindgen
Last synced: 7 months ago
JSON representation
Rust bindings for NWJS (NodeWebkit) APIs
- Host: GitHub
- URL: https://github.com/aspectron/nw-sys
- Owner: aspectron
- Created: 2022-11-30T03:33:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T19:44:36.000Z (about 2 years ago)
- Last Synced: 2025-05-30T00:09:05.712Z (8 months ago)
- Topics: node-webkit, nwjs, rust, wasm, wasm-bindgen
- Language: Rust
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `nw-sys`
## `wasm_bindgen` bindings for NWJS API
[
](https://github.com/aspectron/nw-sys)
[
](https://crates.io/crates/nw-sys)
[
](https://docs.rs/nw-sys)

NWJS JS API documentation is available here: https://nwjs.readthedocs.io/en/latest/
## Bindings
`nw-sys` provides Rust bindings for all NWJS subsystems with the following modules offering:
- `app` application control and information access
- `clipboard` system clipboard access
- `menu` creation of application and tray menus
- `screen` access to system Display information and layout
- `shell` external application execution, file and URL opening
- `shortcut` creation of application keyboard shortcuts
- `tray` creation and installation of system tray menus
- `window` creation and control of application windows
A higher-level Rust API for NWJS, based on top of this crate, is also available via the [`workflow-nw`](https://crates.io/crates/workflow-nw) crate that is a part of the [`workflow-rs`](https://github.com/workflow-rs/workflow-rs) application development framework.
## Examples
You can find an example application using these APIs at https://github.com/aspectron/nw-sys-example
## Other Crates
Following crates can be used in conjunciton with `nw-sys`:
- [`wasm_bindgen`](https://crates.io/crates/wasm_bindgen)
- [`js-sys`](https://crates.io/crates/js-sys)
- [`web-sys`](https://crates.io/crates/web-sys)
- [`node-sys`](https://crates.io/crates/node-sys)
- [`workflow-nw`](https://crates.io/crates/workflow-nw)
- [`workflow-panic-hook`](https://crates.io/crates/workflow-panic-hook)
- [`workflow-rs`](https://github.com/workflow-rs/workflow-rs)