rs-ervice
intuitive & powerful library Service manager.
- Service manager library for Rust.
What is Service in this project
- In
rs-ervice, aServiceis a Rust struct that bundles related state with the methods (actions) that operate on that state. - These services are responsible for a specific domain of logic or functionality within an application, such as handling user authentication or managing data access.
- They are registered with and managed by an
RSContext, which provides them as singleton instances for consistent and easy access.
Our goals
- Our final user's example is like this
/// on use...
use ;
async
- our key word is
intuitive. - we hope make intuitive & powerful library Service manager.
Features
Service Context: Manages diverse service types within an isolated scope.
This allows for clear separation of concerns in service management and enhances testability by providing distinct contexts.
Intuitive Macro System: Define services effortlessly using#[r_service_struct]and#[r_service]attributes, significantly reducing boilerplate code.Async Ready: Designed with asynchronous operations in mind, allowing service methods to be async and integrate seamlessly.Type-Safe Resolution: Retrieve service instances withcall::<YourService>(), ensuring type safety at compile time.Composable Services: Services managed byrs-erviceare standard Rust structs and can implement any number of traits, allowing for rich composition of behaviors and integration with other parts of your application or ecosystem. (Our example demonstrates this with theChanttrait).
Contributing
- If you want contribute, first, fork this repository.
- then make a code & etc...
- after then, Pull Request to this repository. and wait for main contributor's review.
Installation
Not published now... so, clone this repo, and include by this
[]
= { = "/path/to/cloned/rs-ervice" }
License
If you want Contact
- @LuticaCANARD presan100@gmail.com