官术网_书友最值得收藏!

Where to use Rust

It is clear from the previous sections that Rust can be used in projects that would normally use C or C++. Indeed, many regard Rust as a successor to, or a replacement for, C/C++. Although Rust is designed to be a systems language, due to its richness of constructs, it has a broad range of possible applications, making it an ideal candidate for applications that fall into one or all of the following categories:

  • Client applications, like browsers
  • Low-latency, high-performance systems, like device drivers, games and signal processing
  • Highly distributed and concurrent systems, like server applications and microservices
  • Real-time and critical systems, like operating systems or kernels
  • Embedded systems (requiring a very minimal runtime footprint) or resource-constrained environments, like Raspberry Pi and Arduino, or robotics
  • Tools or services that can't support the long warmup delays common in just-in-time (JIT) compiler systems and need instantaneous startup
  • Web frameworks
  • Large-scale, high-performance, resource intensive, and complex software systems

Rust is especially suitable when code quality is important, that is, for the following:

  • Modestly-sized or larger development teams
  • Code for long-running production use
  • Code with a longer lifetime that requires regular maintenance and refactoring
  • Code for which you would normally write a lot of unit tests to safeguard
主站蜘蛛池模板: 桐柏县| 南阳市| 中江县| 慈利县| 神农架林区| 车险| 襄城县| 阳江市| 沅陵县| 黄石市| 古丈县| 普宁市| 顺昌县| 海南省| 云梦县| 霍邱县| 巴彦县| 同德县| 黔南| 临汾市| 龙川县| 津南区| 晴隆县| 五大连池市| 西盟| 香港 | 蓬安县| 陇川县| 达孜县| 牡丹江市| 济宁市| 临猗县| 雷波县| 阿合奇县| 綦江县| 西宁市| 淄博市| 宁城县| 扶沟县| 昭觉县| 左权县|