artisan 0.13.0

Artisan workspace facade with feature-controlled re-export
docs.rs failed to build artisan-0.13.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: artisan-0.13.1

Artisan

Workspace 结构

artisan/
├── Cargo.toml              # Workspace 配置
├── src/lib.rs              # Facade(Feature 控制的 re-export)
└── artisan-http/           # HTTP 实现
    ├── src/                # 核心实现
    ├── tests/              # 测试(59 个)
    ├── examples/           # 示例
    └── docs/               # 架构文档

Crate 说明

Crate 职责 文档
artisan Facade,Feature 控制的 re-export docs.rs/artisan
artisan-http HTTP 客户端、洋葱模型、插件系统 README

安装

# 推荐:通过 facade(默认包含 HTTP 功能)
cargo add artisan

# 直接依赖实现层
cargo add artisan-http

# 纯 facade(禁用 HTTP 功能)
cargo add artisan --no-default-features
# Cargo.toml
[dependencies]
artisan = "~0.13.0"

# 直接依赖实现层
[dependencies]
artisan-http = "~0.13.0"

# 纯 facade(禁用 HTTP 功能)
[dependencies]
artisan = { version = "~0.13.0", default-features = false }

快速入口

artisan-http

示例

artisan-http

cargo run -p artisan-http --example basic
cargo run -p artisan-http --example config
cargo run -p artisan-http --example shortcut
cargo run -p artisan-http --example custom_plugin
cargo run -p artisan-http --example direction

许可证

MIT License