-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow for a way to package and sign executables #10430
Comments
We talked about this in today's @rust-lang/cargo meeting. We've previously talked about adding post-build scripts for things like running the executable to generate completions, manpages, etc, and placing them in a dedicated directory that That does suggest that the design for post-build scripts needs to take the Any such post-build mechanism would need an RFC, and a fair bit of careful design. At the moment, we don't have the bandwidth available to do the design for post-build scripts, or even to iterate on a design for them with someone. That's not an indication that we'd be opposed to the concept, just that that would be a fair bit of new complexity that we don't currently have the bandwidth for. We're going to close this in favor of #545. I've also added a comment to #545 referencing this, and noting that the design for post-build scripts would need to take |
@joshtriplett I totally understand bandwidth as a prioritization mechanism ;-), would there be a way in which we could contribute this and do some of this work ourselves, together with the cargo team. I'd be happy to invest into making this part of cargo quite a bit nicer to use tbh. |
Problem
Right now
cargo
allows quite some configuration already when it comes to setting up a build, however, to support android (and iOS, and consoles) properly, it would need to have extensibility for two additional steps.-Zmultitarget
feature #8176Right now
cargo-apk
needs to perform these steps itself, however I would hope to eventually be able to get rid ofcargo-apk
as an intermediate tool and instead to be able to use vanilla cargo to be able to build and run apk's.Proposed Solution
I propose an additional stage that runs after the linker which simply invokes a binary with the filename(s) for the previous (multi)target build. This tool should be able to generate a package, that can then be picked up by a (custom) runner.
Notes
No response
The text was updated successfully, but these errors were encountered: