Expand description
Symbols to be exported are now defined in this JSON file.
The #[napi_sym]
macro checks for missing entries and panics.
./tools/napi/generate_symbols_list.js
is used to generate the LINK cli/exports.def
on Windows,
which is also checked into git.
To add a new napi function:
- Place
#[napi_sym]
on top of your implementation. - Add the function’s identifier to this JSON list.
- Finally, run
tools/napi/generate_symbols_list.js
to updateext/napi/generated_symbol_exports_list_*.def
.
Re-exports§
pub use deno_core::v8;
Modules§
- Manually manage memory through raw pointers.
Macros§
Structs§
- Representation of a borrowed C string.
- Env that is shared between all contexts in same native module.
- An extension for use with the Deno JS runtime. To use it, provide it as an argument when instantiating your runtime:
Enums§
Constants§
Statics§
Traits§
Functions§
Type Aliases§
- Equivalent to C’s
char
type. - Equivalent to C’s
void
type when used as a pointer.