#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

#356 in Operating systems

Download history 1065/week @ 2024-07-23 848/week @ 2024-07-30 644/week @ 2024-08-06 664/week @ 2024-08-13 634/week @ 2024-08-20 956/week @ 2024-08-27 714/week @ 2024-09-03 736/week @ 2024-09-10 670/week @ 2024-09-17 780/week @ 2024-09-24 650/week @ 2024-10-01 638/week @ 2024-10-08 518/week @ 2024-10-15 788/week @ 2024-10-22 602/week @ 2024-10-29 775/week @ 2024-11-05

2,862 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

~28–315KB