Skip to content

Commit

Permalink
Fixes for publishing entropy-tss and entropy-testing-utils (#837)
Browse files Browse the repository at this point in the history
* Remove dev-dependecy versions for `entropy-tss`

* Allow publishing the `testing-utils` crate

* Fix typo

* Improve cyclical dependency explanation text

* TaploFmt

* Allow `entropy-testing-utils` in license checks
  • Loading branch information
HCastano committed May 16, 2024
1 parent 078e9cb commit 68799eb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
3 changes: 1 addition & 2 deletions crates/testing-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[package]
name ="entropy-testing-utils"
description="Utiliites for testing the Entropy Threshold Signature Server"
description="Utilities for testing the Entropy Threshold Signature Server"
version ='0.1.0-rc.1'
authors =['Entropy Cryptography <engineering@entropy.xyz>']
homepage ='https://entropy.xyz/'
license ='AGPL-3.0-or-later'
repository ='https://github.com/entropyxyz/entropy-core'
edition ='2021'
publish =false

[dependencies]
subxt ="0.35.3"
Expand Down
32 changes: 20 additions & 12 deletions crates/threshold-signature-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,27 @@ sha2 ="0.10.8"
hkdf ="0.12.4"

[dev-dependencies]
entropy-testing-utils={ version="0.1.0-rc.1", path="../testing-utils" }
serial_test ="3.1.1"
hex-literal ="0.4.1"
project-root ="0.2.2"
sp-keyring ="34.0.0"
more-asserts ="0.3.1"
lazy_static ="1.4.0"
entropy-protocol ={ version="0.1.0-rc.1", path="../protocol", features=["unsafe"] }
blake3 ="1.5.1"
ethers-core ="2.0.14"
schnorrkel ={ version="0.11.4", default-features=false, features=["std"] }
serial_test ="3.1.1"
hex-literal ="0.4.1"
project-root="0.2.2"
sp-keyring ="34.0.0"
more-asserts="0.3.1"
lazy_static ="1.4.0"
blake3 ="1.5.1"
ethers-core ="2.0.14"
schnorrkel ={ version="0.11.4", default-features=false, features=["std"] }
schemars ={ version="0.8.19" }

# Note: We don't specify versions here because otherwise we run into a cyclical dependency between
# `entropy-tss` and `entropy-testing-utils` when we try and publish the `entropy-tss` crate.
#
# By not specifying a version Cargo automatically removes these crates before publishing, allowing
# the process to succeed.
#
# See: https://github.com/rust-lang/cargo/issues/4242
entropy-client ={ path="../client", features=["full-client-native"] }
schemars ={ version="0.8.19" }
entropy-protocol ={ path="../protocol", features=["unsafe"] }
entropy-testing-utils={ path="../testing-utils" }

[build-dependencies]
vergen={ version="8.0.0", features=["build", "git", "gitcl"] }
Expand Down
3 changes: 2 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ exceptions=[
{ allow=["AGPL-3.0"], name="entropy-kvdb" },
{ allow=["AGPL-3.0"], name="entropy-protocol" },
{ allow=["AGPL-3.0"], name="entropy-shared" },
{ allow=["AGPL-3.0"], name="entropy-test-cli" },
{ allow=["AGPL-3.0"], name="entropy-tss" },
{ allow=["AGPL-3.0"], name="entropy-client" },
{ allow=["AGPL-3.0"], name="entropy-testing-utils" },
{ allow=["AGPL-3.0"], name="entropy-test-cli" },

# Other Entropy crates
{ allow=["AGPL-3.0"], name="entropy-programs-core" },
Expand Down

0 comments on commit 68799eb

Please sign in to comment.