simple-server

A simple webserver built on top of the Rust standard library and the http crate.

  • 所有者: steveklabnik/simple-server
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

simple-server

a crate for building a simple blocking HTTP server

Build Status
crates.io

NOTE: this crate has not been evaluated for security concerns. therefore, we recommend
that you take caution before using it in a production application.

up and running

this crate is written in the rust programming language. you'll need rust to run
this crate. you can install rust using rustup. simple-server requires that you
use rust version 1.20+.

to get this crate running locally:

  1. fork and clone this repository
  2. cd simple-server
  3. cargo build

to use this crate in your project, add the following line to your Cargo.toml
in the [dependencies] section:

simple-server = "0.3.0"

to see this crate in action, check out the examples.

tests

to test this crate locally, run:

cargo test

docs

this crate has documentation. to build and open the docs locally:

cargo doc --open

examples

there are several examples provided with this crate:

to run an example:

cargo run --example <name of example>

this crate uses the log crate for logging. in the example, we use the
env-logger crate to display the logs. by default, env-logger only
prints out error-level logs. to enable info-level logging as well, you'll
need to do one of the following depending on your system:

on Linux/OS X:

RUST_LOG="simple_server=info" cargo run --example server

on Windows PowerShell:

$env:RUST_LOG="simple_server=info";
cargo run --example server

license

simple-server is licensed under both the Apache2 and MIT licenses.

主要指標

概覽
名稱與所有者steveklabnik/simple-server
主編程語言Rust
編程語言Rust (語言數: 1)
平台
許可證Apache License 2.0
所有者活动
創建於2017-07-03 20:04:43
推送於2021-02-20 05:24:50
最后一次提交2018-10-19 08:21:52
發布數4
最新版本名稱v0.4.0 (發布於 2018-10-19 08:08:02)
第一版名稱0.1.0 (發布於 2017-10-15 18:18:25)
用户参与
星數191
關注者數2
派生數40
提交數126
已啟用問題?
問題數61
打開的問題數17
拉請求數51
打開的拉請求數5
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?