Просмотр исходного кода

book/development: Add note on testing crate features.

parazyd 4 лет назад
Родитель
Сommit
ad30d6e456
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      book/src/development.md

+ 12 - 0
book/src/development.md

@@ -41,3 +41,15 @@ exit 0
 
 Place this script in `.git/hooks/pre-commit` and make sure it's
 executable by running `chmod +x .git/hooks/pre-commit`.
+
+
+## Testing crate features
+
+Our library heavily depends on cargo _features_. Currently
+there are more than 650 possible combinations of features to
+build the library.  To ensure everything can always compile
+and works, we can use a helper for `cargo` called
+[`cargo hack`](https://github.com/taiki-e/cargo-hack).
+
+The `Makefile` provided in the repository is already set up to use it,
+so it's enough to install `cargo hack` and run `make check`.