Developer-oriented crate for launching Minecraft quickly and reliably with included support for Mojang versions and popular mod loaders. See portablemc-cli for the reference implementation.
//! Async utilities around Tokio runtime.
usestd::future::Future;/// Block on the given future with the Tokio runtime with time and I/O enabled.
pubfnsync<F: Future>(future: F)->F::Output{let rt =tokio::runtime::Builder::new_current_thread().enable_time().enable_io().build().unwrap();
rt.block_on(future)}