Skip to content

How can I get smaller closure sizes for use in Docker images? #75

Answered by ipetkov
shanesveller asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the report @shanesveller! This is actually a bug: #80

The tl;dr is that rust will include links to source files in panic info (e.g. line numbers) which nix sees as the final binary still "depending" on those sources. We go to some lengths to break the false-dependency but looks like it was broken and I didn't have the tests to catch it 😬

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@shanesveller
Comment options

@shanesveller
Comment options

@dpc
Comment options

Comment options

You must be logged in to vote
1 reply
@ipetkov
Comment options

Answer selected by ipetkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants