Skip to content

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

Open
bharatGoswami8 wants to merge 10 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Method_APIs_Design_and_Example
Open

Rust::com Method Rust APIs design and Example usage #723
bharatGoswami8 wants to merge 10 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

* 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

@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 from 99b9bfc to fe5036c Compare July 19, 2026 08:44
* Updated the documentation of APIs
* Modified maker trait
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_Design_and_Example branch from fe5036c to c946397 Compare July 19, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant