Skip to content

Automate locating path to the output binary. #2

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

Open
imunproductive opened this issue Nov 13, 2024 · 0 comments
Open

Automate locating path to the output binary. #2

imunproductive opened this issue Nov 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@imunproductive
Copy link
Member

Currently you need to provide extension to the binary file yourself, and its ugly. It seems like there are no convenient way to predict path to the binary, and the only option to get it is to pass --message-format=json argument to cargo build and listen for compiler-artifact message where package_id is the same as package we are trying to build (and target matches). Then its possible to extract path to the output binary via filenames and executable fields. But for example compiling target with type cdylib for Windows outputs 5 different files in filenames. Need to think how to properly handle this.

@imunproductive imunproductive added the enhancement New feature or request label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant