Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ ignore = [
# an optional subxt feature this crate never enables, so it is in Cargo.lock
# but never compiled. Every smoldot release pins ruzstd ^0.8.
"RUSTSEC-2026-0344",
# crypto-bigint 0.5.5 timing variability (constant-time arithmetic). The
# patched line is >=0.7.6 and there is no 0.5 or 0.6 fix. elliptic-curve
# 0.13.8 requires crypto-bigint ^0.5, k256 0.13.4 requires that
# elliptic-curve, and every published sp-core through 43.0.0 requires
# k256 ^0.13.4. Cargo cannot select 0.7 while those crates stay.
"RUSTSEC-2026-0387",
]
45 changes: 43 additions & 2 deletions .github/workflows/create-release-tag-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,49 @@ jobs:
# (rustup >=1.28 no longer auto-installs the active toolchain).
- uses: ./.github/actions/ubuntu

- name: Publish to crates.io
- name: Publish circuit crates, crystals, then quantus-cli
run: |
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --allow-dirty
set -eo pipefail
# Path dependencies are rewritten to their version requirements on
# publish, so each crate must already be on crates.io. A later CLI
# release finds 4.5.0 / 4.2.0 already uploaded and continues.
publish_one() {
local manifest="$1"
local attempt output status
echo "Publishing $manifest"
for attempt in 1 2 3 4 5 6 7 8; do
set +e
output=$(cargo publish --manifest-path "$manifest" --token "$CARGO_REGISTRY_TOKEN" --allow-dirty 2>&1)
status=$?
set -e
printf '%s\n' "$output"
if [ "$status" -eq 0 ]; then
return 0
fi
if printf '%s\n' "$output" | grep -Eqi 'already uploaded|already exists'; then
echo "Already published, continuing"
return 0
fi
if [ "$attempt" -eq 8 ]; then
exit "$status"
fi
echo "Publish failed (attempt $attempt); waiting for the crates.io index"
sleep 30
done
}
publish_one third_party/qp-zk-circuits/wormhole/inputs/Cargo.toml
publish_one third_party/qp-zk-circuits/common/Cargo.toml
publish_one third_party/qp-zk-circuits/wormhole/circuit/Cargo.toml
publish_one third_party/qp-zk-circuits/wormhole/prover/Cargo.toml
publish_one third_party/qp-zk-circuits/wormhole/verifier/Cargo.toml
publish_one third_party/qp-zk-circuits/wormhole/aggregator/Cargo.toml
publish_one third_party/qp-zk-circuits/wormhole/circuit-builder/Cargo.toml
publish_one third_party/qp-zk-circuits/ownership/inputs/Cargo.toml
publish_one third_party/qp-zk-circuits/ownership/circuit/Cargo.toml
publish_one third_party/qp-zk-circuits/ownership/prover/Cargo.toml
publish_one third_party/qp-rusty-crystals/dilithium/Cargo.toml
publish_one third_party/qp-rusty-crystals/hdwallet/Cargo.toml
publish_one third_party/qp-dilithium-crypto/Cargo.toml
publish_one Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading
Loading