From c2c2f2c00dba3b7253627ddfaec37b2d015ba36b Mon Sep 17 00:00:00 2001 From: sneurlax Date: Thu, 10 Oct 2024 21:26:30 -0500 Subject: allow lib to be loaded by consumer crates and document the required placement --- impls/monero_rust/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'impls/monero_rust/README.md') diff --git a/impls/monero_rust/README.md b/impls/monero_rust/README.md index 5affbd1..87d23a3 100644 --- a/impls/monero_rust/README.md +++ b/impls/monero_rust/README.md @@ -10,7 +10,7 @@ sudo apt-get install libhidapi-dev ``` --> ### Build `monero_c` -Build the monero_c Library for your architecture. Follow the upstream docs at +Build the monero_c library for your architecture. Follow the upstream docs at https://github.com/MrCyjaneK/monero_c and place the library at `monero_c/impls/monero_rust/lib/libwallet2_api_c.so` or use the provided script: @@ -35,8 +35,12 @@ mv release/monero/x86_64-linux-gnu_libwallet2_api_c.so ../lib/libwallet2_api_c.s # The library should be at monero_c/impls/monero_rust/lib/libwallet2_api_c.so. ``` -### Run `monero_rust` example +### Run `monero_rust` demo From `monero_c/impls/monero_rust`: ``` cargo run ``` + +## Using `monero_rust` in your own crate +Refer to the `example` folder. `libwallet2_api_c.so` must be in the same +directory as the binary (*eg.* at `example/target/debug/libwallet2_api_c.so`). -- cgit v1.2.3