You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5KB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536
  1. jstrong.dev crate index
  2. ======================
  3. This is the crate index for the [crates.jstrong.dev] alternative crate registry instance.
  4. This repository follows the rules and layout specified in the [Cargo's Alternative Registries RFC].
  5. It is maintained and kept up-to-date automatically by [crates.jstrong.dev].
  6. 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].
  7. How to use this index ?
  8. -----------------------
  9. If you want to use a crate hosted at [crates.jstrong.dev]:
  10. - Edit or create the `~/.cargo/config` file, and add the following code:
  11. ```toml
  12. [registries.jstrong-dev]
  13. index = "https://git.jstrong.dev/jstrong/crate-index"
  14. ```
  15. - In `Cargo.toml`, specify the crate's registry when declaring it as a dependency, e.g.:
  16. ```toml
  17. [dependencies]
  18. markets = { version = "0.3.0", registry = "jstrong-dev" }
  19. ```
  20. If you also want to publish a crate to the registry:
  21. - Register as a user at [crates.jstrong.dev]
  22. - Configure `~/.cargo/config` with `registries.jstrong-dev` entry as described above
  23. - Then, run `cargo login --registry jstrong-dev` and enter your author token.
  24. - You can now use the registry using `cargo publish --registry jstrong-dev` or `cargo search --registry jstrong-dev`
  25. [crates.jstrong.dev]: https://crates.jstrong.dev
  26. [crates.io]: https://crates.io
  27. [Cargo's Alternative Registries RFC]: https://github.com/rust-lang/rfcs/blob/master/text/2141-alternative-registries.md#registry-index-format-specification