This is a "pie in the sky" question. I don't think it's possible, and I don't even really know how to ask the question. But I'm hoping that someone may have an answer, or an alternative way of doing the same thing.
I have a number of structs that I wanted to define decoratively, and they each have a lot of boiler plate. So, I have a combination of a derive macro and a couple attribute macros that do the work for me.
I really appreciate the conversation. It seems like there is no production-safe way of doing what I'm wanting, but I was able to get the GitHub - dtolnay/linkme: Safe cross-platform linker shenanigans crate working in such a way as to do what I wanted. Since the project I'm working on is really an experiment, I'm comfortable using it for now.
@MichaelV I couldn't see any documentation about why they were archived. What is the bug?
The linkme solution actually works really well (so far). I was even able to add the distributed_slice into the existing procedural macro. I haven't hit the reported issue, but needless to say I don't think I would want to use this for anything other than this research experiment.