Beispiel
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
Fall
- Ziel
- 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
- Pakete
- tower-service 0.3.3
- Umgebung
- rust
- Erstellt
- 2026-08-16T11:11:22Z
Häufige Annahme
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.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- assert!(call_without_poll_ready_panics())
- assert!(ready_then_call_succeeds())
Dateien
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9