nickel-org/nickel.rs
关于
一个受 Express.js 启发的 Rust Web 框架
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文nickel.rs

nickel.rs is a simple and lightweight foundation for web applications written in Rust. Its API is inspired by the popular express framework for JavaScript.
Hello world
#[macro_use] extern crate nickel;
use nickel::{Nickel, HttpRouter};
fn main() {
let mut server = Nickel::new();
server.get("**", middleware!("Hello World"));
server.listen("127.0.0.1:6767");
}
Dependencies
You'll need to create a Cargo.toml that looks like this;
[package]
name = "my-nickel-app"
version = "0.0.1"
authors = ["yourname"]
[dependencies.nickel]
version = "*"
# If you are using the 'nightly' rust channel you can uncomment
# the line below to activate unstable features
# features = ["unstable"]
# Some examples require the `rustc_serialize` crate, which will
# require uncommenting the lines below
# [dependencies]
# rustc-serialize = "*"
You can then compile this using Cargo build and run it using Cargo run. After it's running you should visit http://localhost:6767 to see your hello world!
More examples
More examples can be found in the examples directory and the full documentation can be found here.
Contributing
nickel.rs is a community effort. We welcome new contributors with open arms. Please read the contributing guide here first.
If you're looking for inspiration, there's list of open issues right here on github.
If you need a helping hand reach out to @jolhoeft, @cburgdorf, @Ryman or @SimonPersson.
And hey, did you know you can also contribute by just starring the project here on github :)
Development Plan
| Version | Branch | Description |
|---|---|---|
| 0.11.x | maint-0.11.x | hyper-0.10.x (synchronous version), bug fixes only |
| 0.12.x | master | hyper-0.14.x (asynchronous version) |
| 0.13.x | new features, possibly will be 1.0 instead |
探索相关项目
加载中…