Skip to content

You may find CO2 interesting #10

Description

@hkalbasi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions