An open API service indexing awesome lists of open source software.

https://github.com/netlify/netlify-plugin-cargo-auth-cloudsmith

Sets up cargo authentication for Cloudsmith crate registries
https://github.com/netlify/netlify-plugin-cargo-auth-cloudsmith

Last synced: 4 months ago
JSON representation

Sets up cargo authentication for Cloudsmith crate registries

Awesome Lists containing this project

README

        

# netlify-plugin-cargo-auth-cloudsmith

This configures a Git credential helper so that `cargo` is able to pull
crates from Cloudsmith in Netlify build.

## Install

The recommended way to install this right now is using a git npm dependency:

`package.json`

```js
{
// ...
"dependencies": {
"netlify-plugin-cargo-auth-cloudsmith": "netlify/netlify-plugin-cargo-auth-cloudsmith#v1.0.0"
}
}
```

`netlify.toml`

```toml
[[plugins]]
package = "netlify-plugin-cargo-auth-cloudsmith"
```

### Setup

- Go to `Settings -> Build & deploy -> Environment`
- Add an environment variable named `CLOUDSMITH_TOKEN`, set it to an Entitlement token
that has read access to your repository
- Make sure your repository includes a `.cargo/config.toml` that lists the registry