cargo build
then, you get a shared libary named libsolver.so (linux) or libsolver.dylib (macos) under ./target/debug/
starcoin_miner -p ${path_of_the_solver_libary}
Edit the config.yaml of starcoin node, in miner.client_config session
[miner.client_config] plugin_path = ${path_of_the_solver_libary}
libstd not find error, set env below:
Macos:
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export DYLD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH"
Linux:
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH"