Skip to content

Commit

Permalink
Merge branch 'main' into try-primitive-from-felt
Browse files Browse the repository at this point in the history
  • Loading branch information
pefontana authored Sep 16, 2024
2 parents 249e8c0 + 7062d13 commit bcb9de4
Show file tree
Hide file tree
Showing 22 changed files with 8,877 additions and 254 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- "main"
pull_request:

name: "Build feature combinations"

jobs:
feature-powerset:
name: "Build ${{ matrix.package }} features"
runs-on: "ubuntu-latest"

strategy:
matrix:
package:
- "starknet-types-core"
- "starknet-types-rpc"

steps:
- name: "Checkout source code"
uses: "actions/checkout@v3"

- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show

- name: "Install cargo-hack"
run: |
cargo install --locked cargo-hack
- name: "Build all feature combinations"
run: |
cargo hack build --package ${{ matrix.package }} --feature-powerset
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- main
tags:
- '*'
# just for manual testing
workflow_dispatch:

name: Publish

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show

- run: cargo publish --token "$CARGO_REGISTRY_TOKEN" -p starknet-types-core
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ authors = [
"Dan Brownstein <@dan-starkware>",
"Federico Carrone <@unbalancedparentheses>",
"Jonathan Lei <@xJonathanLEI>",
"Maciej Kamiński <@maciejka>",
]
edition = "2021"
repository = "https://github.com/starknet-io/types-rs"
6 changes: 3 additions & 3 deletions crates/starknet-types-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "starknet-types-core"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
license = "MIT"
homepage = "https://github.com/starknet-io/types-rs"
repository = "https://github.com/starknet-io/types-rs"
categories = ["types", "math", "crypto"]
categories = ["mathematics", "cryptography"]
keywords = ["stark", "zkp", "cairo"]
description = "Core types representation for Starknet"
readme = "README.md"
Expand Down Expand Up @@ -43,7 +43,7 @@ parity-scale-codec = ["dep:parity-scale-codec"]
serde = ["alloc", "dep:serde"]
prime-bigint = ["dep:lazy_static"]
num-traits = []
papyrus-serialization = []
papyrus-serialization = ["std"]

[dev-dependencies]
proptest = "1.4.0"
Expand Down
Loading

0 comments on commit bcb9de4

Please sign in to comment.