Skip to content

Commit 83c204a

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
Learn Build Service GitHub App
authored and
Learn Build Service GitHub App
committed
Merging changes synced from https://github.com/MicrosoftDocs/azure-devops-docs-pr (branch live)
2 parents 759f1a5 + c754bb5 commit 83c204a

File tree

4 files changed

+32
-8
lines changed

4 files changed

+32
-8
lines changed

docs/artifacts/cargo/cargo-upstream-source.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ ms.author: rabououn
66
author: ramiMSFT
77
ms.topic: quickstart
88
ms.date: 12/13/2023
9-
monikerRange: azure-devops
9+
monikerRange: '>= azure-devops-2022'
1010
"recommendations": "true"
1111
---
1212

1313
# Use packages from Crates.io
1414

15-
[!INCLUDE [version-eq-azure-devops](../../includes/version-eq-azure-devops.md)]
15+
[!INCLUDE [version-gt-eq-2022](../../includes/version-gt-eq-2022.md)]
1616

17-
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.
1818

1919
This article will guide you through how to:
2020

docs/artifacts/get-started-cargo.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: How to use Azure Artifacts to publish and download Cargo packages.
44
ms.service: azure-devops-artifacts
55
ms.topic: quickstart
66
ms.date: 07/11/2023
7-
monikerRange: 'azure-devops'
7+
monikerRange: '>= azure-devops-2022'
88
"recommendations": "true"
99
---
1010

1111
# Get started with Cargo packages in Azure Artifacts
1212

13-
[!INCLUDE [version-eq-azure-devops](../includes/version-eq-azure-devops.md)]
13+
[!INCLUDE [version-gt-eq-2022](../includes/version-gt-eq-2022.md)]
1414

1515
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.
1616

@@ -35,7 +35,7 @@ If you already have an existing Azure Artifacts feed that can be used for Cargo
3535

3636
1. Select **Create** when you're done.
3737

38-
## Connect to feed
38+
## Connect to a feed
3939

4040
1. Sign in to your Azure DevOps organization, and then navigate to your project.
4141

@@ -45,10 +45,32 @@ If you already have an existing Azure Artifacts feed that can be used for Cargo
4545

4646
1. Follow the **Project setup** instructions on the **Connect to feed** page.
4747

48+
::: moniker range="azure-devops"
49+
4850
> [!IMPORTANT]
4951
> Cargo support in Azure Artifacts requires rust version [1.74](https://rustup.rs/) or newer which includes support for the 'registry-auth' feature.
5052
> To update your rust version, run `rustup update`
5153
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+
5274
## Publish packages
5375
5476
To publish your Cargo package, run the following command in your project directory:

docs/artifacts/start-using-azure-artifacts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ With Azure Artifacts, you can publish and consume various package types from fee
136136
| **Maven** | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: |
137137
| **Gradle** | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: |
138138
| **Python** | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: |
139-
| **Cargo** | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false"::: |
139+
| **Cargo** | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false":::|:::image type="icon" source="../media/icons/delete-icon.png" border="false":::|
140140
| **Universal Packages** | :::image type="icon" source="../media/icons/checkmark.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false"::: | :::image type="icon" source="../media/icons/delete-icon.png" border="false"::: |
141141

142142
::: moniker range="azure-devops"

docs/pipelines/artifacts/cargo-pipelines.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ ms.author: rabououn
66
author: ramiMSFT
77
ms.topic: quickstart
88
ms.date: 12/08/2023
9-
monikerRange: azure-devops
9+
monikerRange: '>= azure-devops-2022'
1010
"recommendations": "true"
1111
---
1212

1313
# Publish Cargo packages with Azure Pipelines
1414

15+
[!INCLUDE [version-gt-eq-2022](../../includes/version-gt-eq-2022.md)]
16+
1517
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.
1618

1719
This article will guide you through how to:

0 commit comments

Comments
 (0)