Skip to content

Shio is a fast, simple, and asynchronous micro web-framework for Rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

mehcode/shio-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Salt

Rust Crates.io Crates.io Docs.rs IRC

Salt is a fast, simple, and asynchronous micro web-framework for Rust.

  • Asynchronous. Handlers are both handled asynchronously and may be asynchronous themselves. A salt::Handler receives a tokio_core::reactor::Handle which may be used to schedule additional work on the thread-local event loop.

  • Multi-threaded. By default, requests are handled by multiple threads, each running an event loop.

WARNING: Salt is at 0.0.x which means the API is highly unstable. Use at your own risk. See #1 to discuss our general direction.

Usage

[dependencies]
salt = "0.3"

Example

use salt::prelude::*;

fn hello_world(_: Context) -> Response {
  Response::with("Hello World\n")
}

fn main() {
  Salt::default().route((Method::Get, "/", hello_world)).run(":7878").unwrap();
}

See the ./examples for more usage information.

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

Shio is a fast, simple, and asynchronous micro web-framework for Rust.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages