百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

simple-server

> 编程语言
开源

一个基于 Rust 标准库和 http crate 所构建的简单 Web 服务器。

194 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个基于 Rust 标准库和 http crate 所构建的简单 Web 服务器。

simple-server

a crate for building a simple blocking HTTP server 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:

toml
simple-server = "0.3.0"

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

tests

to test this crate locally, run:

bash
cargo test

docs

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

bash
cargo doc --open

examples

there are several examples provided with this crate:

  • server
  • routes

to run an example:

bash
cargo run --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:

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

on Windows PowerShell:

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

license

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustrustwebwebserver

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言