├── .dockerignore ├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── publish.js ├── renovate.json └── workflows │ ├── asan.yml │ ├── cleanup-cache.yml │ ├── docker.yaml │ ├── memory-test.yml │ ├── release-crates.yml │ ├── test-release.yaml │ └── zig.yaml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .npmignore ├── .oxlintignore ├── .prettierignore ├── .yarn ├── patches │ ├── buffer-npm-6.0.3-cd90dfedfe.patch │ └── node-inspect-extracted-npm-3.0.0-f661b6c334.patch └── releases │ └── yarn-4.12.0.cjs ├── .yarnrc.yml ├── CLAUDE.md ├── CODE_OF_CONDUCT.md ├── Cargo.toml ├── LICENSE ├── README.md ├── alpine-zig.Dockerfile ├── alpine.Dockerfile ├── bench ├── Cargo.toml ├── async.bench.ts ├── buffer.bench.ts ├── build.rs ├── create-array.bench.ts ├── get-array-from-js.bench.ts ├── get-set-property.bench.ts ├── noop.bench.ts ├── package.json ├── plus.bench.ts ├── query.bench.ts ├── src │ ├── async_compute.rs │ ├── buffer.rs │ ├── create_array.rs │ ├── get_set_property.rs │ ├── get_value_from_js.rs │ ├── lib.rs │ ├── noop.rs │ ├── plus.rs │ └── query.rs ├── tsconfig.json └── vite.config.ts ├── cli ├── .npmignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── cli.mjs ├── codegen │ ├── commands.ts │ └── index.ts ├── docs │ ├── artifacts.md │ ├── build.md │ ├── create-npm-dirs.md │ ├── new.md │ ├── pre-publish.md │ ├── rename.md │ ├── universalize.md │ └── version.md ├── e2e │ └── cli.spec.ts ├── package.json ├── src │ ├── api │ │ ├── __tests__ │ │ │ ├── build.spec.ts │ │ │ ├── create-npm-dirs.spec.ts │ │ │ └── new.spec.ts │ │ ├── artifacts.ts │ │ ├── build.ts │ │ ├── create-npm-dirs.ts │ │ ├── new.ts │ │ ├── pre-publish.ts │ │ ├── rename.ts │ │ ├── templates │ │ │ ├── index.ts │ │ │ ├── js-binding.ts │ │ │ ├── load-wasi-template.ts │ │ │ └── wasi-worker-template.ts │ │ ├── universalize.ts │ │ └── version.ts │ ├── cli.ts │ ├── commands │ │ ├── artifacts.ts │ │ ├── build.ts │ │ ├── create-npm-dirs.ts │ │ ├── help.ts │ │ ├── new.ts │ │ ├── pre-publish.ts │ │ ├── rename.ts │ │ ├── universalize.ts │ │ └── version.ts │ ├── def │ │ ├── artifacts.ts │ │ ├── build.ts │ │ ├── create-npm-dirs.ts │ │ ├── new.ts │ │ ├── pre-publish.ts │ │ ├── rename.ts │ │ ├── universalize.ts │ │ └── version.ts │ ├── index.ts │ └── utils │ │ ├── __tests__ │ │ ├── __fixtures__ │ │ │ └── napi_type_def │ │ ├── __snapshots__ │ │ │ ├── config.spec.ts.md │ │ │ ├── config.spec.ts.snap │ │ │ ├── target.spec.ts.md │ │ │ ├── target.spec.ts.snap │ │ │ ├── typegen.spec.ts.md │ │ │ ├── typegen.spec.ts.snap │ │ │ ├── version.spec.ts.md │ │ │ └── version.spec.ts.snap │ │ ├── config.spec.ts │ │ ├── target.spec.ts │ │ ├── typegen.spec.ts │ │ └── version.spec.ts │ │ ├── cargo.ts │ │ ├── config.ts │ │ ├── index.ts │ │ ├── log.ts │ │ ├── metadata.ts │ │ ├── misc.ts │ │ ├── read-config.ts │ │ ├── target.ts │ │ ├── typegen.ts │ │ └── version.ts ├── tsconfig.json └── tsdown.config.ts ├── crates ├── backend │ ├── CHANGELOG.md │ ├── Cargo.toml │ ├── README.md │ └── src │ │ ├── ast.rs │ │ ├── codegen.rs │ │ ├── codegen │ │ ├── const.rs │ │ ├── enum.rs │ │ ├── fn.rs │ │ ├── struct.rs │ │ └── type.rs │ │ ├── error.rs │ │ ├── lib.rs │ │ ├── typegen.rs │ │ ├── typegen │ │ ├── const.rs │ │ ├── enum.rs │ │ ├── fn.rs │ │ ├── struct.rs │ │ └── type.rs │ │ └── util.rs ├── build │ ├── CHANGELOG.md │ ├── Cargo.toml │ ├── README.md │ └── src │ │ ├── android.rs │ │ ├── lib.rs │ │ ├── wasi.rs │ │ └── windows.rs ├── macro │ ├── CHANGELOG.md │ ├── Cargo.toml │ ├── README.md │ └── src │ │ ├── compat_macro.rs │ │ ├── expand.rs │ │ ├── expand │ │ ├── napi.rs │ │ ├── noop.rs │ │ ├── typedef.rs │ │ └── typedef │ │ │ ├── noop.rs │ │ │ └── type_def.rs │ │ ├── lib.rs │ │ └── parser │ │ ├── attrs.rs │ │ └── mod.rs ├── napi │ ├── CHANGELOG.md │ ├── Cargo.toml │ ├── README.md │ ├── build.rs │ └── src │ │ ├── async_cleanup_hook.rs │ │ ├── async_work.rs │ │ ├── bindgen_runtime │ │ ├── async_iterator.rs │ │ ├── callback_info.rs │ │ ├── env.rs │ │ ├── error.rs │ │ ├── iterator.rs │ │ ├── js_values.rs │ │ ├── js_values │ │ │ ├── array.rs │ │ │ ├── arraybuffer.rs │ │ │ ├── bigint.rs │ │ │ ├── boolean.rs │ │ │ ├── buffer.rs │ │ │ ├── class.rs │ │ │ ├── date.rs │ │ │ ├── either.rs │ │ │ ├── external.rs │ │ │ ├── function.rs │ │ │ ├── map.rs │ │ │ ├── nil.rs │ │ │ ├── number.rs │ │ │ ├── object.rs │ │ │ ├── promise.rs │ │ │ ├── promise_raw.rs │ │ │ ├── scope.rs │ │ │ ├── serde.rs │ │ │ ├── set.rs │ │ │ ├── stream.rs │ │ │ ├── stream │ │ │ │ ├── read.rs │ │ │ │ └── write.rs │ │ │ ├── string.rs │ │ │ ├── symbol.rs │ │ │ ├── task.rs │ │ │ └── value_ref.rs │ │ ├── mod.rs │ │ └── module_register.rs │ │ ├── call_context.rs │ │ ├── cleanup_env.rs │ │ ├── env.rs │ │ ├── error.rs │ │ ├── js_values │ │ ├── arraybuffer.rs │ │ ├── bigint.rs │ │ ├── boolean.rs │ │ ├── buffer.rs │ │ ├── date.rs │ │ ├── de.rs │ │ ├── deferred.rs │ │ ├── either.rs │ │ ├── external.rs │ │ ├── function.rs │ │ ├── global.rs │ │ ├── mod.rs │ │ ├── null.rs │ │ ├── number.rs │ │ ├── object.rs │ │ ├── object_property.rs │ │ ├── ser.rs │ │ ├── string │ │ │ ├── latin1.rs │ │ │ ├── mod.rs │ │ │ ├── utf16.rs │ │ │ └── utf8.rs │ │ ├── symbol.rs │ │ ├── tagged_object.rs │ │ ├── undefined.rs │ │ ├── unknown.rs │ │ ├── value.rs │ │ └── value_ref.rs │ │ ├── lib.rs │ │ ├── sendable_resolver.rs │ │ ├── status.rs │ │ ├── task.rs │ │ ├── threadsafe_function.rs │ │ ├── tokio_runtime.rs │ │ ├── value_type.rs │ │ └── version.rs └── sys │ ├── CHANGELOG.md │ ├── Cargo.toml │ ├── LICENSE │ ├── README.md │ └── src │ ├── functions.rs │ ├── lib.rs │ └── types.rs ├── debian-aarch64.Dockerfile ├── debian-zig.Dockerfile ├── debian.Dockerfile ├── examples ├── binary │ ├── .gitignore │ ├── Cargo.toml │ ├── package.json │ ├── src │ │ └── main.rs │ └── tsconfig.json ├── napi-cargo-test │ ├── CHANGELOG.md │ ├── Cargo.toml │ └── src │ │ └── lib.rs ├── napi-compat-mode │ ├── Cargo.toml │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ ├── object.spec.ts.md │ │ │ ├── object.spec.ts.snap │ │ │ ├── string.spec.ts.md │ │ │ └── string.spec.ts.snap │ │ ├── array.spec.ts │ │ ├── arraybuffer.spec.ts │ │ ├── buffer.spec.ts │ │ ├── class.spec.ts │ │ ├── cleanup-env.spec.ts │ │ ├── create-external.spec.ts │ │ ├── either.spec.ts │ │ ├── env.spec.ts │ │ ├── function.spec.ts │ │ ├── get-napi-version.spec.ts │ │ ├── global.spec.ts │ │ ├── js-value.spec.ts │ │ ├── napi-version.ts │ │ ├── napi4 │ │ │ ├── deferred.spec.ts │ │ │ ├── example.txt │ │ │ ├── threadsafe_function.spec.ts │ │ │ ├── tokio_readfile.spec.ts │ │ │ ├── tokio_rt.spec.ts │ │ │ ├── tsfn-dua-instance.js │ │ │ ├── tsfn-throw.js │ │ │ └── tsfn_error.spec.ts │ │ ├── napi5 │ │ │ └── date.spec.ts │ │ ├── napi6 │ │ │ ├── bigint.spec.ts │ │ │ └── instance-data.spec.ts │ │ ├── napi7 │ │ │ └── arraybuffer.spec.ts │ │ ├── napi8 │ │ │ ├── async-cleanup.spec.ts │ │ │ ├── object.spec.ts │ │ │ ├── sub-process-removable.js │ │ │ └── sub-process.js │ │ ├── object.spec.ts │ │ ├── serde │ │ │ ├── __snapshots__ │ │ │ │ ├── ser.spec.ts.md │ │ │ │ └── ser.spec.ts.snap │ │ │ ├── de.spec.ts │ │ │ ├── ser.spec.ts │ │ │ ├── ser.spec.ts.md │ │ │ ├── ser.spec.ts.snap │ │ │ └── serde-json.spec.ts │ │ ├── string.spec.ts │ │ ├── symbol.spec.ts │ │ └── throw.spec.ts │ ├── browser.js │ ├── build.rs │ ├── index.wasi-browser.js │ ├── index.wasi.cjs │ ├── package.json │ ├── src │ │ ├── array.rs │ │ ├── arraybuffer.rs │ │ ├── buffer.rs │ │ ├── class.rs │ │ ├── cleanup_env.rs │ │ ├── either.rs │ │ ├── env.rs │ │ ├── error.rs │ │ ├── external.rs │ │ ├── function.rs │ │ ├── global.rs │ │ ├── lib.rs │ │ ├── napi4 │ │ │ ├── deferred.rs │ │ │ ├── mod.rs │ │ │ ├── tsfn.rs │ │ │ └── tsfn_dua_instance.rs │ │ ├── napi5 │ │ │ ├── date.rs │ │ │ └── mod.rs │ │ ├── napi6 │ │ │ ├── bigint.rs │ │ │ ├── instance.rs │ │ │ └── mod.rs │ │ ├── napi7 │ │ │ ├── buffer.rs │ │ │ └── mod.rs │ │ ├── napi8 │ │ │ ├── async_cleanup.rs │ │ │ ├── mod.rs │ │ │ └── object.rs │ │ ├── napi_version.rs │ │ ├── object.rs │ │ ├── serde.rs │ │ ├── string.rs │ │ ├── symbol.rs │ │ └── tokio_rt │ │ │ ├── mod.rs │ │ │ └── read_file.rs │ ├── tsconfig.json │ ├── wasi-worker-browser.mjs │ └── wasi-worker.mjs ├── napi-shared │ ├── Cargo.toml │ ├── build.rs │ └── src │ │ └── lib.rs └── napi │ ├── .gitignore │ ├── Cargo.toml │ ├── __tests__ │ ├── __snapshots__ │ │ ├── typegen.spec.ts.md │ │ ├── typegen.spec.ts.snap │ │ ├── values.spec.ts.md │ │ └── values.spec.ts.snap │ ├── async-exit.js │ ├── async-exit.spec.ts │ ├── bun-test.js │ ├── error-msg.spec.ts │ ├── generator.spec.ts │ ├── object-attr.spec.ts │ ├── property-names.spec.ts │ ├── strict.spec.ts │ ├── test.framework.js │ ├── tsfn-error.cjs │ ├── unload.spec.js │ ├── values.spec.ts │ ├── worker-thread.spec.ts │ └── worker.js │ ├── browser.js │ ├── browser │ └── values.spec.ts │ ├── build.rs │ ├── dts-header.d.ts │ ├── electron-renderer │ ├── index.html │ └── index.js │ ├── electron.cjs │ ├── example.wasi-browser.js │ ├── example.wasi.cjs │ ├── index.cjs │ ├── index.d.cts │ ├── index.html │ ├── package.json │ ├── src │ ├── array.rs │ ├── async.rs │ ├── bigint.rs │ ├── callback.rs │ ├── class.rs │ ├── class_factory.rs │ ├── constructor.rs │ ├── date.rs │ ├── either.rs │ ├── enum.rs │ ├── env.rs │ ├── error.rs │ ├── external.rs │ ├── fetch.rs │ ├── fn_return_if_invalid.rs │ ├── fn_strict.rs │ ├── fn_ts_override.rs │ ├── function.rs │ ├── generator.rs │ ├── js_mod.rs │ ├── lib.rs │ ├── lifetime.rs │ ├── map.rs │ ├── nullable.rs │ ├── number.rs │ ├── object.rs │ ├── promise.rs │ ├── reference.rs │ ├── scope.rs │ ├── serde.rs │ ├── set.rs │ ├── shared.rs │ ├── stream.rs │ ├── string.rs │ ├── symbol.rs │ ├── task.rs │ ├── threadsafe_function.rs │ ├── transparent.rs │ ├── type.rs │ ├── typed_array.rs │ └── wasm.rs │ ├── tests │ ├── README.md │ ├── build_error_tests │ │ ├── assign_js_value_to_class.rs │ │ ├── assign_js_value_to_class.stderr │ │ ├── fn_outside_impl_factory.rs │ │ ├── fn_outside_impl_factory.stderr │ │ ├── mod.rs │ │ ├── ts_arg_type_1.rs │ │ ├── ts_arg_type_1.stderr │ │ ├── ts_arg_type_2.rs │ │ ├── ts_arg_type_2.stderr │ │ ├── ts_arg_type_3.rs │ │ ├── ts_arg_type_3.stderr │ │ ├── ts_arg_type_4.rs │ │ └── ts_arg_type_4.stderr │ └── macro_tests.rs │ ├── tsconfig.json │ ├── vite-entry.js │ ├── vite.config.js │ ├── wasi-worker-browser.mjs │ └── wasi-worker.mjs ├── images ├── nextjs.svg └── prisma.svg ├── lerna.json ├── memory-testing ├── Cargo.toml ├── buffer.mjs ├── build.rs ├── index.mjs ├── package.json ├── reference.mjs ├── returns-future.mjs ├── serde.mjs ├── src │ └── lib.rs ├── test-util.mjs ├── tokio-future.mjs ├── tsconfig.json ├── tsfn.mjs └── util.mjs ├── oxlint.json ├── package.json ├── rustfmt.toml ├── triples ├── CHANGELOG.md ├── LICENSE ├── README.md ├── generate-triple-list.ts ├── index.cjs ├── index.d.ts ├── index.js ├── package.json ├── target-list └── tsconfig.json ├── tsconfig.json ├── wasm-runtime ├── CHANGELOG.md ├── assert.cjs ├── fs-proxy.js ├── fs-proxy.test.js ├── fs.js ├── package.json ├── rollup.config.js ├── runtime.cjs ├── runtime.js └── util.js └── yarn.lock /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/publish.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/publish.js -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/renovate.json -------------------------------------------------------------------------------- /.github/workflows/asan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/asan.yml -------------------------------------------------------------------------------- /.github/workflows/cleanup-cache.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/cleanup-cache.yml -------------------------------------------------------------------------------- /.github/workflows/docker.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/docker.yaml -------------------------------------------------------------------------------- /.github/workflows/memory-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/memory-test.yml -------------------------------------------------------------------------------- /.github/workflows/release-crates.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/release-crates.yml -------------------------------------------------------------------------------- /.github/workflows/test-release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/test-release.yaml -------------------------------------------------------------------------------- /.github/workflows/zig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.github/workflows/zig.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | yarn lint-staged && cargo fmt --all 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.npmignore -------------------------------------------------------------------------------- /.oxlintignore: -------------------------------------------------------------------------------- 1 | .yarn 2 | dist 3 | target 4 | bench/**/*.ts 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.prettierignore -------------------------------------------------------------------------------- /.yarn/patches/buffer-npm-6.0.3-cd90dfedfe.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.yarn/patches/buffer-npm-6.0.3-cd90dfedfe.patch -------------------------------------------------------------------------------- /.yarn/patches/node-inspect-extracted-npm-3.0.0-f661b6c334.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.yarn/patches/node-inspect-extracted-npm-3.0.0-f661b6c334.patch -------------------------------------------------------------------------------- /.yarn/releases/yarn-4.12.0.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.yarn/releases/yarn-4.12.0.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | crates/napi/README.md -------------------------------------------------------------------------------- /alpine-zig.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/alpine-zig.Dockerfile -------------------------------------------------------------------------------- /alpine.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/alpine.Dockerfile -------------------------------------------------------------------------------- /bench/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/Cargo.toml -------------------------------------------------------------------------------- /bench/async.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/async.bench.ts -------------------------------------------------------------------------------- /bench/buffer.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/buffer.bench.ts -------------------------------------------------------------------------------- /bench/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/build.rs -------------------------------------------------------------------------------- /bench/create-array.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/create-array.bench.ts -------------------------------------------------------------------------------- /bench/get-array-from-js.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/get-array-from-js.bench.ts -------------------------------------------------------------------------------- /bench/get-set-property.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/get-set-property.bench.ts -------------------------------------------------------------------------------- /bench/noop.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/noop.bench.ts -------------------------------------------------------------------------------- /bench/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/package.json -------------------------------------------------------------------------------- /bench/plus.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/plus.bench.ts -------------------------------------------------------------------------------- /bench/query.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/query.bench.ts -------------------------------------------------------------------------------- /bench/src/async_compute.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/async_compute.rs -------------------------------------------------------------------------------- /bench/src/buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/buffer.rs -------------------------------------------------------------------------------- /bench/src/create_array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/create_array.rs -------------------------------------------------------------------------------- /bench/src/get_set_property.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/get_set_property.rs -------------------------------------------------------------------------------- /bench/src/get_value_from_js.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/get_value_from_js.rs -------------------------------------------------------------------------------- /bench/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/lib.rs -------------------------------------------------------------------------------- /bench/src/noop.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/noop.rs -------------------------------------------------------------------------------- /bench/src/plus.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/plus.rs -------------------------------------------------------------------------------- /bench/src/query.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/src/query.rs -------------------------------------------------------------------------------- /bench/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/tsconfig.json -------------------------------------------------------------------------------- /bench/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/bench/vite.config.ts -------------------------------------------------------------------------------- /cli/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/.npmignore -------------------------------------------------------------------------------- /cli/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/CHANGELOG.md -------------------------------------------------------------------------------- /cli/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/LICENSE -------------------------------------------------------------------------------- /cli/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/README.md -------------------------------------------------------------------------------- /cli/cli.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/cli.mjs -------------------------------------------------------------------------------- /cli/codegen/commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/codegen/commands.ts -------------------------------------------------------------------------------- /cli/codegen/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/codegen/index.ts -------------------------------------------------------------------------------- /cli/docs/artifacts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/artifacts.md -------------------------------------------------------------------------------- /cli/docs/build.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/build.md -------------------------------------------------------------------------------- /cli/docs/create-npm-dirs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/create-npm-dirs.md -------------------------------------------------------------------------------- /cli/docs/new.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/new.md -------------------------------------------------------------------------------- /cli/docs/pre-publish.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/pre-publish.md -------------------------------------------------------------------------------- /cli/docs/rename.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/rename.md -------------------------------------------------------------------------------- /cli/docs/universalize.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/universalize.md -------------------------------------------------------------------------------- /cli/docs/version.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/docs/version.md -------------------------------------------------------------------------------- /cli/e2e/cli.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/e2e/cli.spec.ts -------------------------------------------------------------------------------- /cli/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/package.json -------------------------------------------------------------------------------- /cli/src/api/__tests__/build.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/__tests__/build.spec.ts -------------------------------------------------------------------------------- /cli/src/api/__tests__/create-npm-dirs.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/__tests__/create-npm-dirs.spec.ts -------------------------------------------------------------------------------- /cli/src/api/__tests__/new.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/__tests__/new.spec.ts -------------------------------------------------------------------------------- /cli/src/api/artifacts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/artifacts.ts -------------------------------------------------------------------------------- /cli/src/api/build.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/build.ts -------------------------------------------------------------------------------- /cli/src/api/create-npm-dirs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/create-npm-dirs.ts -------------------------------------------------------------------------------- /cli/src/api/new.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/new.ts -------------------------------------------------------------------------------- /cli/src/api/pre-publish.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/pre-publish.ts -------------------------------------------------------------------------------- /cli/src/api/rename.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/rename.ts -------------------------------------------------------------------------------- /cli/src/api/templates/index.ts: -------------------------------------------------------------------------------- 1 | export * from './js-binding.js' 2 | -------------------------------------------------------------------------------- /cli/src/api/templates/js-binding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/templates/js-binding.ts -------------------------------------------------------------------------------- /cli/src/api/templates/load-wasi-template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/templates/load-wasi-template.ts -------------------------------------------------------------------------------- /cli/src/api/templates/wasi-worker-template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/templates/wasi-worker-template.ts -------------------------------------------------------------------------------- /cli/src/api/universalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/universalize.ts -------------------------------------------------------------------------------- /cli/src/api/version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/api/version.ts -------------------------------------------------------------------------------- /cli/src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/cli.ts -------------------------------------------------------------------------------- /cli/src/commands/artifacts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/artifacts.ts -------------------------------------------------------------------------------- /cli/src/commands/build.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/build.ts -------------------------------------------------------------------------------- /cli/src/commands/create-npm-dirs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/create-npm-dirs.ts -------------------------------------------------------------------------------- /cli/src/commands/help.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/help.ts -------------------------------------------------------------------------------- /cli/src/commands/new.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/new.ts -------------------------------------------------------------------------------- /cli/src/commands/pre-publish.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/pre-publish.ts -------------------------------------------------------------------------------- /cli/src/commands/rename.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/rename.ts -------------------------------------------------------------------------------- /cli/src/commands/universalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/universalize.ts -------------------------------------------------------------------------------- /cli/src/commands/version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/commands/version.ts -------------------------------------------------------------------------------- /cli/src/def/artifacts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/artifacts.ts -------------------------------------------------------------------------------- /cli/src/def/build.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/build.ts -------------------------------------------------------------------------------- /cli/src/def/create-npm-dirs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/create-npm-dirs.ts -------------------------------------------------------------------------------- /cli/src/def/new.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/new.ts -------------------------------------------------------------------------------- /cli/src/def/pre-publish.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/pre-publish.ts -------------------------------------------------------------------------------- /cli/src/def/rename.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/rename.ts -------------------------------------------------------------------------------- /cli/src/def/universalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/universalize.ts -------------------------------------------------------------------------------- /cli/src/def/version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/def/version.ts -------------------------------------------------------------------------------- /cli/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/index.ts -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__fixtures__/napi_type_def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__fixtures__/napi_type_def -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/config.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/config.spec.ts.md -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/config.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/config.spec.ts.snap -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/target.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/target.spec.ts.md -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/target.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/target.spec.ts.snap -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/typegen.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/typegen.spec.ts.md -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/typegen.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/typegen.spec.ts.snap -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/version.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/version.spec.ts.md -------------------------------------------------------------------------------- /cli/src/utils/__tests__/__snapshots__/version.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/__snapshots__/version.spec.ts.snap -------------------------------------------------------------------------------- /cli/src/utils/__tests__/config.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/config.spec.ts -------------------------------------------------------------------------------- /cli/src/utils/__tests__/target.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/target.spec.ts -------------------------------------------------------------------------------- /cli/src/utils/__tests__/typegen.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/typegen.spec.ts -------------------------------------------------------------------------------- /cli/src/utils/__tests__/version.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/__tests__/version.spec.ts -------------------------------------------------------------------------------- /cli/src/utils/cargo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/cargo.ts -------------------------------------------------------------------------------- /cli/src/utils/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/config.ts -------------------------------------------------------------------------------- /cli/src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/index.ts -------------------------------------------------------------------------------- /cli/src/utils/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/log.ts -------------------------------------------------------------------------------- /cli/src/utils/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/metadata.ts -------------------------------------------------------------------------------- /cli/src/utils/misc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/misc.ts -------------------------------------------------------------------------------- /cli/src/utils/read-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/read-config.ts -------------------------------------------------------------------------------- /cli/src/utils/target.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/target.ts -------------------------------------------------------------------------------- /cli/src/utils/typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/typegen.ts -------------------------------------------------------------------------------- /cli/src/utils/version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/src/utils/version.ts -------------------------------------------------------------------------------- /cli/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/tsconfig.json -------------------------------------------------------------------------------- /cli/tsdown.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/cli/tsdown.config.ts -------------------------------------------------------------------------------- /crates/backend/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/CHANGELOG.md -------------------------------------------------------------------------------- /crates/backend/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/Cargo.toml -------------------------------------------------------------------------------- /crates/backend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/README.md -------------------------------------------------------------------------------- /crates/backend/src/ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/ast.rs -------------------------------------------------------------------------------- /crates/backend/src/codegen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/codegen.rs -------------------------------------------------------------------------------- /crates/backend/src/codegen/const.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/codegen/const.rs -------------------------------------------------------------------------------- /crates/backend/src/codegen/enum.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/codegen/enum.rs -------------------------------------------------------------------------------- /crates/backend/src/codegen/fn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/codegen/fn.rs -------------------------------------------------------------------------------- /crates/backend/src/codegen/struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/codegen/struct.rs -------------------------------------------------------------------------------- /crates/backend/src/codegen/type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/codegen/type.rs -------------------------------------------------------------------------------- /crates/backend/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/error.rs -------------------------------------------------------------------------------- /crates/backend/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/lib.rs -------------------------------------------------------------------------------- /crates/backend/src/typegen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/typegen.rs -------------------------------------------------------------------------------- /crates/backend/src/typegen/const.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/typegen/const.rs -------------------------------------------------------------------------------- /crates/backend/src/typegen/enum.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/typegen/enum.rs -------------------------------------------------------------------------------- /crates/backend/src/typegen/fn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/typegen/fn.rs -------------------------------------------------------------------------------- /crates/backend/src/typegen/struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/typegen/struct.rs -------------------------------------------------------------------------------- /crates/backend/src/typegen/type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/typegen/type.rs -------------------------------------------------------------------------------- /crates/backend/src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/backend/src/util.rs -------------------------------------------------------------------------------- /crates/build/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/CHANGELOG.md -------------------------------------------------------------------------------- /crates/build/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/Cargo.toml -------------------------------------------------------------------------------- /crates/build/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/README.md -------------------------------------------------------------------------------- /crates/build/src/android.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/src/android.rs -------------------------------------------------------------------------------- /crates/build/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/src/lib.rs -------------------------------------------------------------------------------- /crates/build/src/wasi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/src/wasi.rs -------------------------------------------------------------------------------- /crates/build/src/windows.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/build/src/windows.rs -------------------------------------------------------------------------------- /crates/macro/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/CHANGELOG.md -------------------------------------------------------------------------------- /crates/macro/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/Cargo.toml -------------------------------------------------------------------------------- /crates/macro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/README.md -------------------------------------------------------------------------------- /crates/macro/src/compat_macro.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/compat_macro.rs -------------------------------------------------------------------------------- /crates/macro/src/expand.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/expand.rs -------------------------------------------------------------------------------- /crates/macro/src/expand/napi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/expand/napi.rs -------------------------------------------------------------------------------- /crates/macro/src/expand/noop.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/expand/noop.rs -------------------------------------------------------------------------------- /crates/macro/src/expand/typedef.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/expand/typedef.rs -------------------------------------------------------------------------------- /crates/macro/src/expand/typedef/noop.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/expand/typedef/noop.rs -------------------------------------------------------------------------------- /crates/macro/src/expand/typedef/type_def.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/expand/typedef/type_def.rs -------------------------------------------------------------------------------- /crates/macro/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/lib.rs -------------------------------------------------------------------------------- /crates/macro/src/parser/attrs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/parser/attrs.rs -------------------------------------------------------------------------------- /crates/macro/src/parser/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/macro/src/parser/mod.rs -------------------------------------------------------------------------------- /crates/napi/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/CHANGELOG.md -------------------------------------------------------------------------------- /crates/napi/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/Cargo.toml -------------------------------------------------------------------------------- /crates/napi/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/README.md -------------------------------------------------------------------------------- /crates/napi/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/build.rs -------------------------------------------------------------------------------- /crates/napi/src/async_cleanup_hook.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/async_cleanup_hook.rs -------------------------------------------------------------------------------- /crates/napi/src/async_work.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/async_work.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/async_iterator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/async_iterator.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/callback_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/callback_info.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/env.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/error.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/iterator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/iterator.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/array.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/arraybuffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/arraybuffer.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/bigint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/bigint.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/boolean.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/boolean.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/buffer.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/class.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/date.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/date.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/either.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/either.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/external.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/external.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/function.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/function.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/map.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/nil.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/nil.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/number.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/number.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/object.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/promise.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/promise.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/promise_raw.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/promise_raw.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/scope.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/scope.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/serde.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/serde.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/set.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/set.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/stream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/stream.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/stream/read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/stream/read.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/stream/write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/stream/write.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/string.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/symbol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/symbol.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/task.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/task.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/js_values/value_ref.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/js_values/value_ref.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/mod.rs -------------------------------------------------------------------------------- /crates/napi/src/bindgen_runtime/module_register.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/bindgen_runtime/module_register.rs -------------------------------------------------------------------------------- /crates/napi/src/call_context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/call_context.rs -------------------------------------------------------------------------------- /crates/napi/src/cleanup_env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/cleanup_env.rs -------------------------------------------------------------------------------- /crates/napi/src/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/env.rs -------------------------------------------------------------------------------- /crates/napi/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/error.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/arraybuffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/arraybuffer.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/bigint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/bigint.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/boolean.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/boolean.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/buffer.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/date.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/date.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/de.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/de.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/deferred.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/deferred.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/either.rs: -------------------------------------------------------------------------------- 1 | pub use crate::bindgen_runtime::Either; 2 | -------------------------------------------------------------------------------- /crates/napi/src/js_values/external.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/external.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/function.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/function.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/global.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/global.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/mod.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/null.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/null.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/number.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/number.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/object.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/object_property.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/object_property.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/ser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/ser.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/string/latin1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/string/latin1.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/string/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/string/mod.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/string/utf16.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/string/utf16.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/string/utf8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/string/utf8.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/symbol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/symbol.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/tagged_object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/tagged_object.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/undefined.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/undefined.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/unknown.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/unknown.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/value.rs -------------------------------------------------------------------------------- /crates/napi/src/js_values/value_ref.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/js_values/value_ref.rs -------------------------------------------------------------------------------- /crates/napi/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/lib.rs -------------------------------------------------------------------------------- /crates/napi/src/sendable_resolver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/sendable_resolver.rs -------------------------------------------------------------------------------- /crates/napi/src/status.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/status.rs -------------------------------------------------------------------------------- /crates/napi/src/task.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/task.rs -------------------------------------------------------------------------------- /crates/napi/src/threadsafe_function.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/threadsafe_function.rs -------------------------------------------------------------------------------- /crates/napi/src/tokio_runtime.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/tokio_runtime.rs -------------------------------------------------------------------------------- /crates/napi/src/value_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/value_type.rs -------------------------------------------------------------------------------- /crates/napi/src/version.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/napi/src/version.rs -------------------------------------------------------------------------------- /crates/sys/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/CHANGELOG.md -------------------------------------------------------------------------------- /crates/sys/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/Cargo.toml -------------------------------------------------------------------------------- /crates/sys/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/LICENSE -------------------------------------------------------------------------------- /crates/sys/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/README.md -------------------------------------------------------------------------------- /crates/sys/src/functions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/src/functions.rs -------------------------------------------------------------------------------- /crates/sys/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/src/lib.rs -------------------------------------------------------------------------------- /crates/sys/src/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/crates/sys/src/types.rs -------------------------------------------------------------------------------- /debian-aarch64.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/debian-aarch64.Dockerfile -------------------------------------------------------------------------------- /debian-zig.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/debian-zig.Dockerfile -------------------------------------------------------------------------------- /debian.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/debian.Dockerfile -------------------------------------------------------------------------------- /examples/binary/.gitignore: -------------------------------------------------------------------------------- 1 | *.node 2 | napi-examples-binary 3 | -------------------------------------------------------------------------------- /examples/binary/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/binary/Cargo.toml -------------------------------------------------------------------------------- /examples/binary/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/binary/package.json -------------------------------------------------------------------------------- /examples/binary/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("Hello World!"); 3 | } 4 | -------------------------------------------------------------------------------- /examples/binary/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /examples/napi-cargo-test/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-cargo-test/CHANGELOG.md -------------------------------------------------------------------------------- /examples/napi-cargo-test/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-cargo-test/Cargo.toml -------------------------------------------------------------------------------- /examples/napi-cargo-test/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-cargo-test/src/lib.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/Cargo.toml -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/__snapshots__/object.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/__snapshots__/object.spec.ts.md -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/__snapshots__/object.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/__snapshots__/object.spec.ts.snap -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/__snapshots__/string.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/__snapshots__/string.spec.ts.md -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/__snapshots__/string.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/__snapshots__/string.spec.ts.snap -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/array.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/array.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/arraybuffer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/arraybuffer.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/buffer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/buffer.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/class.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/class.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/cleanup-env.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/cleanup-env.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/create-external.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/create-external.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/either.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/either.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/env.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/env.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/function.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/function.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/get-napi-version.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/get-napi-version.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/global.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/global.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/js-value.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/js-value.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi-version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi-version.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/deferred.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/deferred.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/example.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/threadsafe_function.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/threadsafe_function.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/tokio_readfile.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/tokio_readfile.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/tokio_rt.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/tokio_rt.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/tsfn-dua-instance.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/tsfn-dua-instance.js -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/tsfn-throw.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/tsfn-throw.js -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi4/tsfn_error.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi4/tsfn_error.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi5/date.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi5/date.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi6/bigint.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi6/bigint.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi6/instance-data.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi6/instance-data.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi7/arraybuffer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi7/arraybuffer.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi8/async-cleanup.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi8/async-cleanup.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi8/object.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi8/object.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi8/sub-process-removable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi8/sub-process-removable.js -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/napi8/sub-process.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/napi8/sub-process.js -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/object.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/object.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/__snapshots__/ser.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/__snapshots__/ser.spec.ts.md -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/__snapshots__/ser.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/__snapshots__/ser.spec.ts.snap -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/de.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/de.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/ser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/ser.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/ser.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/ser.spec.ts.md -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/ser.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/ser.spec.ts.snap -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/serde/serde-json.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/serde/serde-json.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/string.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/string.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/symbol.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/symbol.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/__tests__/throw.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/__tests__/throw.spec.ts -------------------------------------------------------------------------------- /examples/napi-compat-mode/browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/browser.js -------------------------------------------------------------------------------- /examples/napi-compat-mode/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/build.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/index.wasi-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/index.wasi-browser.js -------------------------------------------------------------------------------- /examples/napi-compat-mode/index.wasi.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/index.wasi.cjs -------------------------------------------------------------------------------- /examples/napi-compat-mode/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/package.json -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/array.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/arraybuffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/arraybuffer.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/buffer.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/class.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/cleanup_env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/cleanup_env.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/either.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/either.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/env.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/error.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/external.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/external.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/function.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/function.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/global.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/global.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/lib.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi4/deferred.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi4/deferred.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi4/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi4/mod.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi4/tsfn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi4/tsfn.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi5/date.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi5/date.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi5/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi5/mod.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi6/bigint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi6/bigint.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi6/instance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi6/instance.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi6/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi6/mod.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi7/buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi7/buffer.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi7/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi7/mod.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi8/async_cleanup.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi8/async_cleanup.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi8/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi8/mod.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi8/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi8/object.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/napi_version.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/napi_version.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/object.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/serde.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/serde.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/string.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/symbol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/symbol.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/tokio_rt/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/tokio_rt/mod.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/src/tokio_rt/read_file.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/src/tokio_rt/read_file.rs -------------------------------------------------------------------------------- /examples/napi-compat-mode/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/tsconfig.json -------------------------------------------------------------------------------- /examples/napi-compat-mode/wasi-worker-browser.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/wasi-worker-browser.mjs -------------------------------------------------------------------------------- /examples/napi-compat-mode/wasi-worker.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-compat-mode/wasi-worker.mjs -------------------------------------------------------------------------------- /examples/napi-shared/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-shared/Cargo.toml -------------------------------------------------------------------------------- /examples/napi-shared/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | napi_build::setup(); 3 | } 4 | -------------------------------------------------------------------------------- /examples/napi-shared/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi-shared/src/lib.rs -------------------------------------------------------------------------------- /examples/napi/.gitignore: -------------------------------------------------------------------------------- 1 | *.node 2 | wip/ 3 | *.wasm 4 | -------------------------------------------------------------------------------- /examples/napi/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/Cargo.toml -------------------------------------------------------------------------------- /examples/napi/__tests__/__snapshots__/typegen.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/__snapshots__/typegen.spec.ts.md -------------------------------------------------------------------------------- /examples/napi/__tests__/__snapshots__/typegen.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/__snapshots__/typegen.spec.ts.snap -------------------------------------------------------------------------------- /examples/napi/__tests__/__snapshots__/values.spec.ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/__snapshots__/values.spec.ts.md -------------------------------------------------------------------------------- /examples/napi/__tests__/__snapshots__/values.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/__snapshots__/values.spec.ts.snap -------------------------------------------------------------------------------- /examples/napi/__tests__/async-exit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/async-exit.js -------------------------------------------------------------------------------- /examples/napi/__tests__/async-exit.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/async-exit.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/bun-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/bun-test.js -------------------------------------------------------------------------------- /examples/napi/__tests__/error-msg.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/error-msg.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/generator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/generator.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/object-attr.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/object-attr.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/property-names.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/property-names.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/strict.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/strict.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/test.framework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/test.framework.js -------------------------------------------------------------------------------- /examples/napi/__tests__/tsfn-error.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/tsfn-error.cjs -------------------------------------------------------------------------------- /examples/napi/__tests__/unload.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/unload.spec.js -------------------------------------------------------------------------------- /examples/napi/__tests__/values.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/values.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/worker-thread.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/worker-thread.spec.ts -------------------------------------------------------------------------------- /examples/napi/__tests__/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/__tests__/worker.js -------------------------------------------------------------------------------- /examples/napi/browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/browser.js -------------------------------------------------------------------------------- /examples/napi/browser/values.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/browser/values.spec.ts -------------------------------------------------------------------------------- /examples/napi/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/build.rs -------------------------------------------------------------------------------- /examples/napi/dts-header.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/dts-header.d.ts -------------------------------------------------------------------------------- /examples/napi/electron-renderer/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/electron-renderer/index.html -------------------------------------------------------------------------------- /examples/napi/electron-renderer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/electron-renderer/index.js -------------------------------------------------------------------------------- /examples/napi/electron.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/electron.cjs -------------------------------------------------------------------------------- /examples/napi/example.wasi-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/example.wasi-browser.js -------------------------------------------------------------------------------- /examples/napi/example.wasi.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/example.wasi.cjs -------------------------------------------------------------------------------- /examples/napi/index.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/index.cjs -------------------------------------------------------------------------------- /examples/napi/index.d.cts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/index.d.cts -------------------------------------------------------------------------------- /examples/napi/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/index.html -------------------------------------------------------------------------------- /examples/napi/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/package.json -------------------------------------------------------------------------------- /examples/napi/src/array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/array.rs -------------------------------------------------------------------------------- /examples/napi/src/async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/async.rs -------------------------------------------------------------------------------- /examples/napi/src/bigint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/bigint.rs -------------------------------------------------------------------------------- /examples/napi/src/callback.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/callback.rs -------------------------------------------------------------------------------- /examples/napi/src/class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/class.rs -------------------------------------------------------------------------------- /examples/napi/src/class_factory.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/class_factory.rs -------------------------------------------------------------------------------- /examples/napi/src/constructor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/constructor.rs -------------------------------------------------------------------------------- /examples/napi/src/date.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/date.rs -------------------------------------------------------------------------------- /examples/napi/src/either.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/either.rs -------------------------------------------------------------------------------- /examples/napi/src/enum.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/enum.rs -------------------------------------------------------------------------------- /examples/napi/src/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/env.rs -------------------------------------------------------------------------------- /examples/napi/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/error.rs -------------------------------------------------------------------------------- /examples/napi/src/external.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/external.rs -------------------------------------------------------------------------------- /examples/napi/src/fetch.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/fetch.rs -------------------------------------------------------------------------------- /examples/napi/src/fn_return_if_invalid.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/fn_return_if_invalid.rs -------------------------------------------------------------------------------- /examples/napi/src/fn_strict.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/fn_strict.rs -------------------------------------------------------------------------------- /examples/napi/src/fn_ts_override.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/fn_ts_override.rs -------------------------------------------------------------------------------- /examples/napi/src/function.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/function.rs -------------------------------------------------------------------------------- /examples/napi/src/generator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/generator.rs -------------------------------------------------------------------------------- /examples/napi/src/js_mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/js_mod.rs -------------------------------------------------------------------------------- /examples/napi/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/lib.rs -------------------------------------------------------------------------------- /examples/napi/src/lifetime.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/lifetime.rs -------------------------------------------------------------------------------- /examples/napi/src/map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/map.rs -------------------------------------------------------------------------------- /examples/napi/src/nullable.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/nullable.rs -------------------------------------------------------------------------------- /examples/napi/src/number.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/number.rs -------------------------------------------------------------------------------- /examples/napi/src/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/object.rs -------------------------------------------------------------------------------- /examples/napi/src/promise.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/promise.rs -------------------------------------------------------------------------------- /examples/napi/src/reference.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/reference.rs -------------------------------------------------------------------------------- /examples/napi/src/scope.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/scope.rs -------------------------------------------------------------------------------- /examples/napi/src/serde.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/serde.rs -------------------------------------------------------------------------------- /examples/napi/src/set.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/set.rs -------------------------------------------------------------------------------- /examples/napi/src/shared.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/shared.rs -------------------------------------------------------------------------------- /examples/napi/src/stream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/stream.rs -------------------------------------------------------------------------------- /examples/napi/src/string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/string.rs -------------------------------------------------------------------------------- /examples/napi/src/symbol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/symbol.rs -------------------------------------------------------------------------------- /examples/napi/src/task.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/task.rs -------------------------------------------------------------------------------- /examples/napi/src/threadsafe_function.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/threadsafe_function.rs -------------------------------------------------------------------------------- /examples/napi/src/transparent.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/transparent.rs -------------------------------------------------------------------------------- /examples/napi/src/type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/type.rs -------------------------------------------------------------------------------- /examples/napi/src/typed_array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/typed_array.rs -------------------------------------------------------------------------------- /examples/napi/src/wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/src/wasm.rs -------------------------------------------------------------------------------- /examples/napi/tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/README.md -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/assign_js_value_to_class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/assign_js_value_to_class.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/assign_js_value_to_class.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/assign_js_value_to_class.stderr -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/fn_outside_impl_factory.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/fn_outside_impl_factory.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/fn_outside_impl_factory.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/fn_outside_impl_factory.stderr -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/mod.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_1.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_1.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_1.stderr -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_2.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_2.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_2.stderr -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_3.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_3.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_3.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_3.stderr -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_4.rs -------------------------------------------------------------------------------- /examples/napi/tests/build_error_tests/ts_arg_type_4.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/build_error_tests/ts_arg_type_4.stderr -------------------------------------------------------------------------------- /examples/napi/tests/macro_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tests/macro_tests.rs -------------------------------------------------------------------------------- /examples/napi/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/tsconfig.json -------------------------------------------------------------------------------- /examples/napi/vite-entry.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/vite-entry.js -------------------------------------------------------------------------------- /examples/napi/vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/vite.config.js -------------------------------------------------------------------------------- /examples/napi/wasi-worker-browser.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/wasi-worker-browser.mjs -------------------------------------------------------------------------------- /examples/napi/wasi-worker.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/examples/napi/wasi-worker.mjs -------------------------------------------------------------------------------- /images/nextjs.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/images/nextjs.svg -------------------------------------------------------------------------------- /images/prisma.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/images/prisma.svg -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/lerna.json -------------------------------------------------------------------------------- /memory-testing/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/Cargo.toml -------------------------------------------------------------------------------- /memory-testing/buffer.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/buffer.mjs -------------------------------------------------------------------------------- /memory-testing/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/build.rs -------------------------------------------------------------------------------- /memory-testing/index.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/index.mjs -------------------------------------------------------------------------------- /memory-testing/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/package.json -------------------------------------------------------------------------------- /memory-testing/reference.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/reference.mjs -------------------------------------------------------------------------------- /memory-testing/returns-future.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/returns-future.mjs -------------------------------------------------------------------------------- /memory-testing/serde.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/serde.mjs -------------------------------------------------------------------------------- /memory-testing/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/src/lib.rs -------------------------------------------------------------------------------- /memory-testing/test-util.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/test-util.mjs -------------------------------------------------------------------------------- /memory-testing/tokio-future.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/tokio-future.mjs -------------------------------------------------------------------------------- /memory-testing/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/tsconfig.json -------------------------------------------------------------------------------- /memory-testing/tsfn.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/tsfn.mjs -------------------------------------------------------------------------------- /memory-testing/util.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/memory-testing/util.mjs -------------------------------------------------------------------------------- /oxlint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/oxlint.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/package.json -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | tab_spaces = 2 2 | edition = "2021" 3 | -------------------------------------------------------------------------------- /triples/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/CHANGELOG.md -------------------------------------------------------------------------------- /triples/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/LICENSE -------------------------------------------------------------------------------- /triples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/README.md -------------------------------------------------------------------------------- /triples/generate-triple-list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/generate-triple-list.ts -------------------------------------------------------------------------------- /triples/index.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/index.cjs -------------------------------------------------------------------------------- /triples/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/index.d.ts -------------------------------------------------------------------------------- /triples/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/index.js -------------------------------------------------------------------------------- /triples/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/package.json -------------------------------------------------------------------------------- /triples/target-list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/target-list -------------------------------------------------------------------------------- /triples/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/triples/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /wasm-runtime/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/CHANGELOG.md -------------------------------------------------------------------------------- /wasm-runtime/assert.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/assert.cjs -------------------------------------------------------------------------------- /wasm-runtime/fs-proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/fs-proxy.js -------------------------------------------------------------------------------- /wasm-runtime/fs-proxy.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/fs-proxy.test.js -------------------------------------------------------------------------------- /wasm-runtime/fs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/fs.js -------------------------------------------------------------------------------- /wasm-runtime/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/package.json -------------------------------------------------------------------------------- /wasm-runtime/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/rollup.config.js -------------------------------------------------------------------------------- /wasm-runtime/runtime.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/runtime.cjs -------------------------------------------------------------------------------- /wasm-runtime/runtime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/runtime.js -------------------------------------------------------------------------------- /wasm-runtime/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/wasm-runtime/util.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napi-rs/napi-rs/HEAD/yarn.lock --------------------------------------------------------------------------------