[Rust API] Finalizing rust APIs #1959
Replies: 9 comments 7 replies
-
|
@bharatGoswami8 please include me in meeting ;) [email protected] |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
@bharatGoswami8 please add @lurtz to the list of participants and invite. |
Beta Was this translation helpful? Give feedback.
-
|
@lurtz , Could you please share your email id for meeting invite ? |
Beta Was this translation helpful? Give feedback.
-
|
@darkwisebear , @pawelrutkaq , @lurtz , @awillenbuecher-xq-tec , Discussion is scheduled for 12th Nov at 10:00 AM CET. |
Beta Was this translation helpful? Give feedback.
-
|
Hello colleagues. I have documented the approaches we can take for the generic implementation of com-api to help with the discussion. @darkwisebear @lurtz @bharatGoswami8 The options, from my stand, for implementing generic com_apiOption 1Provide a generic The solution is assuming that we will pub struct VehicleOfferedProducer {
pub left_tire: RuntimeImplementation::Publisher<Tire>,
pub exhaust: RuntimeImplementation::Publisher<Exhaust>,
}
// HERE: Now generated code has access to very specific impl details so it can
//easily build itself from internals
impl TryFrom<RuntimeConsumerBuilder> for VehicleConsumer {
type Error = com_api::Error;
fn try_from(_builder: RuntimeConsumerBuilder) -> Result<Self> {
todo!("VehicleConsumer::try_from")
}
}To solve the testability issue, we would make sure that A-gen, B-gen, C-gen simply provide a feature flag, ie. Example https://github.com/qorix-group/inc_mw_com/tree/example_trait_impl/com-api . Look only for mock impl part. Option 2Provide the generic pub struct VehicleOfferedProducer<R: Runtime> {
pub left_tire: R::Publisher<Tire>,
pub exhaust: R::Publisher<Exhaust>,
}This option automatically solves the problem of testability as the user can simply in testing inject Pros and consOption 1pros
cons
Option 2pros
cons
questions
|
Beta Was this translation helpful? Give feedback.
-
|
@darkwisebear , @pawelrutkaq , @lurtz , As discussed in 12-Nov meeting , PR created for discussed design approach - |
Beta Was this translation helpful? Give feedback.
-
|
@lurtz , @darkwisebear , @pawelrutkaq , @sankurm , @rpreddyhv Discussion scheduled on 25 - Nov at 9:30 AM CET for open point of regarding PR eclipse-score/inc_mw_com#17.
|
Beta Was this translation helpful? Give feedback.
-
Participant@bharatGoswami8 Agenda
Meetings Minutes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Participant
12-Nov Meeting :
@darkwisebear
@pawelrutkaq
@bharatGoswami8
@sankurm
@rpreddyhv
@lurtz
25-Nov Meeting :
@darkwisebear
@pawelrutkaq
@bharatGoswami8
@rpreddyhv
@piotrchodorowski
@awillenbuecher-xq-tec
Background
https://github.com/eclipse-score/inc_mw_com/blob/main_api_rs/com-api/examples/com-api-gen/com-api-gen-lola/src/lib.rs#L87
https://github.com/eclipse-score/inc_mw_com/blob/main_api_rs/com-api/examples/com-api-gen/com-api-gen-lola/src/lib.rs#L75
Agenda
12-Nov
25-Nov
discussion on open point of regarding PR eclipse-score/inc_mw_com#17.
Meetings of Minutes
//12-Nov-25
and instead of instance-specifier it will pass InstanceInfo (all the info of runtime),
And subscriber required identifier as str.
Meetings of Minutes
//25-Nov-25
Remove from InstanceSpecifier ANY const and do something ,so InstanceSpecifier is always pointing to the exact service instance .
ConsumerBuilder .find will return an iterator to InstanceSpecifier and not InstanceId
PlacementDefault trait will be introduce on upcoming PR by @pawelrutkaq
Reloc file can be implemented for all the type and macro will be enable by @pawelrutkaq on next PR.
As of now going with existing naming.
Discussion about basic design of Asyn find service APIs
Beta Was this translation helpful? Give feedback.
All reactions