Skip to content

Commit 43385ef

Browse files
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 total
1 parent e86526c commit 43385ef

44 files changed

Lines changed: 2582 additions & 3563 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
target/
2+
.git/
3+
bin/
4+
*.md
5+
docs/
6+
examples/
7+
charts/
8+
tests/
9+
.github/

.gitignore

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# IDE
21
.idea/
3-
*.iml
4-
# Go
2+
target/
53
bin/
6-
*.exe
7-
*.dll
8-
*.so
9-
*.dylib
10-
# Test
11-
*.test
12-
*.out
13-
coverage.out
14-
# OS
15-
.DS_Store
16-
Thumbs.db
17-
CLAUDE.md

0 commit comments

Comments
 (0)