Skip to content

Tokio rs

Runtime builder

U can customioze the runtime by >[!tip]- >Tokio runtime builder allows you to configure various aspects of the runtime, such as the number of worker threads and other runtime settings.

code

    tokio::runtime::Builder::new_multi_thread()
        .enable_all()
        .build()
        .expect("Failed to create Tokio runtime")
        .block_on(body)
}

1

Databases - Compile time safty - In most libres the language will

acces data during Run Time ex tokio-postgres - Hovere libres such as diesel or sqlx will do it on compile time - It create a representation of database schema as rust code or uses procedular macros to see that data_py is correct - Speed - piplining_db

[!quote] Rust Projects