샘플
Define a library error type with thiserror and keep the source chain intact
sha256:9a1d6344cb2cb3d1c49ea5c0109c80a69519cf2325dc01c5bbc82e5bddcb98cd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Define a library error type with thiserror and keep the source chain intact HOW
- 패키지
- thiserror 2.0.20
- 환경
- rust 1
- 생성일
- 2026-08-13T18:45:30Z
컨트랙트
- define an error enum with a transparent variant and a formatted one
- assert Display renders the declared message
- assert #[from] converts the underlying error automatically
- assert the source chain survives so callers can inspect the cause
파일
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS · cargo@1 · 2026-08-13 · ed25519:7da3f610facce8bf