vita-newlib-shims

Crates.iovita-newlib-shims
lib.rsvita-newlib-shims
version0.3.1
sourcesrc
created_at2023-05-21 10:39:16.515958
updated_at2023-10-18 14:15:37.399705
descriptionShims for libc functions not provided by Vita SDK newlib
homepagehttps://github.com/vita-rust/vita-newlib-shims
repositoryhttps://github.com/vita-rust/vita-newlib-shims
max_upload_size
id869883
size21,647
crate-maintainers (github:vita-rust:crate-maintainers)

documentation

README

vita-newlib-shims

MIT/Apache 2.0 Crates.io GitHub Actions Build Status Current Release Main Commits RSS Feed

Standard library support for PlayStation Vita in Rust relies on Vita SDK newlib. Unfortunately, not all of the POSIX functions are implemented in it.

This repository aims to temporarily fix that by providing shims for the missing functions.

To use this crate:

  1. Add it as a dependency to your project

    cargo add vita-newlib-shims
    
  2. Import this crate in the root of your project:

    #[cfg(target_os = "vita")]
    use vita_newlib_shims as _;
    
  3. VITASDK environment variable must be set to your Vita SDK location.

During build this crate will check the exported symbols from the libc.a object file using arm-vita-eabi-nm of your Vita SDK installation, and will only provide shims for the missing functions.

License

Except where noted (below and/or in individual files), all code in this repository is dual-licensed at your option under either:

Commit count: 30

cargo fmt