Skip to content

Commit

Permalink
feat: rust based compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Nov 11, 2021
1 parent 4e4126a commit 096e304
Show file tree
Hide file tree
Showing 57 changed files with 8,327 additions and 51 deletions.
2,148 changes: 2,148 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[workspace]

members = [
"src/napi",
"src/optimizer/cli",
"src/optimizer/core",
]
exclude = ["src/wasm"]

[profile.release]
debug = 0

35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
install-rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

install-rust-deps:
rustup update
cargo install cargo-insta
cargo install wasm-pack
rustup component add clippy

install-all: install-rust install-rust-deps

install-cli:
cd src/optimizer/cli && cargo install --path .

fix:
cargo fmt

check:
cargo fmt -- --check && cargo check

lint:
cargo clippy

test:
cargo test

publish-core:
cd src/optimizer/core && cargo publish --all-features

publish-cli:
cd src/optimizer/cli && cargo publish

publish: publish-core publish-cli

validate: check lint test
15 changes: 0 additions & 15 deletions integration/todo/client.html

This file was deleted.

Loading

0 comments on commit 096e304

Please sign in to comment.