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
72960906dc
ci: add memory leak detect job
2021-05-29 23:24:25 +08:00
LongYinan
66ff37d9ff
fix(napi): JsString* leak in from_js_value
2021-05-28 10:34:42 +08:00
Julius de Bruijn
3db5c56fbf
Allow dropping of string&buffer values when converting
2021-05-27 20:47:22 +02:00
LongYinan
bb9a819188
feat(napi): impl more types AsRef and AsMut for TypedArray
2021-05-25 00:07:16 +08:00
LongYinan
457cc6f1ee
refactor: change more generic constraint from NapiValue => NapiRaw
2021-05-17 17:29:38 +08:00
LongYinan
b01dae728b
bench: add array suite
2021-05-17 11:42:57 +08:00
LongYinan
6a43ed64f4
Merge pull request #551 from napi-rs/rust-1.52
...
chore: apply 1.52 clippy rules
2021-05-07 18:38:17 +08:00
LongYinan
1553bf7bc4
chore: apply 1.52 clippy rules
2021-05-07 18:19:52 +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
925786c955
style: fix clippy error
2021-03-31 11:53:51 +08:00
LongYinan
f45f1aeb53
fix(napi): finalizer maybe_ref pointer value
2021-03-19 13:53:28 +08:00
Daniel Henry-Mantilla
4aba159958
Add a way to convert _stateful_ (Rust) closures into JsFunction
s.
2021-03-18 21:09:55 +01:00
LongYinan
e622d9693a
feat(napi): unwrap &'static value from Ref object
2021-02-25 22:17:21 +08:00
LongYinan
c1215379f2
feat(napi): impl Clone + Copy for Primitive types
2021-01-07 11:34:49 +08:00
LongYinan
e24738a4d8
fix(napi): remove into_*_ref from JsString
...
Close https://github.com/napi-rs/napi-rs/issues/411
2021-01-07 11:14:01 +08:00
LongYinan
911a0c139d
feat(napi): Env::create_arraybuffer_with_borrowed_data
2021-01-05 23:27:01 +08:00
LongYinan
50ce9c6569
feat(napi): implement value getter for JsNumber
2020-12-29 16:36:38 +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
b1c8192d2a
refactor(napi): JsUnknow::cast now will not move ownership
2020-12-25 12:02:24 +08:00
LongYinan
501313789d
feat(napi): AsMut and DerefMut for JsBuffer
2020-12-25 00:21:37 +08:00
LongYinan
bb5e1f4286
feat(napi): implement create_reference/get_reference_value
2020-12-18 00:07:24 +08:00
LongYinan
c621986ce5
feat(napi): implement add_finalizer for JsObject
2020-12-16 23:23:04 +08:00
LongYinan
932ebcbee5
feat(napi): create_buffer_with_manually_drop_data
2020-12-10 14:26:19 +08:00
LongYinan
5989a79f0d
feat(napi): unsafe cast JsUnknown to the other JsValue
2020-12-10 14:26:18 +08:00
LongYinan
1c0634f6f2
fix(napi): move sys call out from debug_assert! macro
2020-12-09 21:57:48 +08:00
LongYinan
78245b0e8f
chore(napi): remove useless type cast in JsBuffer
2020-12-09 19:24:44 +08:00
LongYinan
ba9744e89c
refactor(napi): reduce useless type cast
2020-12-02 18:39:20 +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
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
e4f005c735
fix(napi): memory leak with CString
2020-11-15 23:22:29 +08:00
LongYinan
68017ce246
fix(napi): memory leak in create_named_property
2020-11-14 11:45:10 +08:00
LongYinan
1669b3a8f1
fix(napi): windows-i686 release build problem
2020-11-14 00:22:10 +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
47f5011a8f
feat(napi): support build on i686-pc-windows-msvc
2020-11-04 23:08:54 +08:00
LongYinan
f9ec712d57
Merge pull request #283 from napi-rs/simplify-module-register
...
chore(napi): simplify module register, support node@10+
2020-11-04 17:41:19 +08:00
LongYinan
7c996ebaa0
chore(napi): remove useless From trait
2020-11-04 16:36:01 +08:00
LongYinan
078d1ed2d0
chore(napi): simplify module register, support node@10+
2020-11-04 15:54:57 +08:00
adumbidiot
d9214e7805
Convert bindgen rustified_enum
to newtype_enum
2020-11-02 19:23:41 -08:00
LongYinan
8c9295f6f0
fix(napi): return self in Property#with_property_attributes
2020-10-31 22:22:23 +08:00
LongYinan
f1f9402a44
feat(napi): export PropertyAttributes
2020-10-31 22:19:57 +08:00
LongYinan
6ba674e4bc
feat(napi): new JsFunction instance
2020-10-27 14:19:40 +08:00
LongYinan
13216f523a
feat(napi): napi_get_all_property_names
2020-10-12 22:38:52 +08:00