🥳Yet another crate to create native nodejs addons :)

Related tags

Miscellaneous nodex
Overview

nodex

Yet another crate to create native nodejs addons :)

This crate aims to make creating native nodejs addons very easy and comfortable.

It is in a very early stage and heavy development is making.

Examples

Init Module

// lib.rs
use nodex_api::{api, prelude::*};

nodex_api::init!(init);

fn init(env: NapiEnv, exports: JsValue) -> NapiResult<()> {
    Ok(())
}

How to participate in

Code of conduct

cat >> .git/hooks/pre-push << EOF
#!/bin/sh

cargo fmt || exit
cargo clippy -- -D warnings || exit
EOF

License

Licensed under either of

at your option.

You might also like...
This crate provides a convenient macro that allows you to generate type wrappers that promise to always uphold arbitrary invariants that you specified.

prae This crate provides a convenient macro that allows you to generate type wrappers that promise to always uphold arbitrary invariants that you spec

Rust crate for parsing stivale and stivale 2 structures.

stivale-rs Rust crate for parsing stivale and stivale 2 structures. Resources Stivale v2 Specification Stivale Specification License Licensed under ei

A simple entity-component-system crate for rust with serialization support

Gallium A simple entity-component-system crate for rust with serialization support Usage You can include the library using carge: [dependencies] galli

This crate defines a single macro that is a brainfunct compile-time interpreter.

Compile Protection This crate defines a single macro that is a brainfunct compile-time interpreter. One example is as follows #![recursion_limit = "18

Rust crate to generate, manipulate and traverse trees.

SOCAREL Rust crate to generate, manipulate and traverse trees. It provides iterators for eight different traversal algorithms. Add and remove nodes in

A translation of Brendan Galea's Vulkan tutorial into Rust using the ash crate
A translation of Brendan Galea's Vulkan tutorial into Rust using the ash crate

Rust Light Vulkan Engine This is a translation of Brendan Galea's Vulkan tutorial into rust using the Ash crate. Original tutorial: Brendan Galea's Yo

secmem-proc is a crate designed to harden a process against low-privileged attackers running on the same system trying to obtain secret memory contents of the current process.

secmem-proc is a crate designed to harden a process against low-privileged attackers running on the same system trying to obtain secret memory contents of the current process. More specifically, the crate disables core dumps and tries to disable tracing on unix-like OSes.

Community SVD file, peripheral access crate in embedde Rust for WinnerMicro W800, W801 & W806 chip

Community SVD file, peripheral access crate in embedde Rust for WinnerMicro W800, W801 & W806 chip

Releases(v0.2.3)
  • v0.2.3(Mar 8, 2022)

    Changelog

    • fix(nodex-api): JsObject::get() value checked
    • doc(nodex-api): JsObject::get_unchecked() safty document

    Bugfix

    • fix(nodex-api): AsyncWork should pass 'static closure
    Source code(tar.gz)
    Source code(zip)
  • v0.2.2(Mar 6, 2022)

    Changelog

    • feat(nodex-api): JsArrayBuffer::buffer() to get the underlaying data buffer
    • feat(nodex-api): unsafe NapiValueT::cast() & safe NapiValueT::cast_checked()

    Bugfix

    • fix(nodex-api): JsPromise::spawn() segment fault issue
    Source code(tar.gz)
    Source code(zip)
  • v0.2.1(Mar 5, 2022)

  • v0.2.0(Mar 5, 2022)

    Features

    In this release, the function call did not relay on const-generic types. Insted, we use FromJsArgs and ToJsArgs.

    Changelog

    • fix(node-api): napi async work add Send
    • fix(nodex-api): NapiValue::wrap should parse Send data
    • NapiValueT::wrap seems not to be Send, because js is single-threaded
    • feat(nodex-api): use tuple to call function
    • feat(nodex-api): JsValue::is_xxx check functions
    Source code(tar.gz)
    Source code(zip)
  • v0.1.6(Feb 23, 2022)

  • v0.1.5(Feb 21, 2022)

  • v0.1.4(Feb 1, 2022)

    CHANGELOG

    • feat(examples): descriptor example

    • feat(nodex-api): NapiAsyncWork::queue no napi error

    • feat(nodex-api): return JsError if error occurs

    • feat(nodex-api): NapiValueT::unwrap() get mutable reference

    • fix(nodex-api): throw error

    Source code(tar.gz)
    Source code(zip)
  • v0.1.3(Jan 29, 2022)

  • v0.1.2(Jan 26, 2022)

    • feat(nodex-api): JsObject::{get,set}

    • feat(nodex-api): add no-linkage feature to not pass some link args

    • fix(node-api): JsObject::set generic

    Source code(tar.gz)
    Source code(zip)
  • v0.1.1(Jan 25, 2022)

Owner
uuhan
野路子,超野的那种。
uuhan
Yet another multi-purpose discord bot

virus yet another multi-purpose discord bot

miten 2 Jan 11, 2022
sentry - yet another multi-purpose discord bot

sentry - yet another multi-purpose discord bot

miten 1 Feb 17, 2022
📦 Crate Protocol allows anyone to create, manage, and trade a tokenized basket of assets, which we refer to as a Crate.

?? Crate Protocol Crate Protocol allows anyone to create, manage, and trade a tokenized basket of assets, which we refer to as a Crate. A Crate is alw

Crate Protocol 63 Oct 31, 2022
A fast package manager for NodeJS written in Rust.

click A fast package manager for NodeJS written in Rust. How fast? Benchmark of bun vs click clean install: Based on benchmarks done with hyperfine, c

Sam 52 Oct 10, 2023
A simple, yet feature-filled wrapper around the coqui-stt C API

A simple, yet feature-filled wrapper around the coqui-stt C API

0/0 56 Jan 3, 2023
Another Network Tunnel; A simple program for local/remote port forwarding over a SSH tunnel.

?? ANT Another Network Tunnel; A simple program for local/remote port forwarding over a SSH tunnel. Table of Contents Installation Pre-requisites Pre-

Hendrik Böck 20 Jun 25, 2023
A boiler plate code to create dynamic link library in rust.

?? rust-dll-bp This is a boiler plate code that will be generated as a dll binary. I personally cache this here for me but if you're intend to create

s3pt3mb3r 9 Nov 7, 2022
Create That Project. Project Creation That Rocks 🎸🧱.

Create That Project Config Example Install $ cargo install ctp Basic Info In any file or even in the commands sections of your config file you can pla

Will 5 Dec 20, 2021
Submit sbatch jobs without the need to create a script

ssubmit Submit sbatch jobs without having to create a submission script Motivation Install Usage Motivation This project is motivated by the fact that

Michael Hall 44 Nov 23, 2022
CLI to create redirections in CloudFlare to Zoom meetings.

boteco boteco is a CLI to create redirections in CloudFlare to Zoom meetings. Requirements CloudFlare page rules In the domain you want to use, you ne

Eduardo Cuducos 3 Jan 3, 2023