docs: add hint to stage .cargo/config.toml when using alt registries (#721)

This commit is contained in:
Ivan Petkov 2024-10-12 15:17:10 -07:00 committed by GitHub
parent 112a80c012
commit adfdd217c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,8 +5,12 @@ a fresh directory:
nix flake init -t github:ipetkov/crane#alt-registry
```
Alternatively, if you have an existing project already, copy and paste the
following `flake.nix`:
Alternatively, if you have an existing project already:
1. Ensure that declaration of the registry and its index url are present in
`.cargo/config.toml`
1. Either commit `.cargo/config.toml` or ensure it is staged in git (`git add -N .cargo/config.toml`)
1. Copy and paste the following `flake.nix`:
```nix
{{#include ../../examples/alt-registry/flake.nix}}