After getting tired of fighting dependencies manually, I’ve converted my rust bots to use cargo. That, in turn, required a bundler script to join multiple source files into the one that is sync’d with cg. I ended up cooking a
build.rs that did that inside cargo and worked very well. I have now evolved it into a crate at the following repository:
This is an alternative to this script, though this project has no intention of performing any optimization, focusing only on convenience.