|
2 tahun lalu | |
---|---|---|
.. | ||
src-app1 | 2 tahun lalu | |
src-tauri | 2 tahun lalu | |
README.md | 3 tahun lalu |
This is an example of compiling tauri as a dynamic shared library and running it from another app.
Note that bundling of resources via tauri.conf.json may not work in some cases due to the nature of the build. So you have to be aware of copying any files needed to the correct paths for html / js etc.
Typically there are 3 types of libraries rust can generate
Typically cdylib libraries are used for interop with C / C++ Projects but this can also include other languages. The src-tauri example uses the cdylib crate type
# First build the library
cd src-tauri
cargo build
cd ..
# Next build the app
cd src-app1
cargo build
# Next run the app
cargo run