nowfound

Dev tools · April 6, 2025

I built a Rust crate for running unsafe code safely

A Rust crate for containing memory leaks and fragmentation - brannondorsey/mem-isolate

I built a Rust crate for running unsafe code safely launched on April 6, 2025 with 113 votes, #431 of 7,818 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.

Visit github.com ↗Alternativestop 6% of April 2025

In plain words

This Rust crate provides tools for developers to execute unsafe code with safety guarantees. It targets Rust programmers who need to work with unsafe operations but want additional protection mechanisms. The crate stands out by offering a structured approach to managing unsafe code, reducing the risk of common vulnerabilities that can arise from unrestricted unsafe blocks.

written from the facts on this page · September 2026

From the sources

mem-isolate runs your function via a fork() , waits for the result, and returns it. This grants your code access to an exact copy of memory and state at the time just before the call, but guarantees that the function will not affect the parent process's memory footprint in any way. It forces functions to be memory pure (pure with respect to memory), even if they aren't. use mem_isolate :: execute_in_isolated_process ; // No heap, stack, or program memory out here... let result = mem_isolate :: execute_in_isolated_process ( || { // ...Can be affected by anything in here unsafe { gnarly_cpp_bindings :: potentially_leaking_function ( ) ; unstable_ffi :: segfault_prone_function ( ) ;…from github.com

Does a similar job

all alternatives →
  • Sandboxing untrusted code using WebAssemblyFeb 2026 · github.com · ▲76

    Hi everyone, I built a runtime to isolate untrusted code using wasm sandboxes. Basically, it protects your host system from problems that untrusted code can cause. We’ve had a great discussion about sandboxing in Python lately that elaborates a bit more on the problem [1]. In TypeScript, wasm integration is even more natural thanks to the close proximity between both ecosystems. The core is built in Rust. On top of that, I use WASI 0.2 via wasmtime and the component model, along with custom SDKs that keep things as idiomatic as possible. For example, in Python we have a simple decorator:…

  • An Express-inspired web framework for Rust2022 · crates.io · ▲85

    crates.io serves as a central registry for sharing crates, which are packages or libraries written in Rust that you can use to enhance your projects

  • JSON-Threat-Protection Rust High-Performance Crate2024 · github.com · ▲34

    A crate to protect against malicious JSON payloads. - ADD-SP/json-threat-protection.rs

  • TRUST – Coding Rust like it's 1989May 2026 · github.com · ▲178

    TRUST – Coding Rust like it's 1989. Contribute to wojtczyk/trust development by creating an account on GitHub.

  • Sandy – A tiny Sandbox to run untrusted code ️2020 · github.com · ▲64

    A tiny "sandbox" to run untrusted code 🏖️. Contribute to craigmulligan/sandy development by creating an account on GitHub.

  • Cargo-memex – compile rust code into a meme and run it2021 · github.com · ▲61

    compile rust code into memes. Contribute to mattsse/cargo-memex development by creating an account on GitHub.

More dev tools this month

the category →
  • /dev/null▲468

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲340

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 27d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, April 2025

the whole month →
  • Hi everyone, I built PyXL — a hardware processor that executes a custom assembly generated from Python programs, without using a traditional interpreter or virtual machine. It compiles Python -> CPython Bytecode -> Instruction set designed for direct hardware execution. I’m sharing an early benchmark: a GPIO test where PyXL achieves a 480ns round-trip toggle — compared to 14-25 micro seconds on a MicroPython Pyboard - even though PyXL runs at a lower clock (100MHz vs. 168MHz). The design is stack-based, fully pipelined, and preserves Python's dynamic typing without static type restrictions.…

    Dev tools · 2025 · runpyxl.com

  • The Unsure Calculator is an online tool that lets you calculate with numbers you’re not sure about.

    Life & fun · 2025 · filiph.github.io

  • https://the-pocket.github.io/Tutorial-Codebase-Knowledge/

    AI · 2025 · github.com

  • Whatting▲898

    The iPad diary, just for you

    Work · 2025 · whatting.com

  • Browser with AI companions that automate web tasks

    AI · 2025 · strawberrybrowser.com

  • Peek▲828

    AI personal finance coach that guides you through decisions

    Work · 2025 · peek.money