#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

#365 in Operating systems

Download history 966/week @ 2024-11-17 527/week @ 2024-11-24 1098/week @ 2024-12-01 1067/week @ 2024-12-08 1146/week @ 2024-12-15 301/week @ 2024-12-22 253/week @ 2024-12-29 683/week @ 2025-01-05 1131/week @ 2025-01-12 1091/week @ 2025-01-19 1096/week @ 2025-01-26 675/week @ 2025-02-02 800/week @ 2025-02-09 969/week @ 2025-02-16 961/week @ 2025-02-23 1079/week @ 2025-03-02

3,867 downloads per month
Used in 13 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–340KB