Skip to content

Commit 6fab794

Browse files
authored
Strip debug info from the wheels (#194)
This greatly shrinks the final wheels, from ~56 MB to ~9.5 MB. Originally we tried full stripping, that would bring the wheels down to ~7.5 MB. Just symbols seems like a reasonable middle ground.
1 parent 3c97bfc commit 6fab794

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ resolver = "2"
2323

2424
[profile.release]
2525
debug = 1
26+
strip = "debuginfo"
2627
# lto = "thin"
2728
# codegen-units = 1
2829

@@ -39,4 +40,4 @@ toktrie = { path = "toktrie" }
3940
llguidance = { path = "parser" }
4041
toktrie_hf_tokenizers = { path = "toktrie_hf_tokenizers" }
4142
toktrie_hf_downloader = { path = "toktrie_hf_downloader" }
42-
toktrie_tiktoken = { path = "toktrie_tiktoken" }
43+
toktrie_tiktoken = { path = "toktrie_tiktoken" }

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ python-source = "python"
2424
module-name = "llguidance._lib"
2525
manifest-path = "python_ext/Cargo.toml"
2626
sdist-generator = "git"
27-
# strip = true
2827
# features = ["llguidance/logging"]

0 commit comments

Comments
 (0)