napi-rs/examples/napi/src
LongYinan 13d0ce075e
feat: integrate with emnapi (#1669)
* Integrate with emnapi

* resolve conflict

* ignore wasm

* generate wasi file

* Add wasi test to workflow

* Fix wasi template

* emnapi new initialize api

* Finish test

* Purne tsconfig

* Generate wasi worker

* Fix electron test

* Finalize check

* Noop adjust_external_memory

* Apply cr suggestions
2023-11-02 12:57:11 +08:00
..
array.rs feat(napi): support rust array to js array 2022-08-12 17:53:36 +08:00
async.rs feat: integrate with emnapi (#1669) 2023-11-02 12:57:11 +08:00
bigint.rs fix(napi): missing From implementation for Bigint (#1440) 2023-01-17 00:05:19 +08:00
callback.rs chore(example): add callback return promise (#1590) 2023-05-16 11:05:37 +08:00
class.rs feat(cli): brand new cli tool with both cli and programmatical usage (#1492) 2023-04-06 11:04:53 +08:00
class_factory.rs
constructor.rs fix(backend): attribute of a struct marked as #[napi(constructor)] contain Rust keywords, causing to throw is not a valid identifier when generating getters and setters 2023-08-17 20:48:54 +08:00
date.rs feat(napi): support chrono::NaiveDateTime (#1601) 2023-05-26 18:28:34 +08:00
either.rs fix(napi): promise resolve error (#1664) 2023-07-24 00:36:24 +08:00
enum.rs feat(napi-derive-backend, napi-derive): add support for string enums (#1551) 2023-04-03 14:10:58 +08:00
error.rs feat(napi): keep stack traces in a deferred context (#1637) 2023-07-15 12:07:14 +08:00
external.rs
fn_strict.rs fix(napi): validate fn for Option<T> 2022-07-06 14:01:32 +08:00
fn_ts_override.rs feat(napi-derive): add ts_arg_type attribute to override individual args on functions (#1192) 2022-05-22 13:43:11 +08:00
generator.rs fix(napi): missing iterator implementation from class factory 2022-05-10 21:50:20 +08:00
js_mod.rs style: clippy fix 2022-03-05 23:05:04 +08:00
lib.rs fix(backend): attribute of a struct marked as #[napi(constructor)] contain Rust keywords, causing to throw is not a valid identifier when generating getters and setters 2023-08-17 20:48:54 +08:00
map.rs test(napi): add tests for hashmap <-> object 2021-12-19 23:17:54 +08:00
nullable.rs fix(napi-derive-backend): Null and Undefined return type 2021-12-18 13:42:55 +08:00
number.rs
object.rs feat(napi-derive): allow partial implement From/To Napivalue for Object (#1448) 2023-01-24 14:51:16 +08:00
promise.rs
reference.rs feat(napi): add support for weak references 2022-05-10 21:09:45 +08:00
serde.rs fix(napi): big numbers losing precision on serde_json::Value (#1538) 2023-03-23 13:34:34 +08:00
shared.rs fix(cli,napi-derive): re-export types from shared crate (#1531) 2023-03-21 18:12:52 +08:00
string.rs Fix String roundtrip with interior nul bytes 2022-02-04 16:52:44 +08:00
symbol.rs feat(napi,sys): implement Symbol.for (#1721) 2023-09-13 15:45:14 -07:00
task.rs feat(napi): experimental iterator support 2022-05-06 18:03:04 +08:00
threadsafe_function.rs fix(napi): re-throw error in ThreadsafeFunction callback if we could 2023-04-10 17:02:13 +08:00
typed_array.rs style: clippy fix 2022-12-16 20:19:39 +08:00