Skip to content

Commit 7e9c0bf

Browse files
committed
refactor(uv-trampoline): use PE resources to store trampoline type + path to python binary
`.rsrc` is the idiomatic way of storing metadata and non-code resources in PE binaries. This should make the resulting binaries more robust as they are no longer dependent on the exact location of a certain magic number. Addresses: #15022
1 parent 60ddadd commit 7e9c0bf

File tree

8 files changed

+270
-324
lines changed

8 files changed

+270
-324
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/uv-trampoline-builder/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ production = []
2222
workspace = true
2323

2424
[dependencies]
25+
windows = { version = "0.61.0", features = [
26+
"std",
27+
"Win32_System_LibraryLoader",
28+
] }
2529
uv-fs = { workspace = true }
2630

2731
fs-err = {workspace = true }

0 commit comments

Comments
 (0)