rust-mobile / android-activity

Glue for building Rust applications on Android with NativeActivity or GameActivity
238 stars 46 forks source link

Investigate migrating naive `libc` code to managed/safe `rustix` #139

Open MarijnS95 opened 11 months ago

MarijnS95 commented 11 months ago

Actually I think we should switch to nix or rustix: no code below is validating the error codes returned by libc, while those APIs do.

On quick inspection I prefer rustix: they return OwnedFd from pipe() rather than nix' returning RawFd.

_Originally posted by @MarijnS95 in https://github.com/rust-mobile/android-activity/pull/116#discussion_r1311453261_