#libc #malloc #strcmp #snprintf

sys rs-libc

A subset of libc that can be used with Rust in freestanding environments

5 releases

Uses old Rust 2015

0.2.3 Jul 2, 2021
0.2.2 Apr 23, 2021
0.2.1 May 20, 2020
0.2.0 Jul 19, 2019
0.1.0 Jan 24, 2019

#70 in Operating systems

Download history 334/week @ 2021-04-11 298/week @ 2021-04-18 284/week @ 2021-04-25 172/week @ 2021-05-02 159/week @ 2021-05-09 169/week @ 2021-05-16 153/week @ 2021-05-23 137/week @ 2021-05-30 227/week @ 2021-06-06 221/week @ 2021-06-13 280/week @ 2021-06-20 179/week @ 2021-06-27 375/week @ 2021-07-04 164/week @ 2021-07-11 265/week @ 2021-07-18 283/week @ 2021-07-25

978 downloads per month
Used in 4 crates (via mbedtls)

Custom license

94KB
3.5K SLoC

GNU Style Assembly 2K SLoC // 0.0% comments C 1.5K SLoC // 0.1% comments Rust 132 SLoC // 0.1% comments

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

No runtime deps

~135KB