ekzhang / crepe

Datalog compiler embedded in Rust as a procedural macro
Apache License 2.0
460 stars 16 forks source link

Making the structs public #4

Closed gzsombor closed 3 years ago

gzsombor commented 3 years ago

As suggested in the documentation, I've put the 'crepe' definition into a module, however, as all the input/output structs are generated as private, I can't access or create them. It would be nice, if I could specify:

@input
pub struct Node(...)

I understand, that after a while, when the project grows big enough, separating the crepe related code, and the outer code is inevitable, however for a small-to-moderate, playground/POC style, that could be an easy win.