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
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
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
LongYinan
788a962137
fix(napi): drop all thread_local! usage
2022-05-10 18:39:36 +08:00
LongYinan
1bf072ad7d
refactor(napi): use libloading on Windows
2022-05-06 22:27:09 +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
221eae1c26
feat(build): update windows lib file to 17.2.0
2021-12-02 14:25:22 +08:00
Sam Holmes
b9f43455f0
fix(napi-build): cargo:rerun-if commands ( #871 )
2021-11-22 22:35:05 +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