Skip to content

Commit 34dd3cb

Browse files
committed
nightly toolchain
1 parent ea6662b commit 34dd3cb

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ monikerRange: '>= azure-devops-2022'
1212

1313
# Use packages from Crates.io
1414

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

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

docs/artifacts/get-started-cargo.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -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/pipelines/artifacts/cargo-pipelines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ monikerRange: '>= azure-devops-2022'
1212

1313
# Publish Cargo packages with Azure Pipelines
1414

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

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

0 commit comments

Comments
 (0)