Crates.io | backtalk |
lib.rs | backtalk |
version | 0.1.0 |
source | src |
created_at | 2017-06-14 20:10:41.546132 |
updated_at | 2017-06-14 20:10:41.546132 |
description | An asynchronous, streaming web server for JSON APIs |
homepage | |
repository | https://github.com/lord/backtalk |
max_upload_size | |
id | 18988 |
size | 52,947 |
Backtalk is a web framework for Rust. Much is subject to change and it's not ready for writing production sites, but the structure is there, and I'm glad to answer questions/help out if the documentation isn't enough.
A simple server example:
let mut server = Server::new();
let database = memory::MemoryAdapter::new();
server.resource("/cats", move |req: Request| {
database.handle(req)
});
server.listen("127.0.0.1:3000");
You can look in the examples
directory for more information, or the blog post walking through the examples. Things should be mostly documented as well — if you run cargo doc --open
in the repository you can view it.