#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

#306 in Operating systems

Download history 1613/week @ 2024-06-19 700/week @ 2024-06-26 800/week @ 2024-07-03 834/week @ 2024-07-10 910/week @ 2024-07-17 966/week @ 2024-07-24 784/week @ 2024-07-31 692/week @ 2024-08-07 631/week @ 2024-08-14 682/week @ 2024-08-21 927/week @ 2024-08-28 844/week @ 2024-09-04 542/week @ 2024-09-11 778/week @ 2024-09-18 777/week @ 2024-09-25 459/week @ 2024-10-02

2,816 downloads per month
Used in 10 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

~29–255KB