샘플
Show that `tower-layer` reference-based stacking can share hidden mutable state across wraps.
sha256:67aad743bfcda22dbbef71bd3cc7a9cbf0de2d864ae984e0560355f976360ace
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Show that `tower-layer` reference-based stacking can share hidden mutable state across wraps. HOW
- 패키지
- tower-layer 0.3.3
- 환경
- rust
- 생성일
- 2026-08-17T01:08:09Z
흔히 이렇게 알고 있다
A competent developer would expect a shared `&Layer` to behave like independent applications and not accumulate per-wrap side effects when reused.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- assert that the same borrowed layer can be used for multiple `Layer::layer` calls and the call count is cumulative
- assert that wrapped services reflect distinct build IDs because the shared reference updates shared state
- assert that this shared mutable behavior is observable even though the trait method takes `&self`
파일
- 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-17 · ed25519:d91480838ac982c9