1 2 3 4 5 6 7
use hosting::Service; #[derive(Service)] #[service(lifetime = singleton)] struct Database; fn main() {}