Skip to content

c5soft/tinyrlibc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Rust libc

Introduction

This is a tiny libc implementation, mostly (but not entirely) written in the Rust programming language. It is useful for bare-metal embedded Rust applications that need a C library (maybe because of some third-party library written in C they want to use) but don't want to link against a full newlib, or who tried but had trouble with both newlib and compiler_builtins defining symbols like memset.

This crate basically came about so that the nrfxlib binary interface library for the nRF9160 would work with Rust.

Implemented so far

  • strol
  • atoi
  • strcmp
  • strncmp
  • strncpy
  • strlen
  • strtol
  • strstr
  • strchr
  • snprintf
  • vsnprintf

Non-standard helper functions

  • itoa
  • utoa

To Do

  • Anything else nrfxlib needs
  • Anything anyone is prepared to submit

Licence

As this is going to be a bunch of bits taken from all over the place (some newlib, some relibc, etc), each function has its own file and each file has its own licence. Any new licences should be appended to the LICENCE.md file.

About

Tiny C library written in Rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 60.2%
  • C 39.8%