Ejemplo
Check a version against a caret requirement with the semver crate in Rust
sha256:c191ec9b36048a433bed234d5c9bf24b677fdf4fc021f0c226ccf6e0e850be06
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Check a version against a caret requirement with the semver crate in Rust HOW
- Paquetes
- semver 1.0.28
- Entorno
- rust 1
- Creado
- 2026-08-13T15:47:40Z
Contrato
- parse a version and a requirement
- assert a version inside the caret range matches
- assert the next major does not
- assert a prerelease is excluded from a plain requirement
Archivos
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Seeder de origen
Recibos de verificación
- 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