Skip to content

Commit f7ba066

Browse files
committed
onboard rust to CFS
1 parent 7bd7fb9 commit f7ba066

5 files changed

Lines changed: 1309 additions & 6 deletions

File tree

‎eng/pack/templates/nix_env_gen.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ steps:
6363
env:
6464
pythonVersion: ${{ parameters.pythonVersion }}
6565
- powershell: |
66-
Write-Host "workerPath: $(workerPath)"
67-
Write-Host "proxyWorker: $(proxyWorker)"
68-
Write-Host "rustWorker: $(rustWorker)"
66+
Write-Host "workerPath: $env:WORKERPATH"
67+
Write-Host "proxyWorker: $env:PROXYWORKER"
68+
Write-Host "rustWorker: $env:RUSTWORKER"
6969
displayName: 'Display variables'
7070
- task: ShellScript@2
7171
inputs:
@@ -74,6 +74,11 @@ steps:
7474
args: '${{ parameters.pythonVersion }}'
7575
displayName: 'Install Dependencies'
7676
condition: ne(variables['rustWorker'], 'true')
77+
- task: CargoAuthenticate@0
78+
displayName: 'Authenticate Cargo to CFS'
79+
inputs:
80+
configFile: '$(Build.SourcesDirectory)/workers/rust_worker/.cargo/config.toml'
81+
condition: eq(variables['rustWorker'], 'true')
7782
- task: ShellScript@2
7883
inputs:
7984
disableAutoCwd: true
@@ -308,8 +313,7 @@ steps:
308313
"azure_functions_runtime_v1/native_invocation.py",
309314
"azure_functions_runtime_v1/utils/executor.py",
310315
"azure",
311-
"azurefunctions",
312-
"google"
316+
"azurefunctions"
313317
)
314318
$forbidden = @("grpc", "proxy_worker", "uvloop")
315319

‎eng/templates/shared/rust-build-steps.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ steps:
3838
cargo clippy --version
3939
displayName: 'Check Rust versions'
4040
41+
- task: CargoAuthenticate@0
42+
displayName: 'Authenticate Cargo to CFS'
43+
inputs:
44+
configFile: '$(Build.SourcesDirectory)/${{ parameters.PROJECT_DIRECTORY }}/.cargo/config.toml'
45+
4146
- bash: |
4247
set -euo pipefail
4348
python -m pip install --upgrade pip
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[registries]
2+
upstream = { index = "sparse+https://pkgs.dev.azure.com/azfunc/internal/_packaging/upstream/Cargo/index/" }
3+
4+
[source.crates-io]
5+
replace-with = "upstream"

‎workers/rust_worker/.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/target
2-
Cargo.lock

0 commit comments

Comments
 (0)