https://github.com/nugine/mimalloc-oxide
https://github.com/nugine/mimalloc-oxide
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nugine/mimalloc-oxide
- Owner: Nugine
- Created: 2024-12-01T11:41:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T19:08:11.000Z (5 months ago)
- Last Synced: 2025-02-14T11:34:39.900Z (3 months ago)
- Language: Rust
- Size: 532 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mimalloc-oxide
An experiment on transpiling [mimalloc](https://github.com/microsoft/mimalloc) to pure Rust using [c2rust](https://github.com/immunant/c2rust).
## Toolchain
OS: Ubuntu 22.04
| Toolchain | Version |
| :-----------------------------------: | :------: |
| [Rust](https://rustup.rs/) | ^1.81.0 |
| Python | ^3.10.12 |
| [just](https://github.com/casey/just) | ^1.36.0 |
| [bear](https://github.com/rizsotto/Bear) | - |
| c2rust requirements | https://github.com/immunant/c2rust |## Reproduction
Download repository:
```bash
git clone https://github.com/Nugine/mimalloc-oxide.git
cd mimalloc-oxide
```Download submodules:
```bash
git submodule update --init --recursive
```Merge mimalloc sources:
```bash
just single
```Transpile mimalloc to Rust:
```bash
just preprocess
just c2rust
just postprocess
```Run tests:
```bash
just test
```## Limitations
+ Only supports x86_64-unknown-linux-gnu now
+ Potential bugs and undefined behaviors