mirror of https://github.com/boa-dev/boa.git
Jason Williams
6 years ago
commit
f33c18d2b6
7 changed files with 49 additions and 0 deletions
@ -0,0 +1,22 @@
|
||||
{ |
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558 |
||||
// for the documentation about the tasks.json format |
||||
"version": "2.0.0", |
||||
"tasks": [ |
||||
{ |
||||
"type": "cargo", |
||||
"label": "cargo run", |
||||
"command": "cargo", |
||||
"args": [ |
||||
"run" |
||||
], |
||||
"problemMatcher": [ |
||||
"$rustc" |
||||
], |
||||
"group": { |
||||
"kind": "build", |
||||
"isDefault": true |
||||
} |
||||
} |
||||
] |
||||
} |
@ -0,0 +1,10 @@
|
||||
[package] |
||||
name = "boa" |
||||
version = "0.1.0" |
||||
authors = ["Jason Williams <jase.williams@gmail.com>"] |
||||
|
||||
[dependencies] |
||||
|
||||
[[bin]] |
||||
name = "js" |
||||
path = "src/bin/bin.rs" |
@ -0,0 +1,6 @@
|
||||
use std::fs::read_to_string; |
||||
|
||||
pub fn main() { |
||||
let buffer = read_to_string("test.js").unwrap(); |
||||
println!("{}", buffer); |
||||
} |
Loading…
Reference in new issue