This is a demonstration of a tauri app compiled as a dynamic shared library, that can be run from another app
- Rust
- Nodejs (npm), latest LTS version recommended
Some system libraries are required depending on the host platform. Follow the instructions for your specific OS here
npm i
cd app
npm run app:dev
build the app (lib)
cd app
npm run app:build
build the runner
cd runner
cargo build
First copy the compiled shared library in a subdirectory named
lib
relative to where you want to run the app:
Example on Linux:
cd runner
mkdir lib
cp ../app/src-tauri/target/release/libvpnym.so lib
cargo run