Skip to content

Commit

Permalink
scrypto 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz2891 committed Nov 28, 2024
1 parent 2204d17 commit 469eb96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/rust-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Set up Rust PATH
run: echo "$HOME/.cargo/bin:$PATH" >> $GITHUB_PATH
Expand Down
11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,21 @@ crypto_secp256k1 = ["secp256k1/recovery", "secp256k1/lowmemory", "secp256k1/allo
crypto_k256 = ["k256/alloc", "k256/sha256", "k256/ecdsa"]

# A variant of decrypting the message-signers using Radix library.
crypto_radix = ["scrypto", "radix-common", "secp256k1/lowmemory", "getrandom/js"]
crypto_radix = ["scrypto", "radix-common", "secp256k1/lowmemory"]

# A set of helpers for testing & offline usage.
helpers = ["hex/serde", "hex/alloc"]

[dependencies]
casper-contract = { version = "^4.0.0", default-features = false, features = [], optional = true }
casper-types = { version = "^4.0.2", default-features = false, features = [], optional = true }
radix-common = { workspace = true, default-features = false, features = [], optional = true }
scrypto = { workspace = true, default-features = false, features = ["alloc"], optional = true }
radix-common = { version = "^1.3.0", default-features = false, features = [], optional = true }
scrypto = { version = "^1.3.0", optional = true }
sha3 = { version = "^0.10.8", default-features = false, features = ["asm"] }
k256 = { version = "^0.13.3", default-features = false, features = [], optional = true }
secp256k1 = { version = "^0.28.0", default-features = false, features = [], optional = true }
k256 = { version = "^0.13.4", default-features = false, features = [], optional = true }
secp256k1 = { version = "^0.30.0", default-features = false, features = [], optional = true }
hex = { version = "^0.4.3", default-features = false, features = [], optional = true }
primitive-types = { version = "^0.13.1", optional = true }
getrandom = { version = "0.2.15", optional = true, default-features = false }

[dev-dependencies]
itertools = { version = "^0.13.0" }
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
CLIPPY=cargo clippy --release --fix --allow-dirty --allow-staged
DOC=cargo doc --no-deps --document-private-items
TEST=RUST_BACKTRACE=full cargo test --features="helpers"
FEATURE_SETS="crypto_k256" "crypto_k256,network_casper" "crypto_secp256k1" "crypto_secp256k1,network_casper" "crypto_secp256k1" "crypto_secp256k1,network_radix"
FEATURE_SETS="crypto_k256" "crypto_k256,network_casper" "crypto_secp256k1" "crypto_secp256k1,network_casper" "crypto_radix" "crypto_radix,network_radix"

prepare:
@rustup target add wasm32-unknown-unknown

test: clippy
# $(TEST) --features="crypto_radix,network_radix"
# $(TEST) --features="crypto_radix"
@for features in $(FEATURE_SETS); do \
echo "Running tests with features: $$features"; \
($(TEST) --features=$$features); \
Expand Down

0 comments on commit 469eb96

Please sign in to comment.