Skip to content

Rust::com Method Rust APIs design and Example usage - #723

Closed
bharatGoswami8 wants to merge 14 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Method_APIs_Design_and_Example
Closed

Rust::com Method Rust APIs design and Example usage #723
bharatGoswami8 wants to merge 14 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Method_APIs_Design_and_Example

Conversation

@bharatGoswami8

Copy link
Copy Markdown
Contributor
  • Created Method APIs design interface and example of usage.
  • Updated supporting macro like interface macro.
  • Runtime side created impl block.

#579

@bharatGoswami8 bharatGoswami8 Jul 17, 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.

This macro is not fully optimized, as of now created to see how can be type state pattern used.
Added TODO some places and this needs to be optimized with field type state pattern.

Comment thread score/mw/com/impl/rust/com-api/com-api-concept/com_api_method.rs
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_Design_and_Example branch 2 times, most recently from fe5036c to c946397 Compare July 19, 2026 08:52
Comment on lines +69 to +72
Id = "VehicleMethodsInterface",
update_tire_pressure: Method<(Tire,), ()>,
update_front_tires_pressure: Method<(Tire,Tire), ()>,
get_tire_pressure: Method<(), Tire>,

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.

All should be async, conv fun can be added like get, wait ?

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.

llike future::block_on

Comment thread score/mw/com/example/com-api-example/basic-consumer-producer.rs Outdated
@bharatGoswami8
bharatGoswami8 marked this pull request as draft July 20, 2026 13:04
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_Design_and_Example branch 4 times, most recently from ee00f1f to addb4d8 Compare July 24, 2026 11:04
* Created interface trait in concept crate for methods
* Macro created for generating register function
* macro enable offer once all the registeration is completed
* Created matching arm and supporting macro for method interface generation
* created impl block for each trait in Lola Runtime
* Updated export crate
* Updated mock runtime implementation
* Updated API usage in example application
* Updated interface gen file
* Added the limitation to call the offer API directly
* Trait interface created for allocate APIs
* example added
* Introduced new trait for allocation trait
* Updated the documentation of APIs
* Modified maker trait
* Mix type value supported added in interface macro
* type state pattern macro optimized
* Created macro for blanket implementation
* Updated Interface macro
* Removed result return from register method
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_Design_and_Example branch from addb4d8 to e2705b2 Compare July 27, 2026 04:55
@bharatGoswami8

Copy link
Copy Markdown
Contributor Author

Due to recent restructure of files and folder, new PR created for same - #777

@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.

1 participant