Skip to content

Commit

Permalink
Separate lib code from bin in mining-device
Browse files Browse the repository at this point in the history
Isolating the library code into a `lib/mod.rs` and consume it in
`main.rs`.
  • Loading branch information
jbesraa committed Sep 17, 2024
1 parent ab0ddd6 commit a7ffeff
Show file tree
Hide file tree
Showing 4 changed files with 727 additions and 714 deletions.
2 changes: 1 addition & 1 deletion roles/Cargo.lock

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

10 changes: 9 additions & 1 deletion roles/test-utils/mining-device/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
[package]
name = "mining-device"
name = "mining_device"
version = "0.1.1"
edition = "2018"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "mining_device"
path = "src/lib/mod.rs"


[dependencies]
stratum-common = { version = "1.0.0", path = "../../../common" }
codec_sv2 = { version = "^1.0.1", path = "../../../protocols/v2/codec-sv2", features=["noise_sv2"] }
Expand All @@ -24,3 +29,6 @@ tracing = { version = "0.1" }
tracing-subscriber = "0.3"
sha2 = "0.10.6"
tokio = "^1.38.0"

[features]
abort_mining = []
Loading

0 comments on commit a7ffeff

Please sign in to comment.