Skip to content

chore: prepare core crates for crates.io publishing#198

Merged
YuanYuYuan merged 1 commit into
mainfrom
dev/publish-crates
Jun 12, 2026
Merged

chore: prepare core crates for crates.io publishing#198
YuanYuYuan merged 1 commit into
mainfrom
dev/publish-crates

Conversation

@YuanYuYuan

Copy link
Copy Markdown
Collaborator

Summary

  • Add license, repository to [workspace.package]; all core crates inherit via .workspace = true
  • Add full crates.io metadata (description, keywords, categories) to hiroz-cdr, hiroz-derive, hiroz-schema, hiroz-codegen, and hiroz
  • Fix invalid category slug roboticsscience::robotics
  • Add version = "0.1.0" to all workspace member deps (crates.io rejects path-only and wildcard * deps)
  • Add hiroz-derive to [workspace.dependencies]
  • Mark tool/application crates publish = false: hiroz-console, hiroz-bridge, hiroz-py, hiroz-msgs, rmw-zenoh-rs
  • Add build.rs to hiroz-codegen's include list (required so downstream users get cfg(ros_humble) detection)
  • Add [package.metadata.docs.rs] to hiroz with features = ["jazzy", "rmw-zenoh", "dynamic-schema-loader"]
  • Add publish-crates job to release.yml: runs after smoke-test-release-install, uses OIDC trusted publishing, calls cargo publish --workspace

Key Changes

  • cargo publish --workspace --dry-run passes for all six core crates
  • All six crates are already live on crates.io at 0.1.0 (first publish done manually)
  • Subsequent releases will publish automatically via the new workflow job once Trusted Publishing is configured on crates.io for each crate

Breaking Changes

None

@YuanYuYuan YuanYuYuan force-pushed the dev/publish-crates branch 3 times, most recently from 02a6e21 to 483fb28 Compare June 12, 2026 08:03
- Add license and repository to [workspace.package]
- Add crates.io metadata (description, license, repository, keywords,
  categories) to hiroz-cdr, hiroz-derive, hiroz-schema, hiroz-codegen,
  and hiroz
- Fix category slug: robotics -> science::robotics
- Add version = "0.1.0" to all workspace member deps (crates.io
  rejects path-only and wildcard deps)
- Add hiroz-derive to [workspace.dependencies]
- Mark tool/app crates publish = false (hiroz-console, hiroz-bridge,
  hiroz-py, hiroz-msgs, rmw-zenoh-rs)
- Add build.rs to hiroz-codegen include list (required for cfg(ros_humble))
- Add [package.metadata.docs.rs] to hiroz (jazzy + dynamic-schema-loader)
- Add publish-crates job to release.yml using OIDC trusted publishing
@YuanYuYuan YuanYuYuan force-pushed the dev/publish-crates branch from 483fb28 to b455539 Compare June 12, 2026 13:26
@YuanYuYuan YuanYuYuan merged commit 76ff6b5 into main Jun 12, 2026
26 checks passed
@YuanYuYuan YuanYuYuan deleted the dev/publish-crates branch June 12, 2026 13:58
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.

1 participant