Rust framework 🐦 'Experimental

Table of contents

Services

Create service instance (Singleton) in one step

```rust use wildbird::derive::*;

// Convert struct to Service + impl construct()

[service(construct = "init")]

struct HelloService { component_name: String, }

impl HelloService { fn init() -> HelloService { HelloService { componentname: "Hello penguins 🐧".tostring(), } }

fn sey_hello(&self) {
    println!("Hello! 👋")
}

}

fn main() { HelloService.sey_hello(); } ```


```rust use wildbird::derive::*;

// Convert struct to Service

[service]

struct HelloService { component_name: String, }

// Impl Service trait construct()

[service(construct)]

fn helloinit() -> HelloService { HelloService { componentname: "Hello 🚀".to_string(), } } ```

Created By


License

MIT