Skip to content

Rust::com Move Rust Public API to com/rust#736

Merged
castler merged 17 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Public_API_Move_from_Impl
Jul 27, 2026
Merged

Rust::com Move Rust Public API to com/rust#736
castler merged 17 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Public_API_Move_from_Impl

Conversation

@bharatGoswami8

@bharatGoswami8 bharatGoswami8 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Moves the Rust COM public API from the internal impl/rust/ folder to a proper public location at com/rust.

  • New targets created at rust (score_com, score_com_concept, score_com_macros, score_com_cpp_bridge)
    - Old targets support is not there.
  • Internal type names prefixed with Lola/Mock to avoid clashes with public trait names (e.g. Publisher - LolaPublisher)
  • Docs and examples updated to reference the new paths
  • Golden file ordering for the visibility guard test
  • Changes from the original text: com_api - score_com.

#732

@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Public_API_Move_from_Impl branch 3 times, most recently from cfafd1d to 2834d35 Compare July 21, 2026 11:42
@bharatGoswami8 bharatGoswami8 self-assigned this Jul 21, 2026
@bharatGoswami8 bharatGoswami8 changed the title Rust::com Move rust Public API to com/rust Rust::com Move Rust Public API to com/rust Jul 21, 2026
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Public_API_Move_from_Impl branch from ba3f4cf to 816ba87 Compare July 21, 2026 16:43
@bharatGoswami8
bharatGoswami8 marked this pull request as ready for review July 21, 2026 16:45
Comment on lines +114 to +117
//score/mw/com/rust/com-api-macros:com-api-macros
//score/mw/com/rust/concept:concept
//score/mw/com/rust/ffi_bridge:register_interface
//score/mw/com/rust:api

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMHO it would be good to have only one crate here and we should name it:

//score/mw/com/rust:score_com

@bharatGoswami8 bharatGoswami8 Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We actually really need this two

//score/mw/com/rust/ffi_bridge:register_interface (c++ bridge)
//score/mw/com/rust:api (rust)

The other two targets are already imported by //score/mw/com/rust:api, so users can access them through that target.

Since both of these are part of the public interface, I kept their visibility as public.

Regarding the naming, we're already directly under the score/com folder, so I think using the name score_com is redundant.

@bharatGoswami8 bharatGoswami8 Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have updated quality/visibility_guard/public_targets.golden and target visibility.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated to //score/mw/com/rust:com_api

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated to //score/mw/com/rust:score_com

Comment thread score/mw/com/example/com-api-example/com-api-gen/vehicle_gen.cpp
Comment thread score/mw/com/rust/design/high_level_design_detail.md

@rpreddyhv rpreddyhv left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Few early review finding

Comment thread score/mw/com/example/com-api-example/com-api-gen/vehicle_gen.cpp
Comment thread score/mw/com/rust/score_com_cpp_bridge/BUILD
Comment thread score/mw/com/rust/score_com_macros/lib.rs
Comment thread score/mw/com/example/com-api-example/BUILD Outdated

@LittleHuba LittleHuba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your migration aliases fall short. While they point to the right targets, the types in the targets were renamed.
I see two sensible ways forward:

  1. Drop the aliases completely. We do not provide a migration path. This API was never communicated as stable to our users.
  2. Provide actual migration shims where you not only alias the right bazel target but also alias all types within.

I'm fine with either as long as you don't do something in the middle.

Comment thread score/mw/com/rust/BUILD
Comment thread score/mw/com/impl/rust/com-api/com-api-runtime-lola/runtime.rs
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Public_API_Move_from_Impl branch from 09a3b4d to 3a14981 Compare July 23, 2026 09:29
@bharatGoswami8

Copy link
Copy Markdown
Contributor Author

Your migration aliases fall short. While they point to the right targets, the types in the targets were renamed. I see two sensible ways forward:

  1. Drop the aliases completely. We do not provide a migration path. This API was never communicated as stable to our users.
  2. Provide actual migration shims where you not only alias the right bazel target but also alias all types within.

I'm fine with either as long as you don't do something in the middle.

@LittleHuba , I think better to remove aliases, as we already notified on slack channel to adapt as per updated bazel target.

@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Public_API_Move_from_Impl branch from 33b07c0 to 5d64d21 Compare July 24, 2026 09:21
* Mock Runtime dependecy removed from production target
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Public_API_Move_from_Impl branch 6 times, most recently from d043f58 to 4917621 Compare July 27, 2026 04:16
* Updated main crate name as score_crate
* CPP macro target updated
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Public_API_Move_from_Impl branch from 4917621 to f15e1dd Compare July 27, 2026 04:20
@castler
castler added this pull request to the merge queue Jul 27, 2026
Merged via the queue into eclipse-score:main with commit b72c3d9 Jul 27, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in COM - Communication FT Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants