Coder Social home page Coder Social logo

rulibc / c2rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from immunant/c2rust

0.0 0.0 0.0 74.08 MB

Migrate C code to Rust

Home Page: https://c2rust.com/

License: Other

C++ 4.89% CMake 0.14% Rust 70.95% Makefile 0.03% Python 7.28% Shell 0.74% C 2.56% Vim Script 0.14% Dockerfile 0.02% HTML 11.10% RenderScript 0.02% CSS 0.15% Lua 1.93% Emacs Lisp 0.01% Nix 0.01% Handlebars 0.05%

c2rust's Introduction

rulibc

rulibc is a portable POSIX C standard library written in Rust. It is under heavy development, and currently supports Windows, Linux and Redox. This is the fork of relibc(https://github.com/redox-os/relibc) for more focusing on win32/linux support. Other platform may also considerte if anybody interested to contribute.

glibc/musl alternative on linux world.

redox support will alomost unchanged with the upstream https://github.com/redox-os/relibc

The motivation for this project is:

  • Create a safer alternative to a C standard library written in C.
  • On Windows, as a alternative to msvcrt/mingw32 crt, but also support for possible posix api, it's can be used cl/gcc/clang on windows
  • On Linux, remove the need of musl/glibc, and create glibc compatiable api set. It supports linux syscalls via the sc crate.
  • Reduce issues the redox crew was having with newlib,

Supported OSes

  • Windows
  • Linux
  • Redox OS

Supported architectures

  • x86_64
  • Aarch64

Notice

The main branch are not stable, will rebase on the upstream perdically use git fetch --force to sync with the main branch. The release branch will keep stable

Developing

cargo install --force cargo-make

Build debug version

cargo make build

Build release version

cargo make build --profile production

c2rust's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.