You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following #942 to reuse an opaque rust type across cxx bridges by manually implementing ExternType. I found that if the two cxx bridges are in the same file it fails.
error[cxxbridge]: the name `Process` is defined multiple times
┌─ src/main.rs:34:9
│
34 │ type Process = crate::handle::Process;
│ ^^^^^^^^^^^^ the name `Process` is defined multiple times
However, if i move one of the modules containing a bridge to another file it works.
We have a solution internally and a RFC and a PR open here (#1187) since months.
Unfortunately, there is absolutely no feedback by the crate owner on the PRs and RFCs here (we have a lot of advanced functionality already used in our project, but I can't get it upstreamed w/o owner's review).
I am following #942 to reuse an opaque rust type across cxx bridges by manually implementing
ExternType
. I found that if the two cxx bridges are in the same file it fails.However, if i move one of the modules containing a bridge to another file it works.
Here is an example of the issue, and the same bridges working when separated to different files.
The text was updated successfully, but these errors were encountered: