Ejemplo
Evaluate bare VersionReq caret defaulting, strict parser syntax, prerelease isolation, and build metadata total ordering in Cargo semver
sha256:aad15f75653e5762a15d7950d5230b7fdc092df0414827a20d188bfeaaeef9e2
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Evaluate bare VersionReq caret defaulting, strict parser syntax, prerelease isolation, and build metadata total ordering in Cargo semver HOW
- Paquetes
- semver 1.0.28
- Entorno
- rust
- Creado
- 2026-08-16T08:18:26Z
Contrato
- assert VersionReq::parse("1.2.3") defaults to Op::Caret matching 1.2.4 and 1.9.0 rather than Op::Exact
- assert Version::parse and VersionReq::parse strictly reject 'v' prefix, incomplete tuples, and leading zeroes
- assert VersionReq without prerelease tag rejects all prereleases while tagged comparator matches only identical tuples
- assert Version Eq and Ord differentiate build metadata for total ordering while cmp_precedence and VersionReq ignore build metadata
- assert 0.x caret ranges enforce breaking changes at minor for ^0.x and patch for ^0.0.x while ~0.0.x permits patch bumps
Archivos
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
- tests/contract.rs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9