Skip to content

Commit 7716271

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 fb51838 commit 7716271

File tree

10 files changed

+557
-388
lines changed

10 files changed

+557
-388
lines changed

Cargo.lock

Lines changed: 211 additions & 41 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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ 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 }
26-
2730
fs-err = {workspace = true }
31+
tempfile = { workspace = true }
2832
thiserror = { workspace = true }
2933
zip = { workspace = true }
3034

@@ -33,4 +37,6 @@ assert_cmd = { workspace = true }
3337
assert_fs = { workspace = true }
3438
anyhow = { workspace = true }
3539
fs-err = { workspace = true }
40+
p12 = "0.6.3"
41+
rcgen = "0.14.3"
3642
which = { workspace = true }

0 commit comments

Comments
 (0)