Root cause of the failing CI run was that examples/tests referencing feature-gated items were auto-detected (no required-features), so `--all-targets` compiled them under feature combinations where those modules didn't exist. Fixes: - mytheclipse Cargo.toml: declare the `high_level` example and `race_stress` integration test with required-features = ["full"]; `cargo build --all-targets` now skips them when full is off. This clears the whole test-matrix (workspace default, all-features, and every single-feature config) which all failed on E0432/E0433. - lib.rs: auto_metrics_service depends on service_builder, so regate it behind all(observability, resiliency) instead of observability alone (observability-only build compiled the module without resiliency). - mytheclipse-tracing: gate `pub mod fmt` behind any tracing-subscriber-providing feature so --no-default-features compiles. - mytheclipse-queue: gate `pub mod worker` behind in-memory (worker.rs requires tokio, only provided by in-memory). - clippy -D warnings fixes: deprecated base64 0.22 free fns -> Engine (paseto), unused key field, needless mut (service_builder), unused import/dead var/missing is_empty (bg_join), dead is_expired (dlock), while-let-iterator->for (parallel_map), type_complexity (shutdown_guard), MutexGuard held across await (middleware, now clones Arc'd layers), if-let-Err->is_err (queue), unused CliBuilder fields now wired into clap. - rustdoc -D warnings: resolve retry/MetricsBridge/CircuitBreaker/KeyRing intra-doc links and fix the unparseable lifecycle.rs code fence. - cargo fmt --all to satisfy the Rustfmt gate.
69 lines
1.9 KiB
TOML
69 lines
1.9 KiB
TOML
[package]
|
|
name = "mytheclipse"
|
|
version = "1.21.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"
|
|
authors = ["asepharyana <superaseph@gmail.com>"]
|
|
description = "Resource-aware abstractions for async I/O, heavy compute, background queue management, resiliency, traffic control, lifecycle, and observability."
|
|
readme = "README.md"
|
|
keywords = ["async", "concurrency", "resiliency", "circuit-breaker", "observability"]
|
|
categories = ["asynchronous", "concurrency", "rust-patterns"]
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.53", features = ["full"], optional = true }
|
|
rayon = { version = "1.12", optional = true }
|
|
rand = { version = "0.8", optional = true }
|
|
num_cpus = "1.17"
|
|
tracing = "0.1"
|
|
async-trait = "0.1"
|
|
thiserror = "2"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.53", features = ["full"] }
|
|
tracing-subscriber = "0.3"
|
|
criterion = { version = "0.5", features = ["async_tokio"] }
|
|
|
|
[features]
|
|
default = []
|
|
io = ["dep:tokio"]
|
|
compute = ["dep:rayon"]
|
|
bg = ["dep:tokio"]
|
|
resiliency = ["dep:tokio", "dep:rand"]
|
|
traffic = ["dep:tokio"]
|
|
lifecycle = ["dep:tokio"]
|
|
observability = ["dep:tokio", "lifecycle"]
|
|
full = ["io", "compute", "bg", "resiliency", "traffic", "lifecycle", "observability"]
|
|
|
|
[[example]]
|
|
name = "main"
|
|
path = "examples/main.rs"
|
|
required-features = ["full"]
|
|
|
|
[[example]]
|
|
name = "high_level"
|
|
path = "examples/high_level.rs"
|
|
required-features = ["full"]
|
|
|
|
[[example]]
|
|
name = "scaling_demo"
|
|
path = "examples/scaling_demo.rs"
|
|
required-features = ["full"]
|
|
|
|
[[test]]
|
|
name = "race_stress"
|
|
path = "tests/race_stress.rs"
|
|
required-features = ["full"]
|
|
|
|
[[bench]]
|
|
name = "primitives"
|
|
path = "benches/primitives.rs"
|
|
harness = false
|
|
required-features = ["full"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"] |