BrainiumLLC / cargo-mobile

Rust on mobile made easy!
Apache License 2.0
1.23k stars 52 forks source link

draft: windows support #8

Closed chiefbiiko closed 3 years ago

chiefbiiko commented 3 years ago

been diggin into windows wormholes...

francesca64 commented 3 years ago

Thanks so much for tackling this! It's a huge help.

It looks like creating symlinks without admin is possible: https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/

That was formally released April 2017, which seems reasonably long ago to me.

chiefbiiko commented 3 years ago

It looks like creating symlinks without admin is possible: https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/

the link says unelevated mklink is possible if "developer mode" is enabled havent heard of win dev mode yet - anyways, imho this dev mode hurdle is coequal to the admin hurdle i can investigate the CreateSymbolicLink API but am kinda sure it is what Rust's std::os::windows::fs uses and what is currently used in this draft pr

chiefbiiko commented 3 years ago

i am pretty tight on time atm anyways i would still love to help push cargo-mobile 2 windows maybe we can outline priorities - cargo android run prio high? - cargo android open prio low? ...?

francesca64 commented 3 years ago

Since it looks like Windows doesn't make symlinks easy, we can just copy the files instead. There wouldn't really be any downsides.

cargo android run, cargo android build, and cargo android check are the big things for minimal Windows support. cargo mobile init needs to work too, of course.

cargo mobile open and cargo android open are definitely lower priorities.

chiefbiiko commented 3 years ago

closing in vain