Files
mytheclipse/crates/mytheclipse-http/Cargo.toml
T
asepharyana 8106f8943e feat: add 4 new crates (queue, tracing, http, cli) + enhancements to existing crates
New crates:
- mytheclipse-queue: unified job queue with WorkerPool, retry/backoff, DLQ
  Backends: in-memory (default), Redis, NATS, PostgreSQL
- mytheclipse-tracing: tracing subscriber layers with env filter + OTLP/Jaeger export
- mytheclipse-http: HTTP client/server with timeout + tracing, axum server
- mytheclipse-cli: CLI framework with clap derive, built-in subcommands

Enhancements to existing crates:
- mytheclipse-core: SemaphorePool, LeaderElection, HealthRegistry/HealthCheck
- mytheclipse-cache: AutoRefreshCache (bg refresh on miss), CacheMetrics
- mytheclipse-config: ConfigSchema for JSON Schema generation
- mytheclipse-storage: MultipartUploadDriver trait
- mytheclipse-crypto: PASETO v4.local token support

All features compile with --all-features; tests + clippy pass clean.
2026-08-29 16:05:02 +07:00

37 lines
1.4 KiB
TOML

[package]
name = "mytheclipse-http"
version = "0.2.0"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"
repository = "https://github.com/asepharyana/mytheclipse"
homepage = "https://github.com/asepharyana/mytheclipse"
documentation = "https://docs.rs/mytheclipse-http"
authors = ["asepharyana <superaseph@gmail.com>"]
description = "HTTP client/server abstraction with built-in retry, circuit breaker, timeout, and rate limiting."
readme = "README.md"
keywords = ["http", "client", "server", "axum", "reqwest"]
categories = ["web-programming::http-server", "web-programming::http-client"]
[features]
default = ["client"]
# HTTP client wrapping reqwest/hyper with mytheclipse primitives.
client = ["dep:reqwest", "dep:tokio"]
# Server backed by hyper.
server-hyper = ["dep:hyper", "dep:tokio"]
# Server backed by axum.
server-axum = ["dep:axum", "dep:hyper", "dep:tokio"]
[dependencies]
tracing = "0.1"
async-trait = "0.1"
tokio = { version = "1.53", features = ["sync", "time", "rt", "macros"], optional = true }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"], optional = true }
hyper = { version = "1", features = ["full"], optional = true }
axum = { version = "0.8", optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[dev-dependencies]
tokio = { version = "1.53", features = ["full"] }