Sean1708 / rusty-cheddar

A Rust crate for automatically generating C header files from Rust source file.
http://sean1708.github.io/rusty-cheddar/
191 stars 25 forks source link

Disallow any generics. #23

Open Sean1708 opened 8 years ago

Sean1708 commented 8 years ago

Currently

type MyOption = Option<i32>;

will be converted into

typedef Option MyOption;

which is very obviously wrong, it should just be ignored.

Also generics in structs should cause an error.

Sean1708 commented 8 years ago

The problem with this is that the generics aren't known until fairly deep in the AST, so it will require a more complex parser.