Onchain.Cargo (onchain_evm v0.7.0)

Copy Markdown View Source

mix ci gate for both native crates: cargo test and cargo clippy.

Absent cargo or clippy degrades with a skip message rather than failing as if the Rust were bad. Clippy denies clippy::unwrap_used via each crate's Cargo.toml; it does not deny expect_used.

Summary

Functions

Native crate paths relative to the Mix project root.

Run cargo test or cargo clippy --all-targets -- -D warnings on both crates.

Functions

crates()

@spec crates() :: [String.t()]

Native crate paths relative to the Mix project root.

run(kind, opts \\ [])

@spec run(
  :test | :clippy,
  keyword()
) :: :ok

Run cargo test or cargo clippy --all-targets -- -D warnings on both crates.

opts is for tests: :find_executable and :cmd replace System lookups.