Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit reworks the way resources such a the stone-prover binary, are handled by the stone-cli. The new system ensures that: - The stone-cli works even if build on a different machine and moved. - Does not modify the users home directory - Allows uninstalling by using `cargo uninstall` (simply deleting the stone-cli binary will do). Overall, the approach taken: - Retrieve all the resources for the build - Create the desired directory structure in build.rs - Create a tarball with the directory structure - Embed the tarball inside the stone-cli binary - Upon execution of the stone-cli binary extract the tarball to a "temporary" directory, ensuring however that this is only done on the first execution, as oppose to creating a fresh "TempDir" every time.
- Loading branch information