Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working, basic Rust <--> duktape linkage #1

Merged
merged 1 commit into from
Jul 20, 2016

Conversation

Fishrock123
Copy link
Member

Currently runs JS files: target/debug/rusty-duktape test.js

Clone with --depth=1 for submodules

Jeremiah@Jeremiahs-MBP ~/D/rustyduk> cargo build

   Compiling rusty-duktape v0.1.0 (file:///Users/Jeremiah/Documents/rustyduk)

Jeremiah@Jeremiahs-MBP ~/D/rustyduk> target/debug/rusty-duktape 

Usage: target/debug/rusty-duktape FILE [options]



Options:

    -o, --output FILE   set output file name

    -h, --help          print this help menu

Jeremiah@Jeremiahs-MBP ~/D/rustyduk> target/debug/rusty-duktape test.js

Hello World!

Jeremiah@Jeremiahs-MBP ~/D/rustyduk> 

Currently runs JS files: target/debug/rusty-duktape test.js

Clone with --depth=1 for submodules
@Fishrock123 Fishrock123 merged commit f6ca77f into master Jul 20, 2016
@creationix
Copy link
Member

Awesome work!

@creationix
Copy link
Member

creationix commented Jul 20, 2016

Next step, implement the nucleus.* apis (no need for libuv there) and the CLI interface that seaduk implements.

Nucleus v0.0.0
Usage:

  ./target/nucleus source -- args...              Run app from source tree
  ./target/nucleus source/custom.js -- args...    Run custom main script
  ./target/nucleus source [-l] [-z] [-o target]   Build app

Options:

  -v | --version          Print version and exit
  -h | --help             Print help and exit
  -l | --linked           Link runtime instead of embedding
  -z | --ziponly          Only create zip, no embedding
  -o | --output target    Generate output binary at this path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants