[BREAKGLASS] Append-only mirror of github.com/signalapp/neon
Go to file
2020-11-24 12:22:45 -05:00
.github/workflows v0.5.3 2020-11-24 09:25:35 -05:00
cli v0.5.3 2020-11-24 09:25:35 -05:00
crates v0.5.3 2020-11-24 09:25:35 -05:00
dev update branch name 2020-10-08 15:39:00 +02:00
src Merge pull request #636 from neon-bindings/kv/proc-macro 2020-11-24 08:35:56 -05:00
test Merge pull request #636 from neon-bindings/kv/proc-macro 2020-11-24 08:35:56 -05:00
.editorconfig run cli, static, and dynamic tests on CI, add tests for cache busting 2019-01-18 15:23:36 -08:00
.gitignore ignore RLS logs 2018-06-15 12:14:59 -07:00
AUTHORS.md 0.5.2 2020-11-16 11:30:39 -05:00
build.rs We didn't actually need the CI flag after all; just #[ignore] the static tests for all Rust versions except beta. 2019-09-30 13:23:39 -07:00
Cargo.toml v0.5.3 2020-11-24 09:25:35 -05:00
CODE_OF_CONDUCT.md Switching to the Contributor Covenant code of conduct. The Rust CoC is pretty good, but the CC CoC is a bit more polished and consistent, and also stated in a way that's less tied to one specific project. 2017-09-22 14:58:50 -07:00
CONTRIBUTING.md update rfcs main branch references 2020-10-08 15:47:17 +02:00
LICENSE-APACHE Move neon-cli files into cli subdirectory, and restore temporarily-moved neon files back to project root. 2017-09-17 23:26:08 -07:00
LICENSE-MIT Relicensing! Like Neon itself, the neon CLI is now dual-licensed under 2017-09-02 05:26:06 -07:00
MIGRATION_GUIDE.md Review Comments 2019-12-23 16:09:49 -05:00
neon.png change image to png 2018-12-23 20:59:05 -08:00
README.md Move CI badges to the end, so people can see the Cargo and npm badges first. 2020-08-01 19:22:54 -07:00
RELEASES.md v0.5.3 2020-11-24 09:25:35 -05:00

neon

Cargo npm Linux Build Status macOS Build Status Windows Build Status

Rust bindings for writing safe and fast native Node.js modules.

Getting started

Once you have the platform dependencies installed, getting started is as simple as:

$ npm install -g neon-cli
$ neon new my-project

Then see the Hello World guide for writing your first Hello World in Neon!

Docs

See our Neon fundamentals docs and our API docs.

Platform Support

Operating Systems

Linux macOS Windows

Node.js

Node 10 Node 12 Node 14

Support for LTS versions of Node and current are expected. If you're using a different version of Node and believe it should be supported, let us know.

Rust

Neon supports Rust stable version 1.18 and higher. We test on the latest stable, beta, and nightly versions of Rust.

A Taste...

fn make_an_array(mut cx: FunctionContext) -> JsResult<JsArray> {
    // Create some values:
    let n = cx.number(9000);
    let s = cx.string("hello");
    let b = cx.boolean(true);

    // Create a new array:
    let array: Handle<JsArray> = cx.empty_array();

    // Push the values into the array:
    array.set(&mut cx, 0, n)?;
    array.set(&mut cx, 1, s)?;
    array.set(&mut cx, 2, b)?;

    // Return the array:
    Ok(array)
}

register_module!(mut cx, {
    cx.export_function("makeAnArray", make_an_array)
})

For more examples, see our examples repo.

Get Involved

The Neon community is just getting started and there's tons of fun to be had. Come play! :)

The Rust Bindings community Slack is open to all; use the Slackin app to receive an invitation.

License

Licensed under either of

at your option.