Deploy Cron Rust

Cron Rust Runner — ultra-light HTTP schedule second precision - light cron

Deploy Cron Rust

Cron Rust

XavTo/cron-rust

Just deployed

Cron Runner (Rust)

Lightweight HTTP scheduler built in Rust with per-second cron precision.
Runs as a persistent process—no external cron needed.
Each request includes an X-Cron-Secret header, with optional custom headers and body support.

Why use it

  • Schedule HTTP jobs with second-level precision.
  • Replace heavy schedulers with a single tiny binary.
  • Centralize recurring API calls

How to Deploy

  1. Click Deploy on Railway.
  2. Set environment variables:
    • SECRET: shared secret sent as X-Cron-Secret.
    • CRON_JOBS: your job list (see below).
  3. Deploy as a persistent service (not a Railway cron).

Environment Variables

SECRET – required
Shared secret included as X-Cron-Secret.

CRON_JOBS – required
Jobs separated by ; or new lines.
Format: METHOD|URL|CRON_EXPR|HEADERS|BODY

  • METHOD: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
  • URL: full HTTP(S) endpoint
  • CRON_EXPR: 6-field cron (supports seconds)
  • HEADERS: comma-separated Name:Value pairs, separated by commas (optional)
  • BODY: raw string (optional)

Example

GET|https://httpbingo.org/status/204|0 * * * * *||
POST|https://httpbin.org/post|*/30 * * * * *|Content-Type:application/json,Authorization:Bearer XYZ|{"ping":true}

Logs

Each run outputs one line:

YYYY-MM-DDTHH:MM:SSZ | OK | METHOD URL | STATUS
YYYY-MM-DDTHH:MM:SSZ | FAIL | METHOD URL | transport error: ...

Tech Stack

Rust + ureq (sync, minimal)
cron crate for per-second scheduling


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

View Template
Postgres S3 backups
A simple NodeJS app to back up your PostgreSQL database to S3 via a cron

View Template
Prefect (Open-Source Workflow Orchestration Platform)
Prefect (ETL & Automation alternative to Airflow) Self Host [Oct ’25]