Skip to content

Commit

Permalink
feat: sierra to casm compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Apr 3, 2024
1 parent ebadd56 commit 45f8ecc
Show file tree
Hide file tree
Showing 8 changed files with 1,309 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ serde_json = "1.0"
starknet_api = "0.8.0"
tokio = { version = "0.2", features = ["macros"] }
thiserror = "1.0"
rstest = "0.17.0"
1 change: 1 addition & 0 deletions crates/gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ serde_json.workspace = true
starknet_api.workspace = true
tokio.workspace = true
thiserror.workspace = true
rstest.workspace = true

[lints]
workspace = true
16 changes: 16 additions & 0 deletions crates/gateway/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use std::process::Command;

fn main() {
let output = Command::new("cargo")
.arg("install")
.arg("--root")
.arg("target")
.arg("starknet-sierra-compile")
.output()
.expect("Failed to install starknet-sierra-compile");

if !output.status.success() {
eprintln!("Cargo install failed: {:?}", output);
std::process::exit(1);
}
}
1 change: 1 addition & 0 deletions crates/gateway/src/compiler.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod compile;
Loading

0 comments on commit 45f8ecc

Please sign in to comment.