Sample
Enabling the serde feature on semver serializes Version and VersionReq as flat strings rather than nested structs, while bare requirement strings default to caret ranges and empty strings fail parsing
sha256:135433c9e1bd94f656bcd195488e72bbd4deac30203f7ef9f814378f28aeb022
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Enabling the serde feature on semver serializes Version and VersionReq as flat strings rather than nested structs, while bare requirement strings default to caret ranges and empty strings fail parsing HOW
- Packages
- semver 1.0.28
- Environment
- rust
- Created
- 2026-08-16T08:22:17Z
Contract
- assert serde serializes Version and VersionReq as strings rejecting structural map JSON
- assert bare requirement strings parse as Op::Caret (^1.2.3) matching minor bumps rather than exact equality
- assert VersionReq::STAR has empty comparators matching all versions whereas VersionReq::parse empty string fails
- assert Version::parse rejects leading 'v' prefix and missing patch numbers
- assert 0.x caret rules enforce breaking changes at minor and patch zero boundaries
- assert Version Ord differentiates build metadata for total ordering while VersionReq matching ignores it
Files
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9