Skip to content

Commit a98aeea

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 a98aeea

File tree

10 files changed

+553
-396
lines changed

10 files changed

+553
-396
lines changed

Cargo.lock

Lines changed: 220 additions & 51 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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ 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 }
2831
thiserror = { workspace = true }
2932
zip = { workspace = true }
@@ -33,4 +36,6 @@ assert_cmd = { workspace = true }
3336
assert_fs = { workspace = true }
3437
anyhow = { workspace = true }
3538
fs-err = { workspace = true }
39+
p12 = "0.6.3"
40+
rcgen = "0.14.3"
3641
which = { workspace = true }

0 commit comments

Comments
 (0)