6 releases
0.3.1 | Oct 18, 2023 |
---|---|
0.3.0 | Oct 18, 2023 |
0.2.2 | Oct 9, 2023 |
0.2.1 | Sep 26, 2023 |
0.1.0 | May 21, 2023 |
#3 in #vita
48 downloads per month
11KB
232 lines
vita-newlib-shims
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:
-
Add it as a dependency to your project
cargo add vita-newlib-shims
-
Import this crate in the root of your project:
#[cfg(target_os = "vita")] use vita_newlib_shims as _;
-
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:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
Dependencies
~44KB