Closed stephan57160 closed 2 years ago
flapigen is just crate, it obviously have no idea about what is the crate name that you use. You can specify name of package with rust method, the same for c++.
Oh OK.
The package name is given by build.rs
in both examples.
Maybe, the C++ example could use MyLibrary
or anything else than just rust
, then ...
Scenario:
Use flapigen to generate JAVA & C++ bindings and library, as usual.
Observation:
Examples below are taken from android-example and cpp-example.
Java bingings are generated with a
package
name set to the application or library name (akamyapplication
):C++ bindings are generated with a
namespace
always set to rust (or internal):Proposal:
From any RUST library, the namespace could have the name of the library, similarly to what is done in JAVA (forget the
net.akaaname
).This would help to have 2 or more RUST libraries in the same C++ application (aka
myapplication
).