Skip to content

Commit 8b46316

Browse files
authored
Use Custom crates feed for azure builds (#33)
1 parent 286b055 commit 8b46316

File tree

27 files changed

+123
-4
lines changed

27 files changed

+123
-4
lines changed

.cargo/config.toml.disabled

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[source.crates-io]
2+
replace-with = 'ms-crates-io'
3+
4+
[registries.ms-crates-io]
5+
index = "sparse+https://pkgs.dev.azure.com/vscode/_packaging/crates/Cargo/index/"
6+
17
# -Cehcont_guard: Enable EH Continuation Metadata (https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-eh-continuation-metadata).
28
# -Ccontrol-flow-guard: Enable Control Flow Guard, needed for OneBranch's post-build analysis (https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-control-flow-guard).
39
# -Ctarget-feature=+crt-static: Statically link the CRT (required to link the spectre-mitigated CRT).

Cargo.lock

Lines changed: 42 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ resolver = "2"
55
[profile.release]
66
strip = true
77
lto = true
8-
codegen-units = 1
8+
codegen-units = 1
9+
# Enable full debug info for optimized builds.
10+
debug = "full"
11+
# Split debuginfo into its own file to reduce binary size.
12+
split-debuginfo = "packed"

crates/pet-cache/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "pet-cache"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
pet-fs = { path = "../pet-fs" }
811
pet-python-utils = { path = "../pet-python-utils" }

crates/pet-conda/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "pet-conda"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
pet-fs = { path = "../pet-fs" }
811
pet-python-utils = { path = "../pet-python-utils" }

crates/pet-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "pet-core"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
pet-fs = { path = "../pet-fs" }
811
pet-python-utils = { path = "../pet-python-utils" }

crates/pet-env-var-path/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "pet-env-var-path"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
pet-core = { path = "../pet-core" }
811
pet-fs = { path = "../pet-fs" }

crates/pet-fs/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ name = "pet-fs"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
log = "0.4.21"

crates/pet-global-virtualenvs/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "pet-global-virtualenvs"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
pet-core = { path = "../pet-core" }
811
pet-fs = { path = "../pet-fs" }

crates/pet-global/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ name = "pet-global"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[target.'cfg(target_os = "windows")'.dependencies]
7+
msvc_spectre_libs = { version = "0.1.1", features = ["error"] }
8+
69
[dependencies]
710
log = "0.4.21"

0 commit comments

Comments
 (0)