emk / duktape-rs Goto Github PK
View Code? Open in Web Editor NEWRust wrapper for Duktape, a lightweight, embedded JavaScript interpreter.
Rust wrapper for Duktape, a lightweight, embedded JavaScript interpreter.
There are three crates out there:
could you please explain the differences?
rustc -V
rustc 1.11.0-nightly (5c2a5d449 2016-06-11)
cargo -V
cargo 0.12.0-nightly (ffa147d 2016-06-10)
โ duktape-rs git:(master) cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading abort_on_panic v1.0.0
Downloading log v0.3.6
Downloading rustc-serialize v0.3.19
Downloading cesu8 v1.1.0
Downloading gcc v0.3.28
Compiling gcc v0.3.28
Compiling cesu8 v1.1.0
Compiling rustc-serialize v0.3.19
Compiling abort_on_panic v1.0.0
Compiling log v0.3.6
Compiling duktape_sys v0.0.2 (file:///Users/fro/ethereum/duktape-rs/duktape_sys)
duktape_sys/build.rs:8:15: 8:21 error: unresolved import `std::os::getenv`. There is no `getenv` in `std::os` [E0432]
duktape_sys/build.rs:8 use std::os::{getenv, setenv};
^~~~~~
duktape_sys/build.rs:8:15: 8:21 help: run `rustc --explain E0432` to see a detailed explanation
duktape_sys/build.rs:8:23: 8:29 error: unresolved import `std::os::setenv`. There is no `setenv` in `std::os` [E0432]
duktape_sys/build.rs:8 use std::os::{getenv, setenv};
^~~~~~
duktape_sys/build.rs:8:23: 8:29 help: run `rustc --explain E0432` to see a detailed explanation
duktape_sys/build.rs:18:35: 18:44 error: failed to resolve. Use of undeclared type or module `Path` [E0433]
duktape_sys/build.rs:18 include_directories: vec!(Path::new("duktape/src")),
^~~~~~~~~
duktape_sys/build.rs:18:30: 18:60 note: in this expansion of vec! (defined in <std macros>)
duktape_sys/build.rs:18:35: 18:44 help: run `rustc --explain E0433` to see a detailed explanation
duktape_sys/build.rs:17:5: 20:49 error: this function takes 2 parameters but 3 parameters were supplied [E0061]
duktape_sys/build.rs:17 gcc::compile_library("libduktape.a", &gcc::Config {
^
duktape_sys/build.rs:17:5: 20:49 help: run `rustc --explain E0061` to see a detailed explanation
duktape_sys/build.rs:19:12: 19:28 error: the trait bound `gcc::Config: std::default::Default` is not satisfied [E0277]
duktape_sys/build.rs:19 .. Default::default()
^~~~~~~~~~~~~~~~
duktape_sys/build.rs:19:12: 19:28 help: run `rustc --explain E0277` to see a detailed explanation
duktape_sys/build.rs:19:12: 19:28 note: required by `std::default::Default::default`
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
error: Could not compile `duktape_sys`.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.