Split project into three workspaces: hel (the library), helcli (the tool) and helwasm (the wasm code). Move wasm incompatible code to extra modules in utils.rs to be implementable separately for wasm.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "helcli"
|
||||
version = "0.1.0"
|
||||
authors = ["ok2"]
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "hel"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
hel = { version = "0.1.0", path = "../hel" }
|
||||
rustyline = "10.0.0"
|
||||
@@ -0,0 +1,12 @@
|
||||
extern crate hel;
|
||||
|
||||
use hel::structs::init;
|
||||
|
||||
pub fn main() {
|
||||
let mut lkread = match init() { Some(r) => r, None => { return; } };
|
||||
|
||||
while lkread.read().eval().print() {
|
||||
lkread.refresh();
|
||||
}
|
||||
lkread.quit();
|
||||
}
|
||||
Reference in New Issue
Block a user