
I do not consider it to be an issue, at least for small/medium services, given other Rust advantages, and wiring dependency with constructor by hand is not that hard.īasically there is two way to use a trait, using dynamic dispatch or using generics and monomorphisation. We'll do our best to keep these links up to date, but if we fall behind please don't hesitate to shoot us a modmail.Īlso coming from a JVM background, it's possible to make your codebase testable using traits, but it will require more boilerplate than on the JVM. This is not an official Rust forum, and cannot fulfill feature requests. Err on the side of giving others the benefit of the doubt.Īvoid re-treading topics that have been long-settled or utterly exhausted. Please create a read-only mirror and link that instead.Ī programming language is rarely worth getting worked up over.īe charitable in intent. If criticizing a project on GitHub, you may not link directly to the project's issue tracker. Post titles should include useful context.įor Rust questions, use the stickied Q&A thread.Īrts-and-crafts posts are permitted on weekends.Ĭriticism is encouraged, though it must be constructive, useful and actionable. For content that does not, use a text post to explain its relevance. Posts must reference Rust or relate to things using Rust. We observe the Rust Project Code of Conduct. Strive to treat others with respect, patience, kindness, and empathy. Please read The Rust Community Code of Conduct The Rust Programming LanguageĪ place for all things related to the Rust programming language-an open-source systems language that emphasizes performance, reliability, and productivity.
