rust-mobile / cargo-apk

Helps cargo build APKs
Apache License 2.0
112 stars 31 forks source link

allow relative paths for manifest sources #59

Open PetoMPP opened 5 months ago

PetoMPP commented 5 months ago

I am using the cargo-apk crate in a workspace enabled project and I had problems with assets folder not being a subdirectory of manifest.parent, so I implemented a small feature allowing for canonical paths with a fallback to previous handling.

MarijnS95 commented 5 months ago

The main reason for this is so that paths are relative to the crate root and shouldn't exit the crate boundary. That makes it easier when packaging/publishing crates even though relative paths are still allowed iirc.

While this may be an annoying limitation for crates in workspaces, those crates are still independent.