Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(packager): config for binaries dir #197

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Conversation

lucasfernog-crabnebula
Copy link
Member

Currently cargo-packager expects the Config::out_dir value to contain the binaries to package AND uses it as the output directory. For Rust projects we manually detect the binaries output directory, so it's impossible to use a custom output directory for the packages.

This PR adds a Config::binaries_dir option so you can separate the package output directory and the relative-path-binaries source. With this change, it is possible to run cargo packager ./out/packager in a Rust project and it'll manually detect the binaries dir while using the provided output directory without crashing or failing to find the binaries.

@amr-crabnebula amr-crabnebula merged commit 3057a4a into main Apr 15, 2024
22 checks passed
@amr-crabnebula amr-crabnebula deleted the feat/binaries-dir branch April 15, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants