diff options
| author | sneurlax <sneurlax@gmail.com> | 2024-10-10 14:05:32 -0500 |
|---|---|---|
| committer | sneurlax <sneurlax@gmail.com> | 2024-10-10 14:05:51 -0500 |
| commit | 2a316156e914e744ed8aae501a5d5c4061df5f73 (patch) | |
| tree | 1d0e9122156db784113cb8a6003d11d985043ff8 /impls/monero_rust/README.md | |
| parent | d780ed915352dcb2b3b9718cea50a47965cb587f (diff) | |
add example rust binding
Diffstat (limited to 'impls/monero_rust/README.md')
| -rw-r--r-- | impls/monero_rust/README.md | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/impls/monero_rust/README.md b/impls/monero_rust/README.md index eeb3524..fa851fa 100644 --- a/impls/monero_rust/README.md +++ b/impls/monero_rust/README.md @@ -2,8 +2,15 @@ `monero_c` bindings for Rust. ## Getting started +<!-- +### Prerequisites +You may need +``` +sudo apt-get install libhidapi-dev +``` +--> 1. Build `monero_c` -2. Copy the `monero_c` static library to `monero_rust`. +2. Copy the `monero_c` library to `monero_rust`. 3. Run `monero_rust` example ### Build `monero_c` @@ -26,12 +33,13 @@ git submodule update --init --recursive --force ``` <!-- TODO add unxz etc --> -### Copy the `monero_c` static library to `monero_rust`. -Copy your `libwallet` static library to `monero_c/impls/monero_rust/lib`. +### Copy the `monero_c` library to `monero_rust`. +Copy your `libwallet` library to `monero_c/impls/monero_rust/lib`. ``` cp build/release/monero/x86_64-linux-gnu_libwallet2_api_c.so ../lib +mv ../lib/x86_64-linux-gnu_libwallet2_api_c.so ../lib/libx86_64-linux-gnu_libwallet2_api_c.so ``` -<!-- TODO automatically copy using arch provided as param IAW TODO above --> +<!-- TODO automatically copy and rename using arch param IAW TODO above --> ### Run `monero_rust` example From `monero_c/impls/monero_rust`: |
