Commit graph

30 commits

Author SHA1 Message Date
LongYinan
16f0d49284
chore: increase wasi memory limits (#2035) 2024-04-13 18:35:08 +08:00
LongYinan
95af8065c0
Release independent packages
napi-build@2.1.2
2024-02-19 19:10:16 +08:00
LongYinan
ad35076d07
fix(cli,build): build params (#1960) 2024-02-19 18:09:34 +08:00
LongYinan
f7376f1e97
Release independent packages
napi-build@2.1.1
2024-02-18 22:05:20 +08:00
LongYinan
08b1f689bf
feat(cli,build): support setjmp.h (#1958) 2024-02-18 21:45:19 +08:00
LongYinan
688ee04247
Release independent packages
- napi-build@2.1.0
- napi-derive@2.14.0
- napi@2.14.0
- napi-sys@2.3.0
2023-11-07 14:18:36 +08:00
LongYinan
36581336c6
feat(napi): pass the rest of async tests (#1792)
Pass the rest of async tests, including await the JavaScript Promise in the Rust side, and the worker_threads tests.
2023-11-07 01:46:43 +08:00
LongYinan
b03b3ee4dc
fix(build): rerun if cli version changed (#1789)
- Close https://github.com/napi-rs/napi-rs/issues/1719
2023-11-06 14:03:34 +08:00
LongYinan
13d0ce075e
feat: integrate with emnapi (#1669)
* Integrate with emnapi

* resolve conflict

* ignore wasm

* generate wasi file

* Add wasi test to workflow

* Fix wasi template

* emnapi new initialize api

* Finish test

* Purne tsconfig

* Generate wasi worker

* Fix electron test

* Finalize check

* Noop adjust_external_memory

* Apply cr suggestions
2023-11-02 12:57:11 +08:00
LongYinan
9db4581d7f
feat: bump msrv to 1.65 (#1755) 2023-10-17 20:18:29 +08:00
LongYinan
07d03c9435
chore: MSRV 1.63.0 2023-08-10 10:44:55 +08:00
forehal
a781a4f27e feat(cli): brand new cli tool with both cli and programmatical usage (#1492)
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
2023-04-06 11:04:53 +08:00
LongYinan
2e7f3affe1
Release independent packages
napi@2.5.0
napi-derive@2.5.0
napi-build@2.0.1
2022-06-10 15:37:27 +08:00
LongYinan
18dc3df5ba
style: clippy 2022-06-10 15:20:06 +08:00
forehalo
f90d63ccde
fix(build): broken android target build caused by ndk upgrade 2022-06-10 15:19:56 +08:00
messense
5cbeac59dc
Add rust-version field to Cargo.tomls (#1190) 2022-05-20 16:23:10 +08:00
LongYinan
788a962137
fix(napi): drop all thread_local! usage 2022-05-10 18:39:36 +08:00
LongYinan
daf5f1f9e9
Release independent packages
- napi@2.4.0
- napi-derive@2.4.0
- napi-sys@2.2.0
- napi-build@2.0.0
2022-05-07 15:51:22 +08:00
LongYinan
1bf072ad7d
refactor(napi): use libloading on Windows 2022-05-06 22:27:09 +08:00
LongYinan
fa0fe87448
Release independent packages
napi-build@1.2.1
2021-12-22 00:27:59 +08:00
forehalo
09c7df3c5c
fix: keep .d.ts and .js untouched if native doesn't change 2021-12-18 14:12:46 +08:00
LongYinan
e452c00fb4
feat: edition 2021 2021-12-08 13:18:47 +08:00
LongYinan
24c5d6950e
Release independent packages
napi@2.0.0-beta.0
napi-sys@2.1.0
napi-derive@2.0.0-beta.0
napi-build@1.2.0
napi-derive-backend@1.0.12
2021-12-02 14:35:57 +08:00
LongYinan
221eae1c26
feat(build): update windows lib file to 17.2.0 2021-12-02 14:25:22 +08:00
LongYinan
aaf1bd14ea
Release independent packages
napi@2.0.0-alpha.7
napi-derive@2.0.0-alpha.8
napi-build@1.1.2
napi-derive-backend@1.0.9
2021-11-25 23:25:29 +08:00
Sam Holmes
b9f43455f0
fix(napi-build): cargo:rerun-if commands (#871) 2021-11-22 22:35:05 +08:00
LongYinan
50e08b6033
Release independent packages
napi@2.0.0-alpha.1
napi-build@1.1.1
napi-derive@2.0.0-alpha.1
napi-derive-backend@1.0.2
napi-sys@1.1.2

Generated by cargo-workspaces
2021-10-31 23:37:05 +08:00
LongYinan
157b9c6186
chore: make all crates indepent 2021-10-31 23:35:39 +08:00
LongYinan
29277308d7
fix(napi-derive-backend): generate the same code if source was not changed 2021-10-31 13:13:21 +08:00
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