cc-rs
RIIR
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.
cc-rs
-
RustPython – A Python-3 (CPython >= 3.11.0) Interpreter written in Rust
It does support calling into other compilers and toolchains through build scripts and such. Take cc-rs[0] for example: this allows building C and C++ files natively without even calling an executable yourself.
In practice, I'd expect libraries to just call make/cmake/ninja for you, or (like openssl-sys) ask you to install the necessary libraries using your favourite package manager.
[0]: https://github.com/rust-lang/cc-rs
-
Any crates for compiling C ( or other language ) from a rust binary?
The cc crate (https://github.com/rust-lang/cc-rs) is widely used for compiling C code from Rust (often in a build.rs file for the purpose of wrapping a C library so that it can be used from Rust). However, I believe it generally does expect a C compiler to be present.
-
Calling C code from Rust
It might be quite tedious to compile static library manually every time we make changes in C code. The better solution is to instead utilize the cc crate, which provides an idiomatic Rust interface to the compiler provided by the host.
- cc-rs is looking for new maintainers
-
Hello, youki! Faster container runtime is written in Rust
https://github.com/alexcrichton/cc-rs This crates lets you shell out to a C compiler when building your Rust project
-
Maintain It with Zig
> You're splitting hairs in a weird way. rustc cannot compile C code. zig can.
But why do I care? I don't use rustc directly, the build system of choice does. And very few of the major build systems have an issue handling multiple languages.
Cargo (rust's build system) supports build scripts and the community has already created C/C++ compiler hooks such as https://github.com/alexcrichton/cc-rs
rustup and cargo also provide easy cross-compilation support, too.
-
Windows can't find link exe
I think it's getting confused because link.exe is in your PATH. But it's not the link.exe it expects. Link tools are detected using the cc crate so it would need to be fixed there. Would you be willing to open an issue about this?
-
Most loved programming language Rust sparks privacy concerns
It’s not super well-documented, but there is an option to change this. --remap-path-prefix $(pwd)= in your RUSTFLAGS will usually do the trick. If you have any C dependencies you’ll also need similar things in CFLAGS, see https://github.com/alexcrichton/cc-rs/issues/593
RIIR
-
First Rust Code Shows Up in the Windows 11 Kernel
It was, imo, inflated by the comments pointing to the RiiR sentiments, not the comments to that effect itself. Even repositories 'collecting' such instances (e.g. https://github.com/ansuz/RIIR) are largely not collections of making anyone to change their own software but just projects that happen to be written in Rust. (these out-of-scope issues are not being tagged appropriately). Overhyped controversy by all sides.
-
Stroustrup: “C++ is bigger than ever”
Dunno what news you have missed but there's entire internet brigades dedicated sorely to spam projects with "rewrite it in rust". There's even a repo documenting this.
-
Fish (shell) porting to Rust from C++
The OP post in the link references https://transitiontech.ca/random/RIIR (Rewrite it in Rust) as a meme.
-
Ruff: A new, fast and correct Python checker/linter
Yes, one can hope, but I wouldn't bet on it and I wouldn't suggest to RIIR. I don't want to be that person that pops up uncalled for and asks to Rewrite It In Rust. One might think "Oh it is just one additional issue to the ~2.2k already opened mypy issues" if they have at all realized that there are that many open issues.
- NVIDIA Security Team: "What if we just stopped using C?" (This is not about Rust)
-
Linus Torvalds: Rust will go into Linux 6.1
It's died down a bit now, but there is/was a non-trivial amount of stupidity from Rust advocates whenever someone ran into a memory problem with C/C++ to "re-write it in rust" or to just rewrite things in general. (IE https://transitiontech.ca/random/RIIR)
-
Τι γλώσσες ξέρετε; Πως τις μάθατε;
Or even better, RIIR the Windows kernel!
- Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, and easily integrate with other languages. Rust’s rich type system and ownership model guarantee memory-safety and thread-safety — enabling you to e
-
Would a rust rewrite solve the security issues of x.org?
What is it with people asking for rust rewrites of Xorg this week? https://github.com/ansuz/RIIR/issues/83
-
I’m waiting.
The second language is Rust, and I went with that partly because rewriting C in Rust is a meme in itself, and in part because it was much easier to think of how to nicely fix that bug in Rust than it was in C (just add a = to the range to be end-inclusive).
What are some alternatives?
mach - zig game engine & graphics toolkit
rust-learning - A bunch of links to blog posts, articles, videos, etc for learning Rust
arocc - A C compiler written in Zig.
ziglyph - Unicode text processing for the Zig programming language.
ohmygentool - LLVM/Clang based bindings generator for D language
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
wtfiles - Files that make you go WTF!
utfcpp - UTF-8 with C++ in a Portable Way
awesome-embedded-rust - Curated list of resources for Embedded and Low-level development in the Rust programming language
dstep - A tool for converting C and Objective-C headers to D modules