Marwes / schemafy

Crate for generating rust types from a json schema
MIT License
242 stars 51 forks source link

Make input files relative to crate root #29

Closed software-opal closed 4 years ago

software-opal commented 4 years ago

I've taken the approach of this proc macro and made the paths relative to the crate's root(using a Cargo defined environment variable) rather than the workspace root.

This shouldn't break existing paths in root-crates; but obviously will break paths defined in workspace crates.

Fixes Marwes/schemafy#27