11 releases
0.4.0 | Apr 4, 2024 |
---|---|
0.3.3 | Jan 2, 2024 |
0.3.1 | Sep 13, 2023 |
0.3.0 | Apr 21, 2023 |
0.1.2 | Jun 21, 2021 |
#30 in #trillium
Used in 3 crates
(2 directly)
385KB
7.5K
SLoC
Welcome to Trillium!
📖 Guide 📖
The guide provides an architectural overview and lay of the land connecting the trillium crates.
📑 Rustdocs 📑
The rustdocs represent the best way to learn about any of trillium's individual crates and the specific interfaces.
Legal:
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
Trillium server adapter for async-std
fn main() {
trillium_async_std::run(|conn: trillium::Conn| async move {
conn.ok("hello async-std")
});
}
#[async_std::main]
async fn main() {
trillium_async_std::run_async(|conn: trillium::Conn| async move {
conn.ok("hello async-std")
}).await;
}
Dependencies
~12–26MB
~404K SLoC