Skip to content

Crates.io release preparations#347

Merged
bkontur merged 21 commits into
mainfrom
bko-crates-release-prep
Apr 17, 2026
Merged

Crates.io release preparations#347
bkontur merged 21 commits into
mainfrom
bko-crates-release-prep

Conversation

@bkontur
Copy link
Copy Markdown
Collaborator

@bkontur bkontur commented Mar 24, 2026

Summary

Prepare local crates for publishing to crates.io.

  • Inline emulated chain definitions: Remove westend-emulated-chain and asset-hub-westend-emulated-chain git dependencies (not published to crates.io). Define Westend relay chain and Asset Hub Westend parachain configurations locally in integration-tests/src/chains/, with simplified genesis configs.
  • Rename crates with bulletin- prefix (no package aliases):
    • pallets-commonbulletin-pallets-common
    • pallet-transaction-storagepallet-bulletin-transaction-storage
    • transaction-storage-primitivesbulletin-transaction-storage-primitives
  • Publish settings: Mark three crates as publishable, all others as publish = false
  • Crate metadata: Add homepage, readme, description, LICENSE (Apache-2.0) for publishable crates

Publishable crates

Crate Version
bulletin-pallets-common 0.1.0
pallet-bulletin-transaction-storage 0.1.0
bulletin-transaction-storage-primitives 0.1.0

Remaining work

  • Migrate all Polkadot SDK workspace dependencies from git refs to crates.io versions (required before actual publishing) - either stable2512 or stable2603
  • Add version to workspace path deps for the three publishable crates

TODO

bkontur added 9 commits March 24, 2026 09:51
Rename `pallet-transaction-storage` to `pallet-bulletin-transaction-storage`
and `transaction-storage-primitives` to `bulletin-transaction-storage-primitives`
to prepare for publishing to crates.io. Uses workspace `package` aliases so all
internal consumers continue referencing the old dependency keys unchanged.
Add `homepage` to workspace package metadata and use `homepage.workspace = true`
in pallet-bulletin-transaction-storage, replacing the old substrate.io link.
Remove `westend-emulated-chain` and `asset-hub-westend-emulated-chain`
dependencies since they are not published to crates.io. Instead, define
the emulated chain configurations locally in the integration tests under
`src/chains/`, with simplified genesis configs containing only what the
Bulletin XCM tests need.
Use full crate names directly instead of package aliases:
- pallets-common → bulletin-pallets-common
- pallet-transaction-storage → pallet-bulletin-transaction-storage
- transaction-storage-primitives → bulletin-transaction-storage-primitives

Rename weight files and update all Cargo.toml and Rust source references
accordingly.
- Add homepage, readme fields to bulletin-pallets-common and
  bulletin-transaction-storage-primitives
- Add README.md for bulletin-pallets-common and
  bulletin-transaction-storage-primitives
- Update pallet-bulletin-transaction-storage README.md
- Mark non-publishable crates with publish = false
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the copies of these?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the copies of these?

@karolk91 because it is not released in crates.io by stable PolkadotSDK branches

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the copies of these?

@karolk91 because it is not released in crates.io by stable PolkadotSDK branches

because of this follow-up PR, where I need to change deps to stables from crates.io: #368

bkontur added 3 commits April 2, 2026 22:21
Update references from `pallet_transaction_storage` to
`pallet_bulletin_transaction_storage` in both runtimes' benchmark code.
@bkontur bkontur enabled auto-merge (squash) April 17, 2026 12:59
@bkontur bkontur merged commit 80126a8 into main Apr 17, 2026
29 checks passed
@bkontur bkontur deleted the bko-crates-release-prep branch April 17, 2026 19:53
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