#libc #malloc #intel-sgx #printf #strcmp

sys rs-libc

A subset of libc that can be used with Rust in freestanding environments

6 releases

Uses old Rust 2015

0.2.4 Jun 26, 2023
0.2.3 Jul 2, 2021
0.2.2 Apr 23, 2021
0.2.1 May 20, 2020
0.1.0 Jan 24, 2019

#379 in Operating systems

Download history 768/week @ 2024-10-19 609/week @ 2024-10-26 848/week @ 2024-11-02 545/week @ 2024-11-09 954/week @ 2024-11-16 519/week @ 2024-11-23 1116/week @ 2024-11-30 1066/week @ 2024-12-07 1149/week @ 2024-12-14 317/week @ 2024-12-21 257/week @ 2024-12-28 651/week @ 2025-01-04 1071/week @ 2025-01-11 1159/week @ 2025-01-18 1100/week @ 2025-01-25 574/week @ 2025-02-01

4,030 downloads per month
Used in 12 crates (via mbedtls)

Custom license

96KB
3.5K SLoC

GNU Style Assembly 2K SLoC // 0.0% comments C 1.5K SLoC // 0.1% comments Rust 162 SLoC // 0.1% comments

rs-libc

This is a subset of libc that can be used with Rust inside SGX. Functions are added on an as-needed basis.

errno

errno is not supported. Functions that have had errno functionality removed:

  • strtod
  • strtof
  • strtoimax
  • strtol
  • strtold
  • strtoll
  • strtoul
  • strtoull
  • strtoumax

Dependencies

~28–335KB