https://github.com/hkalbasi/co2 is basically a C frontend for rustc.
It follows the zen of Crust:
- Everything is unsafe without needing the
unsafe keyword
- Pointers and references cast to each other, lifetimes are ignored (they may be used in emitting some warnings, but you can allow them away)
- Drop is explicit (you don't need drop if you are no_std, but anyway)
- Everything is public by default
- Everything is
Copy by default
You can try it on godbolt: https://godbolt.org/z/vK6KE1zzh
The only difference is that while Cargo is not mandatory, it is encouraged. I see no fun in writing makefiles, and CO2 makes dependencies a little less hostile (by auto casting references and pointers and explicit drops) but YMMV.
I just wanted to know your opinion, and this is not a real issue, so feel free to close it.
https://github.com/hkalbasi/co2 is basically a C frontend for rustc.
It follows the zen of Crust:
unsafekeywordCopyby defaultYou can try it on godbolt: https://godbolt.org/z/vK6KE1zzh
The only difference is that while Cargo is not mandatory, it is encouraged. I see no fun in writing makefiles, and CO2 makes dependencies a little less hostile (by auto casting references and pointers and explicit drops) but YMMV.
I just wanted to know your opinion, and this is not a real issue, so feel free to close it.