Skip to content

Commit

Permalink
Add justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalprout committed Feb 4, 2025
1 parent 04634f9 commit 2a0934a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
default:
@just --list

check: check-format check-clippy test

fix: fix-format fix-clippy

test:
cargo test --all-features

check-format:
cargo fmt --all -- --check

fix-format:
cargo fmt --all

check-clippy:
cargo clippy --all-targets -- -D warnings

fix-clippy:
cargo clippy --all-targets --fix --allow-dirty --allow-staged

build:
cargo build --release

clean:
cargo clean

watch-test:
cargo watch -x test

watch-check:
cargo watch -x "fmt --all -- --check" -x "clippy --all-targets -- -D warnings" -x test
3 changes: 2 additions & 1 deletion src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub trait EthApiOverride {

#[derive(Debug)]
pub struct EthApiExt<Eth> {
#[allow(dead_code)] // temporary until we implement the flashblocks API
eth_api: Eth,
}

Expand Down Expand Up @@ -70,6 +71,6 @@ pub struct BaseApiExt {}
#[async_trait]
impl BaseApiServer for BaseApiExt {
async fn status(&self, name: String) -> RpcResult<Status> {
Ok(Status { name: name.into() })
Ok(Status { name })
}
}

0 comments on commit 2a0934a

Please sign in to comment.