rust-ape-example
musl-cross-make
rust-ape-example | musl-cross-make | |
---|---|---|
3 | 1 | |
172 | 10 | |
- | - | |
4.9 | 0.0 | |
7 months ago | 7 months ago | |
Rust | ||
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-ape-example
-
Patching GCC to Build Portable Executables
I did that last year :) https://github.com/ahgamut/rust-ape-example
-
Caddyhttp: Enable HTTP/3 by Default
Uhm you realize Google invented ASAN? It's how they hunt for memory bugs in software like Chrome. If you love Rust, then we're actively working to port Rust to Cosmopolitan. https://github.com/ahgamut/rust-ape-example Rust in practice has `unsafe` code which needs something like ASAN to make it safer. In order to do that, you need a C library that has first-class support for ASAN where it isn't just an afterthought. I believe that in the future, Cosmopolitan Libc is going to help Rust be even more safe going forward.
-
Rust Is Actually Portable
It looks like in the repo he made a bash script (gcc-linker-wrapper.bash) and specified ld.bfd himself for building - not as a direct requirement from rust. see: 1 2
musl-cross-make
-
Patching GCC to Build Portable Executables
I wrote this post: the title should be "Patching GCC to build Actually Portable Executables", because it refers to Cosmopolitan Libc and jart's Actually Portable Executable format.
With my gcc patch, you can now build software like vim, emacs, ninja, bash, git, gcc etc with Cosmopolitan Libc, via their usual autotools/cmake-style build system. The built executables should run on Linux, FreeBSD, MacOS, OpenBSD, NetBSD, and also Windows (although I haven't tested Windows yet.)
Here's a list of software I got to build with this technique: https://github.com/ahgamut/superconfigure
The superconfigure script is just a wrapper around the usual configure script used to build your software, supplying flags like --enable-static.
If you want to build gcc using Cosmopolitan Libc -- try out this repo: https://github.com/ahgamut/musl-cross-make/tree/gccbuild
What are some alternatives?
cosmonim - A Nim template to compile your code with the Cosmopolitan libc
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore
superconfigure - wrap autotools configure scripts to build with Cosmopolitan Libc
gcc
blink - tiniest x86-64-linux emulator
cosmopolitan - build-once run-anywhere c library
quic-go - A QUIC implementation in pure Go
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project