fmt, machete, GH CI

This commit is contained in:
Luke Parker
2024-07-05 13:55:15 -04:00
parent e94a04d47c
commit 90880cc9c8
6 changed files with 46 additions and 13 deletions

View File

@@ -32,5 +32,19 @@ jobs:
-p bitcoin-serai \ -p bitcoin-serai \
-p alloy-simple-request-transport \ -p alloy-simple-request-transport \
-p ethereum-serai \ -p ethereum-serai \
-p monero-io \
-p monero-generators \ -p monero-generators \
-p monero-serai -p monero-primitives \
-p monero-mlsag \
-p monero-clsag \
-p monero-borromean \
-p monero-bulletproofs \
-p monero-serai \
-p monero-rpc \
-p monero-simple-request-rpc \
-p monero-address \
-p monero-wallet \
-p monero-seed \
-p polyseed \
-p monero-wallet-util \
-p monero-serai-verify-chain

View File

@@ -26,7 +26,23 @@ jobs:
uses: ./.github/actions/test-dependencies uses: ./.github/actions/test-dependencies
- name: Run Unit Tests Without Features - name: Run Unit Tests Without Features
run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --lib run: |
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-io --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-generators --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-primitives --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-mlsag --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-clsag --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-borromean --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-bulletproofs --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-rpc --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-simple-request-rpc --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-address --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-seed --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package polyseed --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet-util --lib
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai-verify-chain --lib
# Doesn't run unit tests with features as the tests workflow will # Doesn't run unit tests with features as the tests workflow will
@@ -46,11 +62,17 @@ jobs:
monero-version: ${{ matrix.version }} monero-version: ${{ matrix.version }}
- name: Run Integration Tests Without Features - name: Run Integration Tests Without Features
# Runs with the binaries feature so the binaries build run: |
# https://github.com/rust-lang/cargo/issues/8396 GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --test '*'
run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --features binaries --test '*' GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet-util --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai-verify-chain --test '*'
- name: Run Integration Tests - name: Run Integration Tests
# Don't run if the the tests workflow also will # Don't run if the the tests workflow also will
if: ${{ matrix.version != 'v0.18.2.0' }} if: ${{ matrix.version != 'v0.18.2.0' }}
run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --all-features --test '*' run: |
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --all-features --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet --all-features --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-wallet-util --all-features --test '*'
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai-verify-chain --test '*'

2
Cargo.lock generated
View File

@@ -4895,7 +4895,6 @@ dependencies = [
"monero-io", "monero-io",
"monero-mlsag", "monero-mlsag",
"monero-primitives", "monero-primitives",
"rand_core",
"std-shims", "std-shims",
"zeroize", "zeroize",
] ]
@@ -4912,7 +4911,6 @@ dependencies = [
"rand_core", "rand_core",
"serde", "serde",
"serde_json", "serde_json",
"std-shims",
"tokio", "tokio",
] ]

View File

@@ -19,7 +19,6 @@ workspace = true
std-shims = { path = "../../common/std-shims", version = "^0.1.1", default-features = false } std-shims = { path = "../../common/std-shims", version = "^0.1.1", default-features = false }
zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] } zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] }
rand_core = { version = "0.6", default-features = false }
curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize"] } curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize"] }
@@ -38,13 +37,13 @@ std = [
"std-shims/std", "std-shims/std",
"zeroize/std", "zeroize/std",
"rand_core/std",
"monero-io/std", "monero-io/std",
"monero-generators/std", "monero-generators/std",
"monero-primitives/std", "monero-primitives/std",
"monero-mlsag/std", "monero-mlsag/std",
"monero-clsag/std", "monero-clsag/std",
"monero-borromean/std",
"monero-bulletproofs/std", "monero-bulletproofs/std",
] ]

View File

@@ -7,6 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/coins/monero/verif
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
edition = "2021" edition = "2021"
rust-version = "1.79" rust-version = "1.79"
publish = false
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
@@ -16,8 +17,6 @@ rustdoc-args = ["--cfg", "docsrs"]
workspace = true workspace = true
[dependencies] [dependencies]
std-shims = { path = "../../../common/std-shims", version = "^0.1.1", default-features = false }
rand_core = { version = "0.6", default-features = false, features = ["std"] } rand_core = { version = "0.6", default-features = false, features = ["std"] }
curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize"] } curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize"] }

View File

@@ -248,7 +248,8 @@ async fn main() {
let args = std::env::args().collect::<Vec<String>>(); let args = std::env::args().collect::<Vec<String>>();
// Read start block as the first arg // Read start block as the first arg
let mut block_i = args.get(1).expect("no start block specified").parse::<usize>().expect("invalid start block"); let mut block_i =
args.get(1).expect("no start block specified").parse::<usize>().expect("invalid start block");
// How many blocks to work on at once // How many blocks to work on at once
let async_parallelism: usize = let async_parallelism: usize =