Open ahayzen-kdab opened 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.
src/folder/binding.rs
src/folder/binding.rs.h
#[cxx::bridge]
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
Note that due missing support in macros we cannot find the path in the second case (as seen in #200 ) so ...
cxx_qt::bridge
cxx_file_stem
source_file()
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 generatesrc/folder/binding.rs.h
.#[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 ...
cxx_qt::bridge
without acxx_file_stem
until spansource_file()
API is stable