LongYinan
46bd338093
chore(bench): migrate to vitest ( #2637 )
2025-05-16 22:27:23 +08:00
LongYinan
9de545e7a2
refactor!(napi): add lifetime to Object ( #2619 )
2025-05-11 19:51:29 +08:00
LongYinan
65fe29c854
refactor!(napi): add lifetime to JsString ( #2614 )
2025-05-08 13:20:09 +08:00
LongYinan
813c51e16a
refactor!(napi): move depracated types behind compat-mode feature flag ( #2612 )
2025-05-07 22:34:26 +08:00
LongYinan
23e9de2caa
refactor!(napi): add lifetime to Unkonwn ( #2611 )
...
Remove JsUnknown
2025-05-07 22:32:24 +08:00
LongYinan
a456fcdbc7
refactor!(napi): add lifetime for JsNumber ( #2609 )
2025-05-07 20:11:33 +08:00
LongYinan
d96bd288de
fix!(napi): upgrade to ctor 0.3.6 ( #2472 )
2025-02-20 12:22:29 +08:00
LongYinan
0ce8fab19c
chore(napi): merge thread cleanup ( #2469 )
2025-02-16 16:55:16 +08:00
LongYinan
98cb7671d3
feat(napi): impl ReadableStream and AsyncGenerator ( #2418 )
...
* feat(napi): impl ReadableStream and AsyncGenerator
* clippy fix
* Into<Vec<u8>> trait
* Skip node18 stream test due to Node.js bug
* Cleanup
* Also skip wasi test
* Merge test
* Skip wasi
* Useless expect-error
2025-01-03 17:09:42 +08:00
LongYinan
bf8f568788
refactor!(napi): Ref should not hold the value ptr ( #2243 )
...
It's unsafe
2024-09-12 23:25:09 +08:00
LongYinan
bc9e931a4e
feat(napi): provide PromiseRaw for non-await scenario ( #2168 )
2024-07-06 19:09:16 +08:00
LongYinan
ea623903d8
chore: clippy fix ( #2144 )
2024-06-18 13:20:43 +08:00
LongYinan
0550c56fcf
fix(napi): External should impl FromNapiRef rather than FromNapiValue ( #2013 )
...
- Close https://github.com/napi-rs/napi-rs/issues/1994
2024-03-25 15:11:11 +08:00
LongYinan
4719caa643
feat(napi): support Return generic of ThreadsafeFunction ( #1997 )
...
* feat(napi): support to use tuple with either (#1993 )
`Either` uses `ValidateNapiValue` + `TypeName` to validate and report error on value not being matched. So there's no way to remove these super traits from it. So I implemented these types to `Tuple` types.
* feat(napi): support `Return` generic of ThreadsafeFunction
* depracate JsFunction
* CalleeHandled tsfn should handle Result in callback
* Pass env to call_with_return_value callback
* Fix compile
* clippy fix
* Fix electron test
* Function args
---------
Co-authored-by: Hana <andywangsy@gmail.com>
2024-03-20 21:37:08 +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
e9de5681be
fix(napi): also apply electron external data fallback to lowlevel APIs ( #1458 )
...
* fix(napi): also apply electron external data fallback to lowlevel APIs
* chore: allow uninlined_format_args in tests
2023-01-28 21:31:57 +08:00
LongYinan
62b16d6a89
chore: upgrade npm dependencies ( #1443 )
2023-01-19 00:32:52 +08:00
LongYinan
d55e4f6f1f
style: format toml files
2022-02-11 10:46:17 +08:00
LongYinan
1f09a0cf77
chore: make example and bench package private
2022-02-09 20:42:00 +08:00
LongYinan
1531489e18
chore: upgrade to yarn3
2022-01-24 17:25:40 +08:00
LongYinan
e452c00fb4
feat: edition 2021
2021-12-08 13:18:47 +08:00
LongYinan
49a0139f81
style: clippy fix
2021-12-03 16:49:25 +08:00
LongYinan
413a55545f
fix(napi-derive-backend): wrong restrict on Result return type
2021-11-10 13:15:54 +08:00
LongYinan
e74fe2fb94
feat(napi): implement AsyncTask with AbortSignal support
2021-11-06 13:51:54 +08:00
LongYinan
af86f6f7a4
chore: make examples private
2021-10-31 23:33:51 +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
LongYinan
d864c71228
chore: rust 1.54.0 clippy suggestions
2021-07-30 12:54:59 +08:00
LongYinan
291def2d70
perf(napi): make FuturePromise static dispatch
2021-06-21 23:36:54 +08:00
LongYinan
7651fd1f6f
perf(napi): reducer tokio future execution overhead
2021-06-02 23:17:53 +08:00
LongYinan
b835c7ef3f
feat(build): remove ureq to support windows arm64
2021-05-31 23:31:17 +08:00
LongYinan
72960906dc
ci: add memory leak detect job
2021-05-29 23:24:25 +08:00
LongYinan
b01dae728b
bench: add array suite
2021-05-17 11:42:57 +08:00
LongYinan
91609a2343
chore: add bench suite for object getter setter
2020-12-29 18:03:10 +08:00
LongYinan
ff5c103020
chore: add thread safe function bench suite
2020-12-28 14:02:28 +08:00
LongYinan
0446e463c8
fix(napi): memory issues in create_external_buffer
2020-12-21 16:10:30 +08:00
LongYinan
7767b83222
refactor(cli): init yarn workspace, move napi-rs package => @napi-rs/cli
2020-12-02 22:34:39 +08:00
LongYinan
1a3621b727
feat(napi): major upgrades for napi@1
...
1. inline everything
2. change `check_status` and `type_of` to macro
3. provide #[module_exports] macro
4. remove debug and repr[transparent] for ffi struct
2020-11-26 11:31:49 +08:00
LongYinan
fc0ec0b378
refactor(napi-sys): remove bindgen
2020-11-10 17:52:59 +08:00
LongYinan
f03ada59df
ci: setup benchmark action
2020-10-14 01:02:00 +08:00
LongYinan
276fc45603
style: format toml files
2020-10-11 21:36:14 +08:00
LongYinan
9c921ffaa3
refactor(napi): scope and Ref
2020-09-30 15:54:54 +08:00
LongYinan
fb4d07edd4
feat: add benchmark crate and frameworks
2020-09-30 15:31:17 +08:00