KDAB / cxx-qt

Safe interop between Rust and Qt
https://kdab.github.io/cxx-qt/book/
993 stars 66 forks source link

Follow the cxx build for output file names #855

Open ahayzen-kdab opened 5 months ago

ahayzen-kdab commented 5 months ago

At the moment we use the file stem or the module ident or the cxx_file_stem depending on the situation in cxx-qt-build.

With CXX if the bridge is in src/folder/binding.rs they generate src/folder/binding.rs.h.

In this situation should we do the following bridge type proposed path current path
#[cxx::bridge] src/folder/binding.rs.h binding.cxx.h
#[cxx_qt::bridge] src/folder/binding.rs.qt.h binding.cxxqt.h
#[cxx_qt::bridge(cxx_file_stem = "binding"] binding.rs.qt.h binding.cxxqt.h

Note that due missing support in macros we cannot find the path in the second case (as seen in #200 ) so ...