An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# `nw-sys`

## `wasm_bindgen` bindings for NWJS API

[github](https://github.com/aspectron/nw-sys)
[crates.io](https://crates.io/crates/nw-sys)
[docs.rs](https://docs.rs/nw-sys)
license

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)