Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: a Rust template for highly testable, production-ready services (github.com/berektassuly)
2 points by Berektassuly 1 day ago | hide | past | favorite | 1 comment




Hi HN, author here.

I built this template to solve a problem that was personally frustrating me: testing Rust services with external dependencies (databases, blockchains) was slow and painful. My goal was to create an architecture where business logic can be unit-tested in milliseconds—no Docker, no live network connections required.

The core idea is trait-based dependency injection using Arc<dyn Trait>.

The GitHub README has a detailed breakdown of the architecture, including a section on "conscious trade-offs" (like when dynamic dispatch is preferable to generics).

Happy to answer questions or hear feedback!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: