How do I access assets included in a Rust/Cargo project installed via `cargo install`?
问题 I have a project which includes some associated assets (Lua scripts), which I need to find at runtime. This can mean two things: During development (e.g. cargo run ), I want to find it relative to the source When installed via cargo install , the assets should be installed somewhere as well, and the installed version of the executable should find the installed assets. I know about the option to use something like include_str!() to compile text files into the binary, but I don't want to do