#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

#214 in Operating systems

Download history 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 1089/week @ 2025-01-25 671/week @ 2025-02-01 805/week @ 2025-02-08 970/week @ 2025-02-15 969/week @ 2025-02-22 1117/week @ 2025-03-01 1299/week @ 2025-03-08 881/week @ 2025-03-15 1117/week @ 2025-03-22 924/week @ 2025-03-29 1253/week @ 2025-04-05

4,281 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–305KB