Skip to content

Commit

Permalink
move binary_sv2 crate code up..
Browse files Browse the repository at this point in the history
there's no point in having two directories named binary_sv2 anymore
  • Loading branch information
plebhash committed Feb 7, 2025
1 parent 93bef4a commit 9511a53
Show file tree
Hide file tree
Showing 32 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Rust Docs crate binary_sv2
run: |
cd protocols/v2/binary-sv2/binary-sv2
cd protocols/v2/binary-sv2
cargo doc --features core,with_buffer_pool
- name: Rust Docs crate const_sv2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Publish crate binary_sv2
run: |
./scripts/release-libs.sh protocols/v2/binary-sv2/binary-sv2
./scripts/release-libs.sh protocols/v2/binary-sv2
- name: Publish crate const_sv2
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/semver-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
working-directory: protocols/v2/binary-sv2/codec
run: cargo semver-checks

- name: Run semver checks for protocols/v2/binary-sv2/binary-sv2
working-directory: protocols/v2/binary-sv2/binary-sv2
- name: Run semver checks for protocols/v2/binary-sv2
working-directory: protocols/v2/binary-sv2
run: cargo semver-checks

- name: Run semver checks for protocols/v2/const-sv2
Expand Down
2 changes: 1 addition & 1 deletion benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ num-bigint = "0.4.3"
num-traits = "0.2.15"
bitcoin="0.28.1"
codec_sv2 = { path = "../protocols/v2/codec-sv2", features=["noise_sv2"] }
binary_sv2 = { path = "../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../protocols/v2/binary-sv2" }
network_helpers_sv2 = { path = "../roles/roles-utils/network-helpers" }
rand = "0.8.4"

Expand Down
2 changes: 1 addition & 1 deletion examples/interop-cpp-no-cargo/rust-build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ rustc \
rustc \
--crate-name binary_sv2 \
--edition=2018 \
$ROOT/binary-sv2/binary-sv2/src/lib.rs \
$ROOT/binary-sv2/src/lib.rs \
--error-format=json \
--json=diagnostic-rendered-ansi,artifacts \
--crate-type lib \
Expand Down
2 changes: 1 addition & 1 deletion examples/interop-cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ publish = false
[dependencies]
codec_sv2 = { path = "../../protocols/v2/codec-sv2" }
const_sv2 = { path = "../../protocols/v2/const-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
common_messages_sv2 = { path = "../../protocols/v2/subprotocols/common-messages" }
template_distribution_sv2 = { path = "../../protocols/v2/subprotocols/template-distribution" }
2 changes: 1 addition & 1 deletion examples/ping-pong-encrypted/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [ "SRI Community" ]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = [ "noise_sv2" ] }
noise_sv2 = { path = "../../protocols/v2/noise-sv2" }
key-utils = { version = "^1.0.0", path = "../../utils/key-utils" }
Expand Down
2 changes: 1 addition & 1 deletion examples/ping-pong/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [ "SRI Community" ]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2" }

rand = "0.8"
2 changes: 1 addition & 1 deletion protocols/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
"v1",
"v2/binary-sv2/codec",
"v2/binary-sv2/derive_codec",
"v2/binary-sv2/binary-sv2",
"v2/binary-sv2",
"v2/noise-sv2",
"v2/framing-sv2",
"v2/codec-sv2",
Expand Down
2 changes: 1 addition & 1 deletion protocols/v1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hex = "0.4.3"
serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0.64", default-features = false, features = ["alloc"] }
tracing = {version = "0.1"}
binary_sv2 = { path = "../v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../v2/binary-sv2" }

[dev-dependencies]
quickcheck = "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_codec_sv2 = { path = "../codec", optional = true }
derive_codec_sv2 = { path = "../derive_codec", optional = true }
binary_codec_sv2 = { path = "codec", optional = true }
derive_codec_sv2 = { path = "derive_codec", optional = true }

[features]
default = ["core"]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion protocols/v2/codec-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
serde = { version = "1.0.89", default-features = false, optional = true }
framing_sv2 = { path = "../../../protocols/v2/framing-sv2" }
noise_sv2 = { path = "../../../protocols/v2/noise-sv2", default-features = false, optional = true }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2" }
const_sv2 = { path = "../../../protocols/v2/const-sv2"}
buffer_sv2 = { path = "../../../utils/buffer"}
rand = { version = "0.8.5", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/framing-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
[dependencies]
serde = { version = "1.0.89", default-features = false, optional = true }
const_sv2 = { path = "../../../protocols/v2/const-sv2" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2" }
buffer_sv2 = { path = "../../../utils/buffer", optional=true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/roles-logic-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]

[dependencies]
stratum-common = { path = "../../../common", features=["bitcoin"]}
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2", default-features = true }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2", default-features = true }
common_messages_sv2 = { path = "../../../protocols/v2/subprotocols/common-messages" }
mining_sv2 = { path = "../../../protocols/v2/subprotocols/mining" }
template_distribution_sv2 = { path = "../../../protocols/v2/subprotocols/template-distribution" }
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/subprotocols/common-messages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_sv2 = { path = "../../binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../binary-sv2" }
const_sv2 = { path = "../../const-sv2" }
quickcheck = { version = "1.0.3", optional = true }
quickcheck_macros = { version = "1", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/subprotocols/job-declaration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]


[dependencies]
binary_sv2 = { path = "../../binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../binary-sv2" }
const_sv2 = { path = "../../const-sv2" }
2 changes: 1 addition & 1 deletion protocols/v2/subprotocols/mining/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_sv2 = { path = "../../binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../binary-sv2" }
const_sv2 = { path = "../../const-sv2"}

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/subprotocols/template-distribution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
binary_sv2 = { path = "../../binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../binary-sv2" }
const_sv2 = { path = "../../const-sv2"}
quickcheck = { version = "1.0.3", optional=true }
quickcheck_macros = { version = "1", optional=true }
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/sv2-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ crate-type = ["staticlib"]
[dependencies]
codec_sv2 = { path = "../../../protocols/v2/codec-sv2" }
const_sv2 = { path = "../../../protocols/v2/const-sv2" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2" }
common_messages_sv2 = { path = "../../../protocols/v2/subprotocols/common-messages" }
template_distribution_sv2 = { path = "../../../protocols/v2/subprotocols/template-distribution" }

Expand Down
2 changes: 1 addition & 1 deletion roles/jd-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/lib/mod.rs"
stratum-common = { path = "../../common" }
async-channel = "1.5.1"
async-recursion = "0.3.2"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
buffer_sv2 = { path = "../../utils/buffer" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
framing_sv2 = { path = "../../protocols/v2/framing-sv2" }
Expand Down
2 changes: 1 addition & 1 deletion roles/jd-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/lib/mod.rs"
[dependencies]
stratum-common = { version = "1.0.0", path = "../../common" }
async-channel = "1.5.1"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
buffer_sv2 = { path = "../../utils/buffer" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2"] }
const_sv2 = { path = "../../protocols/v2/const-sv2" }
Expand Down
2 changes: 1 addition & 1 deletion roles/mining-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ path = "src/lib/mod.rs"
stratum-common = { path = "../../common" }
async-channel = "1.8.0"
async-recursion = "0.3.2"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
buffer_sv2 = { path = "../../utils/buffer" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
const_sv2 = { path = "../../protocols/v2/const-sv2" }
Expand Down
2 changes: 1 addition & 1 deletion roles/pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/lib/mod.rs"
[dependencies]
stratum-common = { path = "../../common" }
async-channel = "1.5.1"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
buffer_sv2 = { path = "../../utils/buffer" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2"] }
const_sv2 = { path = "../../protocols/v2/const-sv2" }
Expand Down
2 changes: 1 addition & 1 deletion roles/roles-utils/network-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
async-std = { version = "1.8.0", optional = true }
async-channel = { version = "1.8.0", optional = true }
tokio = { version = "1", features = ["full"] }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2", optional = true }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2", optional = true }
codec_sv2 = { path = "../../../protocols/v2/codec-sv2", features=["noise_sv2"], optional = true }
const_sv2 = {path = "../../../protocols/v2/const-sv2"}
tracing = { version = "0.1" }
Expand Down
2 changes: 1 addition & 1 deletion roles/test-utils/mining-device/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ codec_sv2 = { path = "../../../protocols/v2/codec-sv2", features=["noise_sv2"] }
roles_logic_sv2 = { path = "../../../protocols/v2/roles-logic-sv2" }
const_sv2 = { path = "../../../protocols/v2/const-sv2" }
async-channel = "1.5.1"
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2" }
network_helpers_sv2 = { path = "../../roles-utils/network-helpers" }
buffer_sv2 = { path = "../../../utils/buffer"}
async-recursion = "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion roles/tests-integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
[dependencies]
async-channel = "1.5.1"
corepc-node = "0.5.0"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2"] }
const_sv2 = { path = "../../protocols/v2/const-sv2" }
flate2 = "1.0.32"
Expand Down
2 changes: 1 addition & 1 deletion roles/translator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ path = "src/main.rs"
stratum-common = { path = "../../common" }
async-channel = "1.5.1"
async-recursion = "0.3.2"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
buffer_sv2 = { path = "../../utils/buffer" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features = ["noise_sv2", "with_buffer_pool"] }
framing_sv2 = { path = "../../protocols/v2/framing-sv2" }
Expand Down
2 changes: 1 addition & 1 deletion scripts/coverage-protocols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ crates=(
"v1"
"v2/binary-sv2/codec"
"v2/binary-sv2/derive_codec"
"v2/binary-sv2/binary-sv2"
"v2/binary-sv2"
"v2/noise-sv2"
"v2/framing-sv2"
"v2/codec-sv2"
Expand Down
2 changes: 1 addition & 1 deletion test/scale/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde = { version = "1.0.89", features = ["derive", "alloc"], default-features =
async-channel = "1.5.1"
async-std="1.8.0"
bytes = "1.0.1"
binary_sv2 = { path = "../../protocols/v2/binary-sv2/binary-sv2" }
binary_sv2 = { path = "../../protocols/v2/binary-sv2" }
codec_sv2 = { path = "../../protocols/v2/codec-sv2", features=["noise_sv2"] }
network_helpers_sv2 = { version = "0.1", path = "../../roles/roles-utils/network-helpers" }
roles_logic_sv2 = { path = "../../protocols/v2/roles-logic-sv2" }
Expand Down

0 comments on commit 9511a53

Please sign in to comment.