I've learned that any assets required by a binary project can be installed to a specified directory using a customized build.rs file.
I'd like to hear about various other alternatives as well, that the Rust community uses for this case.
I found this ticket and subscribed to it:
Add an install.rs that lets a file perform installation setup, as well as a permanent installation outdir
I'd basically like to install data to a directory relative to the binary, like if the default installation location is $HOME/.cargo/bin, I'd want data to go to $HOME/.cargo/usr/share... (depending on the type of bin project I'm installing).
But also, I'd want my bin to be able to find the data prior to install, and couldn't decide yet on the best way to do that. Maybe defining a constant at compile-time with the hard-coded directory paths? A constant that could be changed when I run