Commit 43385ef
committed
Rewrite Initium from Go to Rust
Complete reimplementation of all 6 subcommands in Rust:
- wait-for (TCP + HTTP/HTTPS with retries, backoff, jitter)
- migrate (command exec with lock file idempotency)
- seed (command exec with structured logging)
- render (envsubst + Jinja2 templates via minijinja)
- fetch (HTTP fetch with auth, TLS, retry)
- exec (arbitrary command with workdir support)
Key dependencies: clap, ureq+rustls, serde_json, minijinja, regex, chrono
36 unit tests covering: logging, retry, safety, render modules
All tests passing.
Binary size comparison (release, stripped, musl-linked):
- Go binary (scratch): ~7.4 MB
- Rust binary (scratch): ~1.8 MB (76% reduction)
Docker image (scratch + binary + CA certs): 1.83 MB total1 parent e86526c commit 43385ef
44 files changed
Lines changed: 2582 additions & 3563 deletions
File tree
- cmd/initium
- internal
- cmd
- fetch
- logging
- render
- retry
- safety
- src
- cmd
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | | - | |
| 2 | + | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
0 commit comments