7 releases

0.1.6 Oct 26, 2023
0.1.5 Jul 26, 2023
0.1.2 Feb 11, 2023
0.1.0 Jan 26, 2023
0.0.0 Dec 10, 2022

#127 in WebAssembly

Download history 82/week @ 2024-03-14 148/week @ 2024-03-21 206/week @ 2024-03-28 157/week @ 2024-04-04 121/week @ 2024-04-11 218/week @ 2024-04-18 235/week @ 2024-04-25 357/week @ 2024-05-02 197/week @ 2024-05-09 201/week @ 2024-05-16 155/week @ 2024-05-23 192/week @ 2024-05-30 154/week @ 2024-06-06 413/week @ 2024-06-13 346/week @ 2024-06-20 425/week @ 2024-06-27

1,355 downloads per month
Used in 8 crates (5 directly)

Apache-2.0 OR MIT

160KB
1.5K SLoC

nw-sys

wasm_bindgen bindings for NWJS API

github crates.io docs.rs 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 crate that is a part of the 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:

Dependencies

~6.5–9MB
~171K SLoC