Skip to content

Commit

Permalink
Merge protocols and roles workspaces
Browse files Browse the repository at this point in the history
This commits removes the `protocols` and `roles` workspaces and creates
a new shared workspace for both of them. In practice we dont have a need
to maintain two different workspaces and no benefit is derived from
that.

With moving to a shared workspaces, the naming of the parent folders was
changed as will with `roles` becoming `stratum-roles` and `protocols`
becoming `stratum-protocols` and same for `common` crate. This required
a fix a across the codebase of the imports inside the different
`Cargo.toml`s.
  • Loading branch information
jbesraa committed Aug 21, 2024
1 parent 0f0ee1e commit a320023
Show file tree
Hide file tree
Showing 233 changed files with 874 additions and 756 deletions.
861 changes: 605 additions & 256 deletions roles/Cargo.lock → Cargo.lock

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name = "stratum_v2"
version = "1.0.2"
authors = ["The Stratum v2 Developers"]
edition = "2021"
description = ""
documentation = "https://github.com/stratum-mining/stratum"
homepage = "https://stratumprotocol.org"
repository = "https://github.com/stratum-mining/stratum"
license = "MIT + Apache-2.0"
license-file = "LICENSE.md"
keywords = ["stratum", "mining", "bitcoin", "protocol"]

[workspace]
resolver="2"
members = [
# Protocol Crates
"stratum-protocols/v1",
"stratum-protocols/v2/binary-sv2/serde-sv2",
"stratum-protocols/v2/binary-sv2/no-serde-sv2/codec",
"stratum-protocols/v2/binary-sv2/no-serde-sv2/derive_codec",
"stratum-protocols/v2/binary-sv2/binary-sv2",
"stratum-protocols/v2/noise-sv2",
"stratum-protocols/v2/framing-sv2",
"stratum-protocols/v2/codec-sv2",
"stratum-protocols/v2/const-sv2",
"stratum-protocols/v2/subprotocols/common-messages",
"stratum-protocols/v2/subprotocols/template-distribution",
"stratum-protocols/v2/subprotocols/mining",
"stratum-protocols/v2/subprotocols/job-declaration",
"stratum-protocols/v2/sv2-ffi",
"stratum-protocols/v2/roles-logic-sv2",

# Roles Crates
"stratum-roles/mining-proxy",
"stratum-roles/pool",
"stratum-roles/test-utils/mining-device",
"stratum-roles/test-utils/sv1-mining-device",
"stratum-roles/translator",
"stratum-roles/jd-client",
"stratum-roles/jd-server",

# Common Functionality
"stratum-common",
]

[profile.dev]
# Required by super_safe_lock
opt-level = 1

[profile.test]
# Required by super_safe_lock
opt-level = 1

42 changes: 0 additions & 42 deletions protocols/Cargo.toml

This file was deleted.

34 changes: 0 additions & 34 deletions roles/Cargo.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a320023

Please sign in to comment.