#tower-http #product-os #request-id #trace

无 std product-os-tower-http

产品 OS:Tower Http 是 tower-http 包的衍生版本,重构以支持 std 和 no_std 环境

3 个版本

0.0.3 2024 年 4 月 21 日
0.0.2 2024 年 4 月 9 日
0.0.1 2023 年 12 月 25 日

#2 in #tower-http


用于 product-os-router

AGPL-3.0-only

665KB
13K SLoC

产品 OS:Tower

产品 OS:Tower 是 tower 包的衍生版本,重构以支持 std 和 no_std 环境。

什么是产品 OS?

产品 OS 是一个包含不同工具和功能的包集合,这些工具和功能可以一起工作,使 Rust 生态系统中的产品构建更加容易。

安装

使用 Rust 包管理器 cargo 安装产品 OS:Tower。

cargo add product-os-tower

或者将产品 OS:Tower 添加到您的 cargo.toml [packages] 部分。

product-os-tower = { version = "0.0.3", features = [], default-features = true, optional = false }

特性

产品 OS Tower 支持许多特性,利用 tower 包的框架

  • 使用具有默认选择的 std tower-http 包
  • 支持仅具有 alloc 环境的 no_std

注意:以下特性不支持 no_std

  • 认证

  • 捕获 panic

  • 文件系统

  • 度量

  • 请求 ID

  • 超时

  • 跟踪

  • 验证请求

  • 压缩 - br

  • 压缩 - deflate

  • 压缩 - full

  • 压缩 - gzip

  • 压缩 - zstd

  • 解压缩 - br

  • 解压缩 - deflate

  • 解压缩 - full

  • 解压缩 - gzip

  • 解压缩 - zstd

// Feature samples TODO

用法

// Examples TODO

贡献

贡献目前不可用,但很快将在公共存储库中提供。

许可证

GNU AGPLv3

依赖项

~1.7–6MB
~133K SLoC