native-windows-gui icon indicating copy to clipboard operation
native-windows-gui copied to clipboard

Website documentation recommending `extern crate` instead of `use`

Open ofgrenudo opened this issue 2 years ago • 0 comments

In https://gabdube.github.io/native-windows-gui/native-windows-docs/getting_started.html the following produced an error for me

[Installing NWG](https://gabdube.github.io/native-windows-gui/native-windows-docs/getting_started.html#installing-nwg)
NWG should work with any recent version of rust (64 bits or 32 bits). Any channel can be used (stable, beta, nightly). NWG was mainly tested using the MSVC ABI builds. on both stable and nightly
To use NWG in your project add it to cargo.toml:

[dependencies]
native-windows-gui = "1.0.12"
native-windows-derive = "1.0.3"

And then, in main.rs or lib.rs :

extern crate native_windows_gui as nwg;
extern crate native_windows_derive as nwd;

replacing extern crate with use did the trick. Is the documentation on the website hosted somewhere here so I could possibly make a pr?

ofgrenudo avatar Jun 23 '23 16:06 ofgrenudo