From 389ad925ffc534e46a2374030b0fbb3d4f75f3c9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 31 Jul 2020 17:17:32 +0200 Subject: Document crates.io deps policy --- docs/dev/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/dev/README.md b/docs/dev/README.md index 417352c9d..2896d333e 100644 --- a/docs/dev/README.md +++ b/docs/dev/README.md @@ -166,6 +166,12 @@ That said, adding an innocent-looking `pub use` is a very simple way to break en Note: if you enjoyed this abstract hand-waving about boundaries, you might appreciate https://www.tedinski.com/2018/02/06/system-boundaries.html +## Crates.io Dependencies + +We try to be very conservative with usage of crates.io dependencies. +Don't use small "helper" crates (exception: `itertools` is allowed). +If there's some general reusable bit of code you need, consider adding it to the `stdx` crate. + ## Minimal Tests Most tests in rust-analyzer start with a snippet of Rust code. -- cgit v1.2.3