Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠️ refactor: refactor heimdall into heimdall-core and heimdall-cli to remove disc & I/O dependency #151

Merged
merged 18 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:
- uses: actions/checkout@v3

- name: Build Binaries
working-directory: ./heimdall
run: |
cargo clean
cargo build
cargo build --verbose

- name: Run Tests
working-directory: ./heimdall
run: |
cargo test --package heimdall -- test_ --nocapture
cargo test --package heimdall-cli -- test_ --nocapture
cargo test --package heimdall-core -- test_ --nocapture
cargo test --package heimdall-config -- test_ --nocapture
cargo test --package heimdall-common -- test_ --nocapture
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
- uses: actions/checkout@v3

- name: Compile
working-directory: ./heimdall
run: cargo build --verbose

- name: Run Tests
working-directory: ./heimdall
run: |
cargo test --package heimdall -- test_ --nocapture
cargo test --package heimdall-cli -- test_ --nocapture
cargo test --package heimdall-core -- test_ --nocapture
cargo test --package heimdall-config -- test_ --nocapture
cargo test --package heimdall-common -- test_ --nocapture
68 changes: 38 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
members = ["common", "config", "heimdall"]
members = ["common", "config", "core", "cli"]
version = "0.5.4"
2 changes: 0 additions & 2 deletions cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ description = "Cache management for Heimdall."
keywords = ["ethereum", "web3", "decompiler", "evm", "crypto"]

[dependencies]
clap-verbosity-flag = "1.0.0"
clap = { version = "3.1.18", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
toml = { version = "0.7.6" }
bincode = "1.3.3"
25 changes: 25 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "heimdall-cli"
version = "0.5.4"
edition = "2021"
license = "MIT"
readme = "README.md"
description = "CLI for the heimdall-rs toolkit"
keywords = ["ethereum", "web3", "decompiler", "evm", "crypto"]

[dependencies]
backtrace = "0.3"
clap = {version = "3.1.18", features = ["derive"]}
clap-verbosity-flag = "1.0.0"
colored = "2"
crossterm = "0.26.1"
heimdall-cache = {path = "./../cache"}
heimdall-core = {path = "./../core"}
heimdall-common = {path = "./../common"}
heimdall-config = {path = "./../config"}
tokio = {version = "1", features = ["full"]}
tui = "0.19"

[[bin]]
name = "heimdall"
path = "src/main.rs"
Loading