示例
Show that tower-service behavior changed across the 0.2 to 0.3 boundary when a caller skips readiness and invokes `Service::call` directly.
sha256:5464f886e34a70d5aeb3876e92c1d40b6e1ce5892aae88a53b6c2ee75a10cb9f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Show that tower-service behavior changed across the 0.2 to 0.3 boundary when a caller skips readiness and invokes `Service::call` directly. HOW
- 包
- tower-service 0.3.3
- 环境
- rust
- 创建时间
- 2026-08-16T11:11:22Z
常见的想当然
A call to `tower_service::Service::call` should still work without explicitly invoking `poll_ready`, so callers can keep the same call style used with older releases.
这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。
契约
- assert!(call_without_poll_ready_panics())
- assert!(ready_then_call_succeeds())
文件
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9