mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 05:36:09 +03:00
docs: add hint to stage .cargo/config.toml when using alt registries (#721)
This commit is contained in:
parent
112a80c012
commit
adfdd217c7
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user