#dfinity #canister

sys no-std ic-cdk-timers

Timers library for the Rust CDK

35 releases (1 stable)

Uses new Rust 2024

1.0.0 Nov 13, 2025
0.12.3 Nov 14, 2025
0.12.2 Jun 25, 2025
0.12.0-alpha.2 Mar 19, 2025
0.2.0-beta.0 Feb 3, 2023

#17 in #dfinity

Download history 9460/week @ 2025-11-26 9024/week @ 2025-12-03 8783/week @ 2025-12-10 8812/week @ 2025-12-17 6814/week @ 2025-12-24 7405/week @ 2025-12-31 5224/week @ 2026-01-07 9017/week @ 2026-01-14 9380/week @ 2026-01-21 8887/week @ 2026-01-28 7954/week @ 2026-02-04 7412/week @ 2026-02-11 10497/week @ 2026-02-18 9881/week @ 2026-02-25 15156/week @ 2026-03-04 13511/week @ 2026-03-11

51,366 downloads per month
Used in 49 crates (26 directly)

Apache-2.0

115KB
2K SLoC

Rust CDK Timers Library

Documentation Crates.io License Downloads CI

This crate provides a library to schedule multiple and periodic tasks on the Internet Computer.

Example

In Cargo.toml:

[dependencies]
ic-cdk-timers = "1.0.0"

To schedule a one-shot task to be executed 1s later:

ic_cdk_timers::set_timer(Duration::from_secs(1), async { ic_cdk::println!("Hello from the future!") });

References

  1. Internet Computer Developer Guide: Periodic Tasks and Timers
  2. Example: Periodic Tasks and Timers (compares timers and heartbeats).

Dependencies

~350KB