Commit graph

25 commits

Author SHA1 Message Date
LongYinan
d4331e05df
refactor(napi): split NapiRaw trait from NapiValue 2021-04-01 18:57:49 +08:00
Daniel Henry-Mantilla
4aba159958 Add a way to convert _stateful_ (Rust) closures into JsFunctions. 2021-03-18 21:09:55 +01: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
c370b8374b
fix(napi): CString memory leak 2020-11-20 10:53:33 +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
2d47969d08
fix(napi): CString issues 2020-11-19 23:41:29 +08:00
LongYinan
47f5011a8f feat(napi): support build on i686-pc-windows-msvc 2020-11-04 23:08:54 +08:00
LongYinan
6ba674e4bc
feat(napi): new JsFunction instance 2020-10-27 14:19:40 +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
c0277542a2
refactor(napi): from_raw_unchecked and this_unchecked 2020-09-26 17:49:30 +08:00
LongYinan
df5b082141
perf(napi): remove typecheck in CallContext for better performance 2020-09-07 17:26:28 +08:00
LongYinan
76d1258592
feat(napi): implement all object functions 2020-09-03 00:02:41 +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
9118e9e62d
feat(napi): implment tokio_rt feature 2020-07-14 22:58:05 +08:00
LongYinan
0216c55e54
refactor(napi): redesign the JavaScript values API 2020-06-28 23:29:04 +08:00
LongYinan
628452c70a
perf(napi-derive): remove useless alloc in function CallContext 2020-06-21 17:50:38 +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
4c0341961c
refactor(napi-rs): impl TryFrom instead of TryInto 2020-04-26 18:46:56 +08:00
LongYinan
0b2561225f
feat(derive): js_function derive 2020-04-26 16:36:44 +08:00