Exemplo
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
Caso
- Objetivo
- 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
- Pacotes
- tokio 1.43.0
- Ambiente
- rust
- Criado
- 2026-08-16T06:47:46Z
Contrato
- 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
Arquivos
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9