Rantanen / intercom

Object based cross-language FFI for Rust
MIT License
63 stars 7 forks source link

Make #[com_library] into a proc macro #53

Closed Rantanen closed 5 years ago

Rantanen commented 6 years ago

The #[com_library] should be a crate level attribute. Currently it is not, because I had trouble making it such due to hygiene issues or some such.

Once we get syn 0.12 in, we should try to turn it into a crate level attribute again.

Rantanen commented 5 years ago

We probably can't have this for a while so we might end up going with com_library!(...) macro instead. It's not as neat (as it's not that clear that it really affects the whole crate), but at least it should work.

The current workaround is a bit ugly (See testlib\src\lib.rs in #89).