zpp-2022-rust-seastar / seastar-rs

Idiomatic Rust bindings to the Seastar framework
6 stars 3 forks source link

Create a macro like tokio::main #16

Closed cvybhu closed 1 year ago

cvybhu commented 1 year ago

tokio::main is a macro that takes care of starting the runtime so that the user can just write async fn main and use runtime functionality immediately.

We would like to have something similar - seastar::main. It would be nice to be able to pass some runtime configuration options to the macro.

This issue doesn't have a very high priority, for now we can just create the runtime manually, it's more important to get all the functionality working first.