Track A
11:20 - 11:45 (JST)
In large-scale product development in Rust, using modules (mod
) to separate functionality makes it difficult to manage the responsibilities of each component. Cargo Workspace allows to manage multiple crates in a single place, making it easier to separate responsibility.
Especially when developing a backend product, each component responsibility may want to use different dependencies. Using Cargo Workspace to separate the crates also separates the Cargo.toml, making it easier to manage dependencies.
I would like to share best practices based on my experience of 3 years of continuous backend development of our own products. Examples of good and bad points are as follows.
workspace.dependencies
in 1.64.0)名和雅実
Fairy Devices Inc., Product Development Department, Engineer
Copyright © Rust.Tokyo 2024 all rights reserved.