Skip to content

Commit

Permalink
bump to neon@0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Sep 3, 2019
1 parent e3d9505 commit 3873a6a
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 90 deletions.
90 changes: 29 additions & 61 deletions native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "neon_hello"
crate-type = ["dylib"]

[build-dependencies]
neon-build = "0.1.15"
neon-build = "0.3.1"

[dependencies]
neon = "0.1.15"
neon = "0.3.1"
14 changes: 6 additions & 8 deletions native/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#[macro_use]
extern crate neon;

use neon::vm::{Call, JsResult};
use neon::js::JsString;
use neon::prelude::*;

fn hello(call: Call) -> JsResult<JsString> {
let scope = call.scope;
Ok(JsString::new(scope, "Hello from Neon!").unwrap())
fn hello(mut cx: FunctionContext) -> JsResult<JsString> {
Ok(cx.string("Hello from Neon!"))
}

register_module!(m, {
m.export("hello", hello)
});
register_module!(mut cx, {
cx.export_function("hello", hello)
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "Amila Welihinda <amilajack@gmail.com>",
"license": "MIT",
"dependencies": {
"neon-cli": "^0.1.15"
"neon-cli": "0.3.1"
},
"scripts": {
"install": "neon build"
Expand Down
34 changes: 16 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ array-back@^2.0.0:
dependencies:
typical "^2.6.1"

async@^2.5.0:
version "2.6.1"
resolved "https://registry.npmjs.org/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610"
integrity sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==
dependencies:
lodash "^4.17.10"

balanced-match@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
Expand Down Expand Up @@ -206,12 +199,12 @@ glob@^7.0.5:
once "^1.3.0"
path-is-absolute "^1.0.0"

handlebars@^4.0.3:
version "4.0.12"
resolved "https://registry.npmjs.org/handlebars/-/handlebars-4.0.12.tgz#2c15c8a96d46da5e266700518ba8cb8d919d5bc5"
integrity sha512-RhmTekP+FZL+XNhwS1Wf+bTTZpdLougwt5pcgA1tuz6Jcx0fpH/7z0qd71RKnZHBCxIRBHfBOnio4gViPemNzA==
handlebars@^4.1.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.2.0.tgz#57ce8d2175b9bbb3d8b3cf3e4217b1aec8ddcb2e"
integrity sha512-Kb4xn5Qh1cxAKvQnzNWZ512DhABzyFNmsaJf3OAkWNa4NkaqWcNI8Tao8Tasi0/F4JD9oyG0YxuFyvyR57d+Gw==
dependencies:
async "^2.5.0"
neo-async "^2.6.0"
optimist "^0.6.1"
source-map "^0.6.1"
optionalDependencies:
Expand Down Expand Up @@ -287,7 +280,7 @@ lodash.padend@^4.6.1:
resolved "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz#53ccba047d06e158d311f45da625f4e49e6f166e"
integrity sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=

lodash@^4.17.10, lodash@^4.3.0:
lodash@^4.3.0:
version "4.17.11"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
Expand Down Expand Up @@ -326,17 +319,22 @@ mute-stream@0.0.7:
resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=

neon-cli@^0.1.15:
version "0.1.23"
resolved "https://registry.npmjs.org/neon-cli/-/neon-cli-0.1.23.tgz#2eb517bd665718a983b7ef45b2640662fa631741"
integrity sha512-C5Rw82cDsQFuvFBlql3cuMm0UGRFdBOvcjSA6Di59EFnrqEnajeqF2Z1X6/tJK3VdhrNyWieYr8L27Qfxj3Gvg==
neo-async@^2.6.0:
version "2.6.1"
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c"
integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==

neon-cli@0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/neon-cli/-/neon-cli-0.3.1.tgz#be82c0b57a024080f712abb648abcd2f680f9636"
integrity sha512-OBrJbDD0BNDPxWwh88kWd2dJkXWEZ/mrCPF/ADrsLgHmF2qDdbXagli48I7yVl1ngMtItrvI7JqBeiNQNtN1ww==
dependencies:
chalk "~2.1.0"
command-line-args "^4.0.2"
command-line-commands "^2.0.0"
command-line-usage "^4.0.0"
git-config "0.0.7"
handlebars "^4.0.3"
handlebars "^4.1.0"
inquirer "^3.0.6"
mkdirp "^0.5.1"
quickly-copy-file "^1.0.0"
Expand Down

0 comments on commit 3873a6a

Please sign in to comment.