Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

on:
push:
branches: [main]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --locked

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo fmt --all --check

clippy-native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets --locked -- -D warnings

clippy-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup target add wasm32-unknown-unknown
- run: >
cargo clippy --target wasm32-unknown-unknown --locked
-p stroemnet-wasm -p stroemnet-protocol -p stroemnet-data
-p stroemnet-p2p -p stroemnet-handler -p stroemnet-node
-p stroemnet-amounts
-- -D warnings
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ stroemnet.toml
/target
contracts/ethereum/deploy.sh
todo.md
/contracts/ethereum/broadcast
122 changes: 14 additions & 108 deletions Cargo.lock

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

16 changes: 12 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,24 @@ members = [
"crates/storage",
"crates/test-harness",
"crates/wasm",
"crates/data"
"crates/data",
]

[workspace.package]
version = "0.1.0"
version = "1.0.0"
edition = "2024"
license = "MIT"

[workspace.lints.rust]
dead_code = "deny"
unused_must_use = "deny"

[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
indexing_slicing = "deny"

# Centralized `getrandom` specs. Three majors coexist in our dep tree:
# - 0.2 is pulled by older rand_core consumers (rand 0.8, kaspa stack)
# - 0.3 is pulled by newer rand_core consumers (rand 0.9, alloy stack)
Expand All @@ -38,9 +48,7 @@ ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
ahash = "0.8.12"
alloy = { version = "2.0.5", features = ["essentials"] }
alloy-primitives = "1.6.0"
async-channel = "2.5.0"
borsh = { version = "1.6.1", features = ["derive"] }
console_error_panic_hook = "0.1"
futures = "0.3.32"
gloo-net = { version = "0.5", features = ["websocket"] }
gloo-timers = { version = "0.3", features = ["futures"] }
Expand Down
Loading
Loading