8000 GitHub - ririsoft/tide: Fast and friendly HTTP server framework for async Rust · GitHub
[go: up one dir, main page]

Skip to content
ririsoftPublic
forked from http-rs/tide

About

Fast and friendly HTTP server framework for async Rust

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,064 Commits

Folders and files

Tide

Serve the web

A modular web framework built around async/await

Getting started

Add two dependencies to your project's Cargo.toml file: tide itself, and async-std with the feature attributes enabled:

# Example, use the version numbers you need
tide = "0.13.0"
async-std = { version = "1.6.0", features = ["attributes"] }

Examples

Hello World

#[async_std::main]
async fn main() -> Result<(), std::io::Error> {
    tide::log::start();
    let mut app = tide::new();
    app.at("/").get(|_| async { Ok("Hello, world!") });
    app.listen("127.0.0.1:8080").await?;
    Ok(())
}

To try the included examples, check out this repository and run

$ cargo run --example # shows a list of available examples
$ cargo run --example hello

Tide's design:

Community Resources

To add a link to this list, edit the markdown file and submit a pull request (github login required)
Listing here does not constitute an endorsement or recommendation from the tide team. Use at your own risk.

Listeners

Template engines

Auth

Middleware

Session Stores

Example applications

Contributing

Want to join us? Check out our The "Contributing" section of the guide and take a look at some of these issues:

Conduct

The Tide project adheres to the Contributor Covenant Code of Conduct. This describes the minimum behavior expected from all contributors.

License

Licensed under either of

at your option.

Contribution

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.

About

Fast and friendly HTTP server framework for async Rust

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0