Commit graph

110 commits

Author SHA1 Message Date
LongYinan
814414bc81
fix(napi): utf16 value should not contains 0 terminate 2021-08-13 18:39:02 +08:00
LongYinan
d864c71228
chore: rust 1.54.0 clippy suggestions 2021-07-30 12:54:59 +08:00
LongYinan
660dbddb67
ci: add musl-cross toolchains into alpine.Dockerfile 2021-07-22 00:01:50 +08:00
LongYinan
517fc35d90
test(napi): access env variable in native 2021-06-09 21:58:05 +08:00
LongYinan
f4ae035c84
test(napi): add tests for bytes in struct 2021-06-03 23:57:52 +08:00
LongYinan
7651fd1f6f
perf(napi): reducer tokio future execution overhead 2021-06-02 23:17:53 +08:00
LongYinan
72960906dc
ci: add memory leak detect job 2021-05-29 23:24:25 +08:00
LongYinan
bb9a819188
feat(napi): impl more types AsRef and AsMut for TypedArray 2021-05-25 00:07:16 +08:00
LongYinan
daef1956b2
feat(napi): add napi8 features 2021-04-21 23:13:34 +08:00
LongYinan
d4331e05df
refactor(napi): split NapiRaw trait from NapiValue 2021-04-01 18:57:49 +08:00
LongYinan
f0b8c5da07
fix(napi): do not call release tsfn in Drop when ref count is 0 2021-03-31 21:31:37 +08:00
LongYinan
50f207f744
fix(napi): InvalidArg error when create_external with size hint 2021-03-11 19:02:42 +08:00
LongYinan
071dcff9eb
feat(napi): add back clone trait to ThreadsafeFunction 2021-02-26 18:38:48 +08:00
LongYinan
c39b364319
chore(napi): upgrade tokio 2021-02-07 00:08:38 +08:00
LongYinan
2775b47e33
chore(napi): upgrade tokio to 1.1 2021-02-01 18:10:05 +08:00
LongYinan
f46aa1f67a
fix(napi): throw JavaScript error in tsfn rather than rust thread panic 2021-01-25 12:11:12 +08:00
LongYinan
cbd4e4d1fc
chore(napi): remove TryFrom<JsNumber> for usize 2020-12-28 21:40:06 +08:00
LongYinan
ad2a84984f
feat(napi): uncheck version of Object methods 2020-12-27 23:46:07 +08:00
LongYinan
501313789d
feat(napi): AsMut and DerefMut for JsBuffer 2020-12-25 00:21:37 +08:00
LongYinan
2a6c452ce7
refactor(napi): create_buffer_with_borrowed_data now accept not-null finalize_callback 2020-12-24 15:45:59 +08:00
LongYinan
f59d3ee5fc
feat(napi): tokio 1.0 2020-12-24 13:55:21 +08:00
LongYinan
26a2c01cd6
feat(napi): From Serde JSON Error for Error 2020-12-24 12:20:23 +08:00
LongYinan
530359421c
refactor(napi): create_buffer_with_borrowed_data now accepted raw ptr 2020-12-24 11:53:23 +08:00
LongYinan
1c4265496e
feat(napi): allow provide size_hint in create_external 2020-12-22 11:57:26 +08:00
LongYinan
0239b9c012
Merge pull request #370 from napi-rs/task-reject
feat(napi): provide reject method in Task trait
2020-12-18 11:58:24 +08:00
LongYinan
9d38689426
feat(napi): provide reject method in Task trait
Do some cleanup logic if needed
2020-12-18 11:32:15 +08:00
LongYinan
bb5e1f4286
feat(napi): implement create_reference/get_reference_value 2020-12-18 00:07:24 +08:00
LongYinan
c4734e23a1
feat(napi): set and get instance data 2020-12-17 00:27:33 +08:00
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