use runjs;
assert_eq!;
for workspace
#Cargo.toml
[]
= ["yourcrate"]
= "2"
use jsexec::runjs;
assert_eq!(runjs("console.log(\"hello\")").unwrap(),"hello\n");
#Cargo.toml
[workspace]
members = ["yourcrate"]
resolver = "2"