diff --git a/.gitignore b/.gitignore index 485dee64bcfb48793379b200a1afd14e85a8aaf4..831e189a662d83f48e39e77ac4b7fd72e6b8c499 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,12 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk .idea diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000000000000000000000000000000000000..3301be11045a19d4c6362cfec3bcc6462626e2b0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "scie" +version = "0.1.0" +authors = ["Phodal Huang "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[workspace] +members = [ + "scie-grammar" +] \ No newline at end of file diff --git a/justfile b/justfile new file mode 100644 index 0000000000000000000000000000000000000000..6881e0b08f6ef17291eac31396746d8ffa4a34a3 --- /dev/null +++ b/justfile @@ -0,0 +1,27 @@ +tests: + cargo test + +tests-ci: + cargo test + +build: + cargo build + +@bench: + cargo bench + +@lint: + rustup component add clippy + rustup component add rustfmt + cargo clippy -- -D warnings + cargo clippy --tests + cargo fmt -- --check + +@fix: + cargo fmt --all + +clean: + cargo clean + find . -type f -name "*.orig" -exec rm {} \; + find . -type f -name "*.bk" -exec rm {} \; + find . -type f -name ".*~" -exec rm {} \; diff --git a/scie-grammar/src/main.rs b/scie-grammar/src/lib.rs similarity index 100% rename from scie-grammar/src/main.rs rename to scie-grammar/src/lib.rs diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000000000000000000000000000000000000..f328e4d9d04c31d0d70d16d21a07d1613be9d577 --- /dev/null +++ b/src/main.rs @@ -0,0 +1 @@ +fn main() {}