Commit graph

82 commits

Author SHA1 Message Date
LongYinan
5989a79f0d
feat(napi): unsafe cast JsUnknown to the other JsValue 2020-12-10 14:26:18 +08:00
LongYinan
28d380344b
chore: ts project configuration fix for test_module 2020-12-10 14:07:19 +08:00
LongYinan
d7e727d045
feat: build and test armv7 2020-12-08 12:00:58 +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
5ffb14729d
refactor(napi): js error 2020-12-02 14:56:19 +08:00
LongYinan
c184ab3926
ci: add cargo clippy 2020-12-01 14:58:00 +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
e337a58714
chore(napi): remove unsafe from CallContext::this_unchecked 2020-11-20 09:09:57 +08:00
LongYinan
781ff8dc14
refactor(napi): make NapiTrait to be unsafe
close https://github.com/napi-rs/napi-rs/issues/299
2020-11-20 00:07:20 +08:00
LongYinan
eb5f4931bd
feat(napi): impl Clone and Drop for ThreadSafeFunction, return Status from ThreadSafeFunction::call 2020-11-11 16:51:11 +08:00
LongYinan
f3bb57abfb
fix(napi): hanlde unknown enum values from FFI 2020-11-11 14:34:30 +08:00
LongYinan
fc0ec0b378
refactor(napi-sys): remove bindgen 2020-11-10 17:52:59 +08:00
LongYinan
6ba674e4bc
feat(napi): new JsFunction instance 2020-10-27 14:19:40 +08:00
LongYinan
4dcf50ef06
test(napi): add specs for array 2020-10-21 15:45:45 +08:00
LongYinan
64d66a2261
chore: tokio@0.3 2020-10-16 20:58:56 +08:00
LongYinan
9783284e5d
Merge pull request #238 from napi-rs/reduce-aarch64-running-time
ci: reduce aarch64 running time by cross compile in host machine
2020-10-15 16:41:01 +08:00
LongYinan
3c3a5b6fdb
ci: reduce aarch64 running time by cross compile in host machine 2020-10-15 16:14:11 +08:00
LongYinan
1bd29e2761
test: add env#wrap tests 2020-10-15 11:10:17 +08:00
LongYinan
809ecfec49
feat(napi): implement create_buffer_copy 2020-10-11 21:54:23 +08:00
LongYinan
276fc45603
style: format toml files 2020-10-11 21:36:14 +08:00
LongYinan
0deb9f7755
feat(napi): implement TypedArray related APIs 2020-10-10 18:54:05 +08:00
LongYinan
e0d75d1453
feat(napi): implement napi_is_promise 2020-10-10 18:17:32 +08:00
LongYinan
6c95d86d2f
feat(napi): implement date related API 2020-10-10 15:02:11 +08:00
LongYinan
c5f2b6699d
refactor(napi): thread safe function redesign 2020-10-04 17:16:35 +08:00
LongYinan
45411a59ea
feat(napi): implement env cleanup hook 2020-10-04 16:02:04 +08:00
LongYinan
e713d647f5
test(napi): add JsTimeout specs 2020-10-03 15:03:10 +08:00
LongYinan
43c01796eb
feat(napi): implement JsTimeout 2020-10-03 14:57:56 +08:00
LongYinan
3eecf1fc5f
fix(napi): arraybuffer implement
close https://github.com/napi-rs/napi-rs/issues/68
2020-09-30 18:23:31 +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
LongYinan
aadca83d2e
refactor(napi): implement async task cancel 2020-09-26 18:12:52 +08:00
LongYinan
c0277542a2
refactor(napi): from_raw_unchecked and this_unchecked 2020-09-26 17:49:30 +08:00
LongYinan
e68778428e
feat: powerful cli 2020-09-04 17:11:23 +08:00
LongYinan
371cc5eab0
feat(napi): string latin1 support 2020-09-03 19:11:30 +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
LongYinan
a022fe01d9
chore(napi): cleanup codes 2020-09-02 10:59:11 +08:00
LongYinan
ea3fff25ae
feat(napi): serde-json feature 2020-09-01 23:48:02 +08:00
LongYinan
c229b26fa7
fix(build): add -Wl rustc-cdylib-link-arg on macOS 2020-08-26 17:59:00 +08:00
LongYinan
feced6ed52
chore: upgrade deps and fix type-check error 2020-08-24 18:22:48 +08:00
LongYinan
494e870226
build: fix ts file build 2020-08-24 17:06:26 +08:00
LongYinan
100ad98407
refactor(test_module): migrate tests to TypeScript 2020-08-24 16:55:54 +08:00
LongYinan
98210cd771
feat(napi): implement more napi 2020-08-24 16:16:41 +08:00
Ouyang Yadong
1329409ca4 fixup! refactor(napi): use get_uv_event_loop instead of uv_default_loop 2020-08-18 14:11:19 +08:00
Ouyang Yadong
00454eb577 refactor(napi): use get_uv_event_loop instead of uv_default_loop
Using the uv_loop_s from napi_env is safer as it's possible that
there are multiple Workers, and therefore multiple uv_loop_s.
2020-08-18 13:55:35 +08:00
Ouyang Yadong
14dd8b83e6
feat(napi): add BigInt related apis 2020-08-12 22:40:52 +08:00
LongYinan
64df7205e9
refactor(napi): change data to &'static [u8] in JsBuffer 2020-08-10 13:52:05 +08:00
LongYinan
b69a183681
fix(napi): wrong string length 2020-08-03 14:34:58 +08:00
LongYinan
5a0b9919ea
test(napi): add class specs 2020-08-02 23:31:22 +08:00
LongYinan
2073f23a91
feat(cli): start new cli 2020-07-29 23:06:37 +08:00