Skip to content
Merged
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
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,25 @@ jobs:

- name: Import test
run: .venv/bin/python -c "import hiroz_py; print('hiroz_py install-from-release ok')"

publish-crates:
name: Publish core crates to crates.io
needs: [smoke-test-release-install]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Authenticate with crates.io (trusted publishing)
uses: rust-lang/crates-io-auth-action@v1
id: auth

- name: Publish core crates
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
run: cargo publish --workspace -j4
15 changes: 9 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version = "0.1.0"
edition = "2024"
description = "Native Rust ROS 2 implementation using Zenoh"
homepage = "https://github.com/ZettaScaleLabs/hiroz"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/ZettaScaleLabs/hiroz"

[workspace]
resolver = "2"
Expand All @@ -29,14 +31,15 @@ default-members = ["crates/hiroz", "crates/hiroz-codegen"]

[workspace.dependencies]
# Workspace members
hiroz = { version = "*", path = "crates/hiroz" }
hiroz-codegen = { version = "*", path = "crates/hiroz-codegen" }
hiroz-protocol = { version = "*", path = "crates/hiroz-protocol" }
rmw-zenoh-rs = { version = "*", path = "crates/rmw-zenoh-rs" }
hiroz-schema = { version = "*", path = "crates/hiroz-schema" }
hiroz = { version = "0.1.0", path = "crates/hiroz" }
hiroz-codegen = { version = "0.1.0", path = "crates/hiroz-codegen" }
hiroz-protocol = { version = "0.1.0", path = "crates/hiroz-protocol" }
rmw-zenoh-rs = { version = "0.1.0", path = "crates/rmw-zenoh-rs" }
hiroz-schema = { version = "0.1.0", path = "crates/hiroz-schema" }

# Serialization
hiroz-cdr = { path = "crates/hiroz-cdr" }
hiroz-cdr = { version = "0.1.0", path = "crates/hiroz-cdr" }
hiroz-derive = { version = "0.1.0", path = "crates/hiroz-derive" }
serde = "1.0.219"
serde_bytes = "0.11"
serde_json = "1.0"
Expand Down
1 change: 1 addition & 0 deletions crates/hiroz-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "hiroz-bridge"
version.workspace = true
edition.workspace = true
description = "Bridge between ROS 2 Humble and Jazzy Zenoh networks via key expression translation"
publish = false

[[bin]]
name = "hiroz-bridge"
Expand Down
5 changes: 5 additions & 0 deletions crates/hiroz-cdr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name = "hiroz-cdr"
version.workspace = true
edition.workspace = true
description = "CDR serialization for hiroz"
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords = ["ros2", "zenoh", "cdr", "serialization", "robotics"]
categories = ["encoding", "network-programming"]

[dependencies]
serde = { workspace = true }
Expand Down
7 changes: 7 additions & 0 deletions crates/hiroz-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
name = "hiroz-codegen"
version.workspace = true
edition.workspace = true
description = "Build-time code generator for ROS 2 message, service, and action types"
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords = ["ros2", "zenoh", "codegen", "build", "robotics"]
categories = ["development-tools::build-utils"]

# Include vendored assets in published crate
include = [
"build.rs",
"src/**/*",
"assets/**/*.msg",
"assets/**/*.srv",
Expand Down
1 change: 1 addition & 0 deletions crates/hiroz-console/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2024"
description = "ROS 2 Graph Inspector & Dataflow Monitor TUI"
homepage = "https://github.com/ZettaScaleLabs/hiroz"
default-run = "hiroz-console"
publish = false

[dependencies]
hiroz = { path = "../hiroz", features = ["ros2dds"] }
Expand Down
5 changes: 5 additions & 0 deletions crates/hiroz-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name = "hiroz-derive"
version.workspace = true
edition.workspace = true
description = "Derive macros for hiroz Python bindings"
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords = ["ros2", "zenoh", "derive", "macros", "robotics"]
categories = ["development-tools::procedural-macro-helpers"]

[lib]
proc-macro = true
Expand Down
1 change: 1 addition & 0 deletions crates/hiroz-msgs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "hiroz-msgs"
version.workspace = true
edition.workspace = true
publish = false

[dependencies]
hiroz = { path = "../hiroz", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion crates/hiroz-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "ROS 2 over Zenoh protocol: entity types and key expression format
license = "Apache-2.0 OR MIT"
repository = "https://github.com/ZettaScaleLabs/hiroz"
keywords = ["ros2", "zenoh", "robotics", "middleware", "protocol"]
categories = ["network-programming", "robotics"]
categories = ["network-programming", "science::robotics"]

[features]
default = ["std", "rmw-zenoh"]
Expand Down
1 change: 1 addition & 0 deletions crates/hiroz-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "hiroz-py"
version.workspace = true
edition.workspace = true
publish = false

[lib]
name = "_native"
Expand Down
4 changes: 4 additions & 0 deletions crates/hiroz-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name = "hiroz-schema"
version.workspace = true
edition.workspace = true
description = "ROS 2 type description schema types for hiroz"
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords = ["ros2", "zenoh", "schema", "type-description", "robotics"]
categories = ["encoding", "network-programming"]

[dependencies]
serde = { workspace = true, features = ["derive"] }
Expand Down
14 changes: 12 additions & 2 deletions crates/hiroz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
name = "hiroz"
version = "0.1.0"
edition = "2024"
description = "Native Rust ROS 2 implementation using Zenoh"
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords = ["ros2", "zenoh", "robotics", "middleware", "rclrs"]
categories = ["network-programming", "science::robotics"]

[package.metadata.docs.rs]
features = ["jazzy", "rmw-zenoh", "dynamic-schema-loader"]
rustdoc-args = ["--cfg", "docsrs"]

[lib]
crate-type = ["lib", "staticlib"]
Expand Down Expand Up @@ -34,8 +44,8 @@ prost = { workspace = true, optional = true }
pyo3 = { workspace = true, optional = true }
hiroz-cdr = { workspace = true }
hiroz-codegen = { workspace = true, optional = true }
hiroz-derive = { path = "../hiroz-derive" }
hiroz-protocol = { path = "../hiroz-protocol", default-features = false, features = [
hiroz-derive = { workspace = true }
hiroz-protocol = { path = "../hiroz-protocol", version = "0.1.0", default-features = false, features = [
"std",
] }
hiroz-schema = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions crates/rmw-zenoh-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "rmw-zenoh-rs"
version = "0.1.0"
edition = "2024"
description = "ROS 2 RMW (ROS Middleware) implementation using Zenoh - Requires ROS 2 Iron or later"
publish = false

# IMPORTANT: This crate requires ROS 2 Iron (2023) or later
#
Expand Down
Loading