
Deploy Cron Rust
Cron Rust Runner — ultra-light HTTP schedule second precision - light cron
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
- Click Deploy on Railway.
- Set environment variables:
SECRET
: shared secret sent asX-Cron-Secret
.CRON_JOBS
: your job list (see below).
- 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) endpointCRON_EXPR
: 6-field cron (supports seconds)HEADERS
: comma-separatedName: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
Cron Rust
XavTo/cron-rustCRON_JOBS
List of scheduled HTTP jobs. Format: METHOD|URL|CRON_EXPR|HEADERS|BODY; ex : GET|https://httpbingo.org/status/204|0 * * * * *||;POST|https://httpbin.org/post|*/30 * * * * *|Content-Type:application/json|{"ping":true};