{"action":"created","issue":{"url":"https://api.github.com/repos/DanielKeep/cargo-script/issues/16","repository_url":"https://api.github.com/repos/DanielKeep/cargo-script","labels_url":"https://api.github.com/repos/DanielKeep/cargo-script/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/DanielKeep/cargo-script/issues/16/comments","events_url":"https://api.github.com/repos/DanielKeep/cargo-script/issues/16/events","html_url":"https://github.com/DanielKeep/cargo-script/issues/16","id":130577183,"number":16,"title":"Cache compilations of dependencies","user":{"login":"nixpulvis","id":715947,"avatar_url":"https://avatars.githubusercontent.com/u/715947?v=3","gravatar_id":"","url":"https://api.github.com/users/nixpulvis","html_url":"https://github.com/nixpulvis","followers_url":"https://api.github.com/users/nixpulvis/followers","following_url":"https://api.github.com/users/nixpulvis/following{/other_user}","gists_url":"https://api.github.com/users/nixpulvis/gists{/gist_id}","starred_url":"https://api.github.com/users/nixpulvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixpulvis/subscriptions","organizations_url":"https://api.github.com/users/nixpulvis/orgs","repos_url":"https://api.github.com/users/nixpulvis/repos","events_url":"https://api.github.com/users/nixpulvis/events{/privacy}","received_events_url":"https://api.github.com/users/nixpulvis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-02T05:08:46Z","updated_at":"2016-03-08T06:09:38Z","closed_at":"2016-02-02T06:12:24Z","body":"Running cargo script on something with dependencies is very painful due to the repeated builds."},"comment":{"url":"https://api.github.com/repos/DanielKeep/cargo-script/issues/comments/193621490","html_url":"https://github.com/DanielKeep/cargo-script/issues/16#issuecomment-193621490","issue_url":"https://api.github.com/repos/DanielKeep/cargo-script/issues/16","id":193621490,"user":{"login":"DanielKeep","id":77238,"avatar_url":"https://avatars.githubusercontent.com/u/77238?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielKeep","html_url":"https://github.com/DanielKeep","followers_url":"https://api.github.com/users/DanielKeep/followers","following_url":"https://api.github.com/users/DanielKeep/following{/other_user}","gists_url":"https://api.github.com/users/DanielKeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielKeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielKeep/subscriptions","organizations_url":"https://api.github.com/users/DanielKeep/orgs","repos_url":"https://api.github.com/users/DanielKeep/repos","events_url":"https://api.github.com/users/DanielKeep/events{/privacy}","received_events_url":"https://api.github.com/users/DanielKeep/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T06:09:38Z","updated_at":"2016-03-08T06:09:38Z","body":"Ok, we might be talking across purposes.  All that `--pkg-path` does is it changes the directory where `cargo-script` writes the package.  *Nothing else is different.*  The directory is automatically generated based on the full path of the script, and the options you passed to `cargo-script`.  In other words, using `--pkg-path` on a script that's being invoked from the same place with the same options shouldn't involve any less compilation effort than *not* using `--pkg-path`."}}