Rust::com Move Rust Public API to com/rust#736
Conversation
cfafd1d to
2834d35
Compare
ba3f4cf to
816ba87
Compare
| //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 |
There was a problem hiding this comment.
IMHO it would be good to have only one crate here and we should name it:
//score/mw/com/rust:score_com
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
I have updated quality/visibility_guard/public_targets.golden and target visibility.
There was a problem hiding this comment.
Updated to //score/mw/com/rust:com_api
There was a problem hiding this comment.
Updated to //score/mw/com/rust:score_com
5c5d966 to
89c066f
Compare
LittleHuba
left a comment
There was a problem hiding this comment.
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:
- Drop the aliases completely. We do not provide a migration path. This API was never communicated as stable to our users.
- 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.
09a3b4d to
3a14981
Compare
@LittleHuba , I think better to remove aliases, as we already notified on slack channel to adapt as per updated bazel target. |
* Moved Concept crate in com/rust folder * Moved macro also in com/rust folder * Updated backward compatibility for all the moved target * Updated runtime struct according to concept changes
* Moved all the document into com/rust folder
* Added header for c++ rust bridge macro support
* Removed the impl public target * Updated design diagram naming * Updated com/rust folder naming
33b07c0 to
5d64d21
Compare
* Mock Runtime dependecy removed from production target
d043f58 to
4917621
Compare
* Updated main crate name as score_crate * CPP macro target updated
4917621 to
f15e1dd
Compare
Moves the Rust COM public API from the internal impl/rust/ folder to a proper public location at com/rust.
score_com,score_com_concept,score_com_macros,score_com_cpp_bridge)-
Old targets support is not there.#732