Commit graph

104 commits

Author SHA1 Message Date
LongYinan
b7a3103f0c
feat(napi-derive): catch_unwind attribute (#1280) 2022-08-19 23:36:36 +08:00
LongYinan
037d960607
ci: fix self testing for Android platforms (#1248) 2022-07-27 15:25:28 +08:00
LongYinan
227de9efe0
fix(cli): android CI template 2022-06-30 19:43:37 +08:00
forehalo
f90d63ccde
fix(build): broken android target build caused by ndk upgrade 2022-06-10 15:19:56 +08:00
Jose Acevedo
796ba363f5 test(napi-derive): add trybuild negative macro tests 2022-05-23 11:55:19 +08:00
LongYinan
65b4b34f40
test(napi): add electron tests 2022-05-10 18:39:37 +08:00
LongYinan
652aa3cc57
feat(cli): new command upgrade
- Add .gitignore file
- Upgrade actions in CI.yml
- Using the new cross compile image for x86_64-linux-gnu and aarch64-linux-gnu
2022-05-03 17:24:48 +08:00
LongYinan
44b4cc34e0
fix(napi-derive): invalid TypeScript return type 2022-04-27 18:23:45 +08:00
LongYinan
2e96297e1a
chore: drop node 17, add node 18 2022-04-27 13:17:39 +08:00
LongYinan
454d3b8cab
chore: build node 18 linux arm image 2022-04-22 23:16:06 +08:00
LongYinan
9c55588889 ci: more effective cache config 2022-04-15 21:40:20 +08:00
LongYinan
5dd96c1b89 ci: check all napi features 2022-04-15 21:40:20 +08:00
LongYinan
9b0103cf22
fix(napi): remove CString::from_vec_with_nul_unchecked 2022-04-13 01:29:23 +08:00
LongYinan
8700da1776
fix(cli): should not throw if cargoName is provided but no package.name 2022-04-01 17:07:53 +08:00
LongYinan
183c2d8896
ci: upgrade configuration 2022-04-01 14:33:34 +08:00
LongYinan
c32f7f5dbc
ci: add binary build check 2022-04-01 14:04:29 +08:00
LongYinan
30310d0a81
ci: install dependencies with x64 Node.js while testing windows i686 2022-03-13 18:36:16 +08:00
LongYinan
5005aaa5af
chore: upgrade dependencies 2022-03-13 18:30:11 +08:00
LongYinan
1cac0ac804 feat(cli): upgrade ci.yml templates 2022-03-07 11:05:52 +08:00
LongYinan
9f3fbaa8e0
fix(napi): race issues with Node.js worker_thread (#1081)
Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
2022-03-05 14:14:32 +08:00
LongYinan
5f359dfaae
fix(cli): compatible for Node.js 10x 2022-02-09 12:41:56 +08:00
LongYinan
1531489e18
chore: upgrade to yarn3 2022-01-24 17:25:40 +08:00
LongYinan
98628980dc
ci: remove auto-merge job 2022-01-23 23:04:32 +08:00
messense
97a1b1504a chore: run asan with recompiled and instrumented Rust std library
https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/sanitizer.html#instrumentation-of-external-dependencies-and-std
2022-01-22 12:47:00 +08:00
messense
6a83c21e0c chore: run unit tests with asan 2022-01-21 22:51:52 +08:00
LongYinan
f337ed5638
build: add musl zig cross build image 2022-01-18 13:41:59 +08:00
LongYinan
f55ea6a193
ci: add debian-zig docker image 2022-01-06 14:55:06 +08:00
LongYinan
0db94ccd66
feat(cli): support macOS with --zig flag 2022-01-06 12:53:45 +08:00
LongYinan
7040a2930f
chore: remove node10 test 2022-01-04 11:14:55 +08:00
messense
ca3790bdf1
Add support for cross compilation with Zig (#983)
feat(cli): add support for cross compilation with Zig
2021-12-31 11:20:55 +08:00
LongYinan
59a7e37901
ci: build node:17 for aarch64 and armv7 Linux 2021-12-18 16:00:16 +08:00
LongYinan
e452c00fb4
feat: edition 2021 2021-12-08 13:18:47 +08:00
LongYinan
96190f1c80
ci: setup-node@v2 2021-12-02 23:23:51 +08:00
LongYinan
9b71059745
ci: add armv7 android build 2021-12-02 13:33:57 +08:00
LongYinan
9c765dcddd
build: add android armv7 2021-12-02 13:11:43 +08:00
LongYinan
d9c53d728b
feat(napi): support TypedArray input and output 2021-12-02 11:26:52 +08:00
LongYinan
4c3fe26478
feat(cli): refactor cli build 2021-11-19 18:22:40 +08:00
LongYinan
3386bb9867
feat(napi): support JsGlobal in Env 2021-11-15 22:41:01 +08:00
LongYinan
68f767b96d ci: fix arm build 2021-10-27 15:38:24 +08:00
forehalo
c5cebec812 test full features once for napi v2 2021-10-27 14:42:57 +08:00
LongYinan
d164a79514 ci: build and push arm docker images 2021-10-20 11:22:17 +08:00
LongYinan
6d3b1096a4
build: fix alpine docker image 2021-09-28 13:11:28 +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
e99aba0a57
ci: upgrade to actions/cache@v2 2021-07-30 13:20:40 +08:00
LongYinan
660dbddb67
ci: add musl-cross toolchains into alpine.Dockerfile 2021-07-22 00:01:50 +08:00
LongYinan
27af46110c
ci: no need to build arm64 arch for debian.Dockerfile 2021-07-21 11:19:56 +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
1986cf0c9a
ci: pin rust toolchain on 1.51.0 on windows-i686 target 2021-05-17 10:46:29 +08:00
LongYinan
daef1956b2
feat(napi): add napi8 features 2021-04-21 23:13:34 +08:00