You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Artifacts upstream sources enables developers to consume packages from public registries like Crates.io and nuget.org. This article will guide you through setting up your project and using the command line to consume Crates from Crates.io.
17
+
Azure Artifacts upstream sources enable developers to consume packages from public registries like Crates.io and nuget.org. This article will guide you through setting up your project and using the command line to consume Crates from Crates.io.
Using Azure Artifacts, you can publish and download Cargo packages to feeds and public registries. This article guides you through setting up your project and publishing your Cargo packages to your Azure Artifacts feed.
16
16
@@ -35,7 +35,7 @@ If you already have an existing Azure Artifacts feed that can be used for Cargo
35
35
36
36
1. Select **Create** when you're done.
37
37
38
-
## Connect to feed
38
+
## Connect to a feed
39
39
40
40
1. Sign in to your Azure DevOps organization, and then navigate to your project.
41
41
@@ -45,10 +45,32 @@ If you already have an existing Azure Artifacts feed that can be used for Cargo
45
45
46
46
1. Follow the **Project setup** instructions on the **Connect to feed** page.
47
47
48
+
::: moniker range="azure-devops"
49
+
48
50
> [!IMPORTANT]
49
51
> Cargo support in Azure Artifacts requires rust version [1.74](https://rustup.rs/) or newer which includes support for the 'registry-auth' feature.
50
52
> To update your rust version, run `rustup update`
51
53
54
+
::: moniker-end
55
+
56
+
::: moniker range="azure-devops-2022"
57
+
58
+
> [!IMPORTANT]
59
+
> Cargo is currently in preview and may require the [nightly toolchain](https://rust-lang.github.io/rustup/concepts/toolchains.html) with the `registry-auth`[unstable-feature](https://doc.rust-lang.org/cargo/reference/unstable.html) enabled. To enable `registry-auth`, add the following to [.cargo/config.toml](https://doc.rust-lang.org/cargo/reference/config.html).
60
+
>
61
+
> ```
62
+
> [unstable]
63
+
> registry-auth = true
64
+
> ```
65
+
>
66
+
> To use the nightly toolchain, run the following command:
67
+
>
68
+
> ```
69
+
> rustup default nightly
70
+
> ```
71
+
72
+
::: moniker-end
73
+
52
74
## Publish packages
53
75
54
76
To publish your Cargo package, run the following command in your project directory:
Azure Pipelines enables developers to publish their Cargo packages to Azure Artifacts feeds and public registries such as Crates.io. In this article, you will learn how to publish your Cargo packages to an Azure Artifacts feed using both YAML and Classic pipelines.
0 commit comments