Skip to content

chore: release 0.48.1 — derive CandidType for delegation types#736

Merged
lwshang merged 1 commit into
mainfrom
chore/release-0.48.1
Jul 7, 2026
Merged

chore: release 0.48.1 — derive CandidType for delegation types#736
lwshang merged 1 commit into
mainfrom
chore/release-0.48.1

Conversation

@lwshang

@lwshang lwshang commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Prepares the 0.48.1 release (targeting 2026-07-07).

Follow-up to #734: derive candid::CandidType for Delegation, SignedDelegation, and DelegationPermissions so downstreams can use them directly in Candid interfaces (e.g. matching Internet Identity's Delegation/SignedDelegation).

Changes

  • ic-transport-types: added CandidType to the derives on Delegation, SignedDelegation, DelegationPermissions. Generated Candid:
    type Delegation = record { pubkey: blob; expiration: nat64; targets: opt vec principal; permissions: opt DelegationPermissions };
    type SignedDelegation = record { delegation: Delegation; signature: blob };
    type DelegationPermissions = variant { queries; all };
    
    The serde_bytes byte fields map to blob, serde renames are honored, and the extra permissions field is opt — so the encoding stays Candid-subtype-compatible with delegation interfaces that omit it.
  • Version bump 0.48.00.48.1 (workspace version + internal path-dep pins in Cargo.toml, Cargo.lock refreshed).
  • CHANGELOG.md: new ## [0.48.1] - 2026-07-07 section.

This is a purely additive trait impl — no breaking changes.

Verification

  • cargo build --workspace --locked
  • cargo test -p ic-transport-types ✅ (12 passed)
  • cargo clippy -p ic-transport-types ✅ (clean)

Release steps after merge

  • Merge to main
  • Manually dispatch the Publish to crates.io workflow (workflow_dispatch) — publishes in dependency order, idempotent/retry-safe

🤖 Generated with Claude Code

Derive candid::CandidType for Delegation, SignedDelegation, and
DelegationPermissions so they can be used directly in Candid interfaces
(e.g. matching Internet Identity's Delegation/SignedDelegation types).
The byte fields map to blob and DelegationPermissions to
`variant { queries; all }`; the added permissions field is opt, so the
encoding stays subtype-compatible with delegation interfaces that omit it.

Bump the workspace version 0.48.0 -> 0.48.1 (additive trait impl, no
breaking changes) and record the change in CHANGELOG.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lwshang lwshang marked this pull request as ready for review July 7, 2026 14:56
@lwshang lwshang requested a review from a team as a code owner July 7, 2026 14:56
@zeropath-ai

zeropath-ai Bot commented Jul 7, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to 6407a85.

Security Overview
Detected Code Changes
Change Type Relevant files
Enhancement ► ic-transport-types/src/lib.rs
      Derive CandidType for Delegation, DelegationPermissions, and SignedDelegation

@lwshang lwshang merged commit 3ac041c into main Jul 7, 2026
16 checks passed
@lwshang lwshang deleted the chore/release-0.48.1 branch July 7, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants