Having had a look at the Makefile, it seems that the installation process does not clean up. Ideally, I'd have cargo / rust generate the cdylib library, copy or move it to the relevant location, and remove the target/ folder. Why is this not done in the Makefile ? Is there some reason ?
I'd also be very much interested in the logic internal to rb-sys which allows to construct the lib/skeleton_rust_gem portion of the lib/skeleton_rust_gem/skeleton_rust_gem.so path. A quick walkthrough through what happens to determine the exact location of that path would matter quite a bit to me.
Hi.
The
.so
shared library is duplicated in the gem store after installation.See here for code: https://github.com/gl-yziquel/skeleton_rust_gem/tree/develop Tagged: https://github.com/gl-yziquel/skeleton_rust_gem/releases/tag/gh-rb-sys-380
Having had a look at the Makefile, it seems that the installation process does not clean up. Ideally, I'd have cargo / rust generate the cdylib library, copy or move it to the relevant location, and remove the
target/
folder. Why is this not done in the Makefile ? Is there some reason ?I'd also be very much interested in the logic internal to rb-sys which allows to construct the
lib/skeleton_rust_gem
portion of thelib/skeleton_rust_gem/skeleton_rust_gem.so
path. A quick walkthrough through what happens to determine the exact location of that path would matter quite a bit to me.Best.