Strip ff2mpv-rust
binary in release build
#9
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ryze/ff2mpv-rust#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently a regular release build is not stripped, which means that the produced binary is unnecessarily fat
This is solved by building with the provided
release-full
Cargo profileIs there any particular reason why a regular release-build is not stripped? I would assume that the most common way to install the
ff2mpv-rust
binary is by runningcargo install --path .
from the project root, but this will build the binary using the regular release profile (i.e. the fat binary). To actually install the optimized binary, one would have to runcargo install --profile=release-full --path .
instead.If you don't wan to strip the regular release binary, it would be nice to at least document how to install the optimized binary, preferably in the project
README
😊Typically I would use
release
profile for testing in the development workflow, but userelease-full
profile for the actual release. Compilation with LTO enabled could take a long time, especially with a lot of crates.Haven't thought that this would affect
cargo install
honestly.Perhaps inheriting
dev
and changing optimization level would be better.