#libc #malloc #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

#217 in Operating systems

Download history 1171/week @ 2024-01-17 1197/week @ 2024-01-24 1044/week @ 2024-01-31 1360/week @ 2024-02-07 1378/week @ 2024-02-14 1384/week @ 2024-02-21 986/week @ 2024-02-28 1026/week @ 2024-03-06 885/week @ 2024-03-13 1136/week @ 2024-03-20 1118/week @ 2024-03-27 1204/week @ 2024-04-03 1139/week @ 2024-04-10 1349/week @ 2024-04-17 1000/week @ 2024-04-24 587/week @ 2024-05-01

4,206 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

~205KB