so when i learned about Cargo features and that they even work in enums i thought i could use that to select features in my program.
I also thought that the cfg!() macro would work as well, but apparently it does not in this case:
I find this example working when i remove the “#[cfg(feature = “testfeature”)]” from the enum.
But when i add this line (and since the playpen doesn’t enable this feature, the enum will be missing SomeFeature), the compilation fails, because SomeFeature is not available. Of course my hope was that the macro would remove the block containing SomeFeature…
Is this just something that is not supposed to work and my misunderstanding or some edge case that may be a future feature?