mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
5825849434
- Added support for debugging with tokio-console through tracing feature - Added extra benchmark for checking time to render first page - Removed unwraps to just make background loops return and terminate if something goes wrong - Modularize rendering somewhat
14 lines
223 B
Rust
14 lines
223 B
Rust
mod utils;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
#[cfg(feature = "tracing")]
|
|
console_subscriber::init();
|
|
|
|
let file = std::env::args()
|
|
.nth(1)
|
|
.expect("Please enter a file to profile");
|
|
|
|
utils::render_doc(file).await;
|
|
}
|