Skip to content

Commit

Permalink
Merge pull request #1084 from plebhash/patch-protocols-versioning
Browse files Browse the repository at this point in the history
bump protocols versioning
  • Loading branch information
plebhash authored Aug 9, 2024
2 parents 9bb8f15 + ee0a936 commit d376b17
Show file tree
Hide file tree
Showing 22 changed files with 335 additions and 56 deletions.
2 changes: 1 addition & 1 deletion benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ serde_json = { version = "1.0.64", default-features = false, features = ["alloc"
iai="0.1"
mining_sv2 = { path = "../protocols/v2/subprotocols/mining", version = "^1.0.0" }
roles_logic_sv2 = { path = "../protocols/v2/roles-logic-sv2", version = "^1.0.0" }
framing_sv2 = { version = "1.1.0", path = "../protocols/v2/framing-sv2" }
framing_sv2 = { version = "2.0.0", path = "../protocols/v2/framing-sv2" }
serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
num-bigint = "0.4.3"
num-traits = "0.2.15"
Expand Down
6 changes: 3 additions & 3 deletions protocols/Cargo.lock

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

6 changes: 3 additions & 3 deletions protocols/v2/codec-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codec_sv2"
version = "1.2.0"
version = "1.2.1"
authors = ["fi3 <[email protected]>"]
edition = "2018"
description = "Sv2 data format"
Expand All @@ -9,10 +9,10 @@ repository = "https://github.com/stratum-mining/stratum"

[dependencies]
serde = { version = "1.0.89", default-features = false, optional = true }
framing_sv2 = { version = "1.1.0", path = "../../../protocols/v2/framing-sv2" }
framing_sv2 = { version = "^2.0.0", path = "../../../protocols/v2/framing-sv2" }
noise_sv2 = { version = "1.0", path = "../../../protocols/v2/noise-sv2", optional=true}
binary_sv2 = { version = "1.0.0", path = "../../../protocols/v2/binary-sv2/binary-sv2" }
const_sv2 = { version = "1.0.0", path = "../../../protocols/v2/const-sv2"}
const_sv2 = { version = "2.0.0", path = "../../../protocols/v2/const-sv2"}
buffer_sv2 = { version = "1.0.0", path = "../../../utils/buffer"}
tracing = { version = "0.1"}

Expand Down
2 changes: 2 additions & 0 deletions protocols/v2/codec-sv2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![cfg_attr(feature = "no_std", no_std)]

pub use framing_sv2::framing::Frame;

extern crate alloc;

#[cfg(feature = "noise_sv2")]
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/const-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "const_sv2"
version = "1.0.0"
version = "2.0.0"
authors = ["fi3 <[email protected]>"]
edition = "2018"
description = "Sv2 constatnts"
Expand Down
4 changes: 2 additions & 2 deletions protocols/v2/framing-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "framing_sv2"
version = "1.1.0"
version = "2.0.0"
authors = ["fi3 <[email protected]>"]
edition = "2018"
description = "Sv2 frames"
Expand All @@ -12,7 +12,7 @@ repository = "https://github.com/stratum-mining/stratum"

[dependencies]
serde = { version = "1.0.89", default-features = false, optional = true }
const_sv2 = { version = "^1.0.0", path = "../../../protocols/v2/const-sv2"}
const_sv2 = { version = "^2.0.0", path = "../../../protocols/v2/const-sv2"}
binary_sv2 = { version = "^1.0.0", path = "../../../protocols/v2/binary-sv2/binary-sv2" }
buffer_sv2 = { version = "^1.0.0", path = "../../../utils/buffer", optional=true }

Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/noise-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rand = {version = "0.8.5", default-features = false, features = ["std","std_rng"
aes-gcm = "0.10.2"
chacha20poly1305 = "0.10.1"
rand_chacha = "0.3.1"
const_sv2 = { version = "^1.0.0", path = "../../../protocols/v2/const-sv2"}
const_sv2 = { version = "^2.0.0", path = "../../../protocols/v2/const-sv2"}

[dev-dependencies]
quickcheck = "1.0.3"
Expand Down
4 changes: 2 additions & 2 deletions protocols/v2/roles-logic-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ common_messages_sv2 = { path = "../../../protocols/v2/subprotocols/common-messag
mining_sv2 = { path = "../../../protocols/v2/subprotocols/mining", version = "^1.0.0" }
template_distribution_sv2 = { path = "../../../protocols/v2/subprotocols/template-distribution", version = "^1.0.1" }
job_declaration_sv2 = { path = "../../../protocols/v2/subprotocols/job-declaration", version = "^1.0.0" }
const_sv2 = { version = "^1.0.0", path = "../../../protocols/v2/const-sv2"}
framing_sv2 = { version = "^1.1.0", path = "../../../protocols/v2/framing-sv2" }
const_sv2 = { version = "^2.0.0", path = "../../../protocols/v2/const-sv2"}
framing_sv2 = { version = "^2.0.0", path = "../../../protocols/v2/framing-sv2" }
tracing = { version = "0.1"}
chacha20poly1305 = { version = "0.10.1"}
nohash-hasher = "0.2.0"
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 @@ -12,7 +12,7 @@ repository = "https://github.com/stratum-mining/stratum"
[dependencies]
serde = { version = "1.0.89", default-features = false, optional= true }
binary_sv2 = {version = "^1.0.0", path = "../../../../protocols/v2/binary-sv2/binary-sv2" }
const_sv2 = {version = "^1.0.0", path = "../../../../protocols/v2/const-sv2"}
const_sv2 = {version = "^2.0.0", path = "../../../../protocols/v2/const-sv2"}
quickcheck = { version = "1.0.3", optional=true }
quickcheck_macros = { version = "1", optional=true }
serde_repr = {version= "0.1.10", 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 @@ -11,7 +11,7 @@ repository = "https://github.com/stratum-mining/stratum"
[dependencies]
serde = { version = "1.0.89", default-features = false, optional= true }
binary_sv2 = {version = "^1.0.0", path = "../../../../protocols/v2/binary-sv2/binary-sv2" }
const_sv2 = {version = "^1.0.0", path = "../../../../protocols/v2/const-sv2"}
const_sv2 = {version = "^2.0.0", path = "../../../../protocols/v2/const-sv2"}

[features]
no_std = []
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/subprotocols/mining/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/stratum-mining/stratum"
[dependencies]
serde = { version = "1.0.89", default-features = false, optional= true }
binary_sv2 = {version = "^1.0.0", path = "../../../../protocols/v2/binary-sv2/binary-sv2" }
const_sv2 = {version = "^1.0.0", path = "../../../../protocols/v2/const-sv2"}
const_sv2 = {version = "^2.0.0", path = "../../../../protocols/v2/const-sv2"}

[dev-dependencies]
quickcheck = "1.0.3"
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 @@ -12,7 +12,7 @@ repository = "https://github.com/stratum-mining/stratum"
[dependencies]
serde = { version = "1.0.89", default-features = false, optional= true }
binary_sv2 = { version = "^1.0.0", path = "../../../../protocols/v2/binary-sv2/binary-sv2" }
const_sv2 = { version = "^1.0.0", path = "../../../../protocols/v2/const-sv2"}
const_sv2 = { version = "^2.0.0", path = "../../../../protocols/v2/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 @@ -12,7 +12,7 @@ crate-type = ["staticlib"]

[dependencies]
codec_sv2 = { path = "../../../protocols/v2/codec-sv2", version = "^1.0.0" }
const_sv2 = { path = "../../../protocols/v2/const-sv2", version = "^1.0.0" }
const_sv2 = { path = "../../../protocols/v2/const-sv2", version = "^2.0.0" }
binary_sv2 = { path = "../../../protocols/v2/binary-sv2/binary-sv2", version = "^1.0.0" }
common_messages_sv2 = { path = "../../../protocols/v2/subprotocols/common-messages", version = "^1.0.0" }
template_distribution_sv2 = { path = "../../../protocols/v2/subprotocols/template-distribution", version = "^1.0.1" }
Expand Down
Loading

0 comments on commit d376b17

Please sign in to comment.