mystor / rust-cpp

Embed C++ directly inside your rust code!
Apache License 2.0
807 stars 44 forks source link

Make the cpp! macro a real proc macro #97

Open ogoffart opened 3 years ago

ogoffart commented 3 years ago

It's still using the old derive marco hack.

Having a real proc macro will also make the rust! better as we won't need an unique name in there, and we will not have to increase the recursion depth.

luke-titley commented 1 year ago

Are there any more thoughts on this ? Any plans to make this happen ?

ogoffart commented 1 year ago

I've been wanting to do that for a long time, but never got around to do it. The current system is working well enough for me so i didn't get the incentive to change work on it.

If you want to give it a try, it should be pretty easy to do.