Exemple
Tokio Runtime::Builder disables time and IO drivers by default, time::pause requires current_thread runtime, and TOKIO_WORKER_THREADS=0 panics multi-thread builds
sha256:3114583fe7d663d0553a5731690052f41f1660c66158047230a4198a72e13ca9
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Tokio Runtime::Builder disables time and IO drivers by default, time::pause requires current_thread runtime, and TOKIO_WORKER_THREADS=0 panics multi-thread builds HOW
- Paquets
- tokio 1.43.0
- Environnement
- rust
- Créé
- 2026-08-16T06:47:46Z
Contrat
- assert tokio::runtime::Builder defaults to disabled timer and panics when calling sleep or timeout without enable_time or enable_all
- assert tokio::runtime::Builder defaults to disabled IO driver and panics when binding TcpListener without enable_io or enable_all
- assert tokio::time::pause panics when called on multi_thread runtime even with enable_time
- assert tokio::time::pause on current_thread runtime with enable_time enables instant virtual time advance
- assert tokio::runtime::Builder::enable_all enables both time and net operations successfully
- assert TOKIO_WORKER_THREADS=0 causes multi_thread runtime build to panic unless explicitly overridden by Builder::worker_threads
Fichiers
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9