Creating fully self-contained and pre-compiled library

Depending on your use case, this might work: put your julia code inside an AppBundler.jl app and have your library call that. No trim functionality, unless you delete files manually.