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
- Host: GitHub
- URL: https://github.com/netlify/netlify-plugin-cargo-auth-cloudsmith
- Owner: netlify
- Created: 2021-01-11T10:00:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T10:14:23.000Z (over 2 years ago)
- Last Synced: 2025-02-25T13:15:46.144Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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