Browse Source

convert to jstrong.dev

master
Jonathan Strong 4 years ago
parent
commit
4d538b1216
2 changed files with 12 additions and 13 deletions
  1. +9
    -10
      README.md
  2. +3
    -3
      config.json

+ 9
- 10
README.md View File

@@ -1,12 +1,12 @@
Alexandrie crate index
jstrong.dev crate index
====================== ======================


This is the crate index for the [Alexandrie] alternative crate registry instance running on <https://crates.polomack.eu>.
This is the crate index for the [crates.jstrong.dev] alternative crate registry instance.


This repository follows the rules and layout specified in the [Cargo's Alternative Registries RFC]. This repository follows the rules and layout specified in the [Cargo's Alternative Registries RFC].
It is maintained and kept up-to-date automatically by [crates.polomack.eu].
It is maintained and kept up-to-date automatically by [crates.jstrong.dev].


This index (and, by extension, the [crates.polomack.eu] registry) allows crates to only depend on other crates stored in either this registry or [crates.io].
This index (and, by extension, the [crates.jstrong.dev] registry) allows crates to only depend on other crates stored in either this registry or [crates.io].


How to use this index ? How to use this index ?
----------------------- -----------------------
@@ -15,13 +15,12 @@ If you want to use this index, you can follow these steps:


- Edit or create the `~/.cargo/config` file, and add the following code: - Edit or create the `~/.cargo/config` file, and add the following code:
```toml ```toml
[registries.alexandrie]
index = "https://github.com/Hirevo/alexandrie-index"
[registries.jstrong-dev]
index = "https://git.jstrong.dev/jstrong/crate-index"
``` ```
- Then, run `cargo login --registry alexandrie` and enter your author token.
- You can now use the registry using `cargo publish --registry alexandrie` or `cargo search --registry alexandrie`
- Then, run `cargo login --registry jstrong-dev` and enter your author token.
- You can now use the registry using `cargo publish --registry jstrong-dev` or `cargo search --registry jstrong-dev`


[Alexandrie]: https://github.com/Hirevo/alexandrie
[crates.polomack.eu]: https://crates.polomack.eu
[crates.jstrong.dev]: https://crates.jstrong.dev
[crates.io]: https://crates.io [crates.io]: https://crates.io
[Cargo's Alternative Registries RFC]: https://github.com/rust-lang/rfcs/blob/master/text/2141-alternative-registries.md#registry-index-format-specification [Cargo's Alternative Registries RFC]: https://github.com/rust-lang/rfcs/blob/master/text/2141-alternative-registries.md#registry-index-format-specification

+ 3
- 3
config.json View File

@@ -1,5 +1,5 @@
{ {
"dl": "https://crates.polomack.eu/api/v1/crates/{crate}/{version}/download",
"api": "https://crates.polomack.eu",
"allowed-registries": ["https://github.com/rust-lang/crates.io-index", "https://github.com/Hirevo/alexandrie-index"]
"dl": "https://crates.jstrong.dev/api/v1/crates/{crate}/{version}/download",
"api": "https://crates.jstrong.dev",
"allowed-registries": ["https://github.com/rust-lang/crates.io-index", "https://git.jstrong.dev/jstrong/crate-index"]
} }

Loading…
Cancel
Save