Browse Source

Add bin

main
Dylan Baker 3 years ago
parent
commit
b5644596a9
2 changed files with 9 additions and 2 deletions
  1. 2
    2
      Cargo.toml
  2. 7
    0
      src/main.rs

+ 2
- 2
Cargo.toml View File

@@ -11,5 +11,5 @@ serde = "1.0.125"
11 11
 serde_json = "1.0.64"
12 12
 wasm-bindgen = "0.2.73"
13 13
 
14
-[lib]
15
-crate-type = ["cdylib"]
14
+# [lib]
15
+# crate-type = ["cdylib"]

+ 7
- 0
src/main.rs View File

@@ -0,0 +1,7 @@
1
+use kappe;
2
+
3
+fn main() {
4
+    let source: Vec<String> = std::env::args().skip(1).collect();
5
+    let source = source.join(" ");
6
+    println!("{}", kappe::compile(&source));
7
+}

Loading…
Cancel
Save