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

Allow the C API to be in an arbitrary module. #18

Closed Sean1708 closed 8 years ago

Sean1708 commented 8 years ago

Also rember to stick a note in the docs reminding people to pub use that module.

Sean1708 commented 8 years ago

Need someway for the module to be specified. Either with a string

#![plugin(cheddar(module = "path::to::api"))]

which would be nice for the user but harder to implement, or with a MetaList

#![plugin(cheddar(module(path, to, api)))]

which is a less nice UX but easier to implement.

Sean1708 commented 8 years ago

Maybe parse_item_from_source_str can help with the first option.

Sean1708 commented 8 years ago

Closed in a3b3f463dc0fbad2fde4a9fef43e5c0e9482fde9.