Commit graph

49 commits

Author SHA1 Message Date
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
messense
efa9ba5892 Throw exception when Rust code panics 2020-07-19 16:54:10 +08:00
LongYinan
3508956d16
feat(napi): implement either type 2020-07-18 02:11:49 +08:00
LongYinan
244db37c3b
refactor: decouple sys module of new napi-rs into a crate 2020-07-15 00:59:41 +08:00
LongYinan
62482ab2e6
doc: add some documents 2020-07-14 23:05:08 +08:00
LongYinan
9118e9e62d
feat(napi): implment tokio_rt feature 2020-07-14 22:58:05 +08:00
LongYinan
04238c38ab
style(napi): typo adjust 2020-07-07 11:57:33 +08:00
LongYinan
f4a331cfe2
feat(napi): provide execute function to run Future on libuv 2020-07-07 11:57:32 +08:00
Ouyang Yadong
472d4f2ab5 chore: add into_unknown; refactor tsfn api; add tests for js function 2020-07-04 00:05:31 +08:00
LongYinan
0d5f03f845
feat: move napi version features setup to build package 2020-07-02 00:40:36 +08:00
LongYinan
0216c55e54
refactor(napi): redesign the JavaScript values API 2020-06-28 23:29:04 +08:00
Ouyang Yadong
f126a0581f feat(napi): impl threadsafe function api 2020-06-28 22:47:08 +08:00
LongYinan
17cb852a6e
refactor(napi): self in Task::compute could be mutable 2020-06-19 16:19:06 +08:00
LongYinan
79401d693e
feat(napi): implement create_external and get_value_external 2020-06-19 16:16:28 +08:00
LongYinan
422682c8b8
test: setup test framework in test_module project 2020-06-17 20:53:41 +08:00
Ouyang Yadong
4baff91a58 feat(napi): impl is_date 2020-06-15 21:15:59 +08:00
LongYinan
28257b45c1
feat(napi): support musl linux
drop future executor due to mutithreads bug.
2020-06-11 16:20:37 +08:00
LongYinan
ec235d284d
refactor(spawn): napi_async_worker implementation 2020-05-15 14:03:02 +08:00
LongYinan
869ed76c0b
feat(napi): impl spawn for tasks need to be run in the other thread 2020-05-11 16:32:57 +08:00
LongYinan
91cca630a9
perf: borrow Env in CallContext 2020-05-09 15:14:44 +08:00
LongYinan
1a280aa30f
refactor(napi): async and lifetime span 2020-05-09 14:13:25 +08:00
LongYinan
53f9157342
fix(test_module): avoid oom in test_scripts 2020-04-30 18:31:47 +08:00
LongYinan
67ac49a7d7
chore: rename napi-derive to napi-rs-derive 2020-04-26 20:21:45 +08:00
LongYinan
0b2561225f
feat(derive): js_function derive 2020-04-26 16:36:44 +08:00
LongYinan
fa8e1be7b9
refactor(napi-rs): make api calls more safety 2020-04-19 18:52:32 +08:00
LongYinan
5574930e18
feat(napi): implement serde feature 2020-04-03 00:09:44 +08:00
LongYinan
3b48e464cb
fix(scripts): find target folder near by node_modules folder 2020-03-16 11:26:40 +08:00
LongYinan
ef99000955
fix(executor): use Arc to ensure thread safe 2020-03-12 22:40:21 +08:00
LongYinan
48c9a8956c
build: enhance the build pipeline 2020-02-19 17:45:57 +08:00
LongYinan
e0e85502af
feat: upgrade to std-future 2020-02-18 21:09:17 +08:00
LongYinan
3ab287a946
chore: use npm version napi-rs as dependency 2018-07-23 10:11:56 +08:00
LongYinan
cbf5b42d61
build: use cargo to build napi-rs instead of napi.js 2018-06-26 16:31:42 +08:00
LongYinan
c05ab719b3
init 2018-04-28 16:26:38 +08:00