sensorial-systems / ligen

Apache License 2.0
20 stars 3 forks source link

Build crate ignoring #[ligen] macro calls #52

Closed arrudagates closed 3 years ago

arrudagates commented 3 years ago

Make it possible to build the crate normally and on the stable toolchain while skipping over the #[ligen] macro calls when being built without cargo ligen

arrudagates commented 3 years ago

This is not necessary in the Ligen crate, we can allow ligen to be called but ignore it in the generators if the rustc flag is not set, which is being set in cargo-ligen before running build