sourcetree/docs: mention hakari generate (#2864)

This commit is contained in:
Egor Suvorov
2022-11-19 01:30:41 +03:00
committed by GitHub
parent f564dff0e3
commit e28eda7939

View File

@@ -83,6 +83,16 @@ A subject for future modularization.
`/libs/metrics`: `/libs/metrics`:
Helpers for exposing Prometheus metrics from the server. Helpers for exposing Prometheus metrics from the server.
### Adding dependencies
When you add a Cargo dependency, you should update hakari manifest by running commands below and committing the updated `Cargo.lock` and `workspace_hack/`. There may be no changes, that's fine.
```bash
cargo hakari generate
cargo hakari manage-deps
```
If you don't have hakari installed (`error: no such subcommand: hakari`), install it by running `cargo install cargo-hakari`.
## Using Python ## Using Python
Note that Debian/Ubuntu Python packages are stale, as it commonly happens, Note that Debian/Ubuntu Python packages are stale, as it commonly happens,
so manual installation of dependencies is not recommended. so manual installation of dependencies is not recommended.