Commit graph

16 commits

Author SHA1 Message Date
forehalo
2467b7139b
Introduce #[napi] procedural macro to automation development boilerplate (#696)
* napi procedural macro for basic rust/JavaScript types
* introduce the `compat-mode` for `napi` and `napi-derive` crates for backward compatible
* remove #[inline] and let compiler to decide the inline behavior
* cli now can produce the `.d.ts` file for native binding
* many tests and example for the new procedural macro

Co-authored-by: LongYinan <lynweklm@gmail.com>
2021-09-23 01:29:09 +08:00
LongYinan
b835c7ef3f
feat(build): remove ureq to support windows arm64 2021-05-31 23:31:17 +08:00
Chris Nixon
74e6cf2916
Don't try to use ureq on musl targets 2021-04-01 23:32:01 +01:00
Chris Nixon
03e6048dc9
Check compile target at runtime in build 2021-03-30 22:56:03 +01:00
LongYinan
fc0ec0b378
refactor(napi-sys): remove bindgen 2020-11-10 17:52:59 +08:00
adumbidiot
e25ef3a3d8 Seperate build setup script into seperate files to fix formatting 2020-10-30 20:11:10 -07:00
adumbidiot
7739cf5dc3 Respect CARGO_CFG_TARGET_ARCH env var 2020-10-30 20:00:16 -07:00
adumbidiot
5364458366 Avoid running entire napi_build::setup twice 2020-10-30 18:29:08 -07:00
adumbidiot
b062c0fd6e Respect NPM_CONFIG_DISTURL env var 2020-10-30 18:17:06 -07:00
adumbidiot
7862726e84 Use ureq to download node.lib 2020-10-30 17:57:28 -07:00
LongYinan
d1d6a5b963
refactor(build): use node to download .lib file on Windows 2020-10-10 13:04:42 +08:00
Flux Xu
595bf69a43 refactor: build on Windows without admin privilege. 2020-09-19 12:28:02 -04:00
LongYinan
c229b26fa7
fix(build): add -Wl rustc-cdylib-link-arg on macOS 2020-08-26 17:59:00 +08:00
LongYinan
f4a331cfe2
feat(napi): provide execute function to run Future on libuv 2020-07-07 11:57:32 +08:00
LongYinan
0d5f03f845
feat: move napi version features setup to build package 2020-07-02 00:40:36 +08:00
LongYinan
e0e85502af
feat: upgrade to std-future 2020-02-18 21:09:17 +08:00