I intend to use Jolt as dynamic link library (.so file + libloading
crate) but I encountered an issue where the libloading
fails to load the .so file.
├── guest
│ ├── Cargo.toml
│ └── src
│ └── lib.rs
├── lib-producer
│ ├── Cargo.toml
│ ├── rust-toolchain.toml
│ └── src
│ └── lib.rs
├── lib-consumer
│ ├── Cargo.toml
│ └── src
│ └── main.rs
guest
is the sample fibonacci guest codelib-producer
is a Rust library package with target[lib] crate-type = ["rlib", "cdylib"]
- this will produce
lib-producer/target/release/liblib_producer.so
file
- this will produce
lib-consumer
is a Rust app that tries to load dynamic library file fromlib-producer
- Go to
lib-producer/
- Run
cargo build -r
- This will produce file
lib-producer/target/release/liblib_producer.so
- Run
- Go to
lib-consumer/
- Run
cargo run
- The output showing errors
- Run