Commit graph

5 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
814414bc81
fix(napi): utf16 value should not contains 0 terminate 2021-08-13 18:39:02 +08:00
LongYinan
5ffb14729d
refactor(napi): js error 2020-12-02 14:56:19 +08:00
LongYinan
1c3d9b4e9a
test(napi): add more object functions tests 2020-09-03 15:34:27 +08:00
LongYinan
76d1258592
feat(napi): implement all object functions 2020-09-03 00:02:41 +08:00