-
Notifications
You must be signed in to change notification settings - Fork 112
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
Update to cargo-subcommand 0.8.0
with clap
argument parser
#238
Conversation
b48cea8
to
90e6171
Compare
90e6171
to
96ea7a0
Compare
@dvc94ch Now that rust-mobile/cargo-subcommand#15 is in would you mind rebasing this? |
@MarijnS95 not sure it's worth it. I'd recommend giving |
@dvc94ch Without even looking at the code or testing it out, I really dislike your approach of throwing the status quo out and starting over from scratch. |
it has a clearly different scope to cargo-apk. I don't think I'm throwing the status quo out. It doesn't replace |
In fact, looking at your repo, I see a lot of familiar files. Files I've recently fixed bugs in, or contributed new features to, here in I am just uncomfortable maintaining the same thing in two disconnected repos, and as such only feel ready to try out and migrate to (Fwiw why bring ndk/ndk-glue/ndk-context up, when this issue is clearly only about cargo-apk/ndk-build/cargo-subcommand?) |
I'm aware of that, and I appreciate it.
before the renewed effort to maintain cargo-subcommand I did copy some parts. it shares very little or no code with cargo-apk or ndk-build other than some manifest structs I really don't want to force you to use x if you don't like it :) |
just for clarification, no particular reason. anyway, I was asking about how to move forward, I'm happy to factor out shared components to decrease the maintainance burden or whatever. for various reasons it happened to turn out like this (it starting out as a research project). now there is a what I believe is a useful tool which I spent 3 months building. but I'm also fine going our separate ways. |
Fair enough, this had to start somewhere. I don't mind factoring out shared components as long
I'm very happy about this. Setting those up and having a Java dependency (for at least
I want to use
I'm then not sure what to do with |
that would be the first step, really looking forward to get your feedback on this.
There are a couple of differences between 2.1 2.2 C++ has not been tested, think it's just a matter of including the libc++ 2.3 cmake has not been tested, but think we agreed previously that cmake should fix any issues instead of us working around it 2.4 manifest is parsed from the 2.5 ndk-debug is not supported. I have a work in progress 2.6 not all resource stuff is supported in the rust aapt port. mostly just allows setting a icon mipmap and launch screen, as flutter does it's own cross platform resource management. this is probably the biggest downside, but hardcore android devs likely use 2.7 x currently repackages the android ndk (basically just takes the sysroot and leaves the rest). this means we currently only support the latest ndk. in the future we can see about supporting multiple ndk/sdk versions accross windows/macos/ios/android, at the moment you just get what we give you.
That would be cool, but let's start with 1 first :)
By removing the reliance on shell/python scripts spread out through the ndk and doing everything in rust, ndk-build is not really that useful anymore. Instead there is a bit of code to handle each platform in various places without requiring much special handling for android. You can simply call
Not sure about this one. Can probably move some of the code in |
Reopening and resolving conflicts as I really like to get this cleanup/improvement in. Will re-review and dogfood this on my own working env for a while. |
cargo-subcommand
with clap
argument parser
33fc099
to
f047614
Compare
@msiglreith PTAL. @dvc94ch also feel free to check what I made of your changes, if you have the time 😬 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, checked it locally and functionality seems to be all there
I'll push out a |
cargo-subcommand
with clap
argument parsercargo-subcommand 0.8.0
with clap
argument parser
Fixes #182
Fixes #217