An open API service indexing awesome lists of open source software.

https://github.com/starcoinorg/usbsolver


https://github.com/starcoinorg/usbsolver

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

* Usb solver
** Compile
#+BEGIN_SRC bash
cargo build
#+END_SRC
then, you get a shared libary named libsolver.so (linux) or libsolver.dylib (macos) under ./target/debug/

** Plugin to miner_client

#+BEGIN_SRC bash
starcoin_miner -p ${path_of_the_solver_libary}
#+END_SRC

** Plugin to starcoin node
Edit the config.yaml of starcoin node, in miner.client_config session

#+BEGIN_SRC
[miner.client_config]
plugin_path = ${path_of_the_solver_libary}
#+END_SRC

** Q&A
libstd not find error, set env below:

Macos:
#+BEGIN_SRC
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export DYLD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH"
#+END_SRC

Linux:
#+BEGIN_SRC
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH"
#+END_SRC