Add shebang support for "cargo script" (original) (raw)
Add an initial shebang support for "cargo script".
Cargo script is an experimental feature for single-file packages described in eRFC-3424.
The initial support would require to recognize and parse the shebang and handle the entire file as a single-file package.
Parsing the manifest would be out of the scope for the moment since it hasn't been stabilized yet. So there would not be support for external packages from crates.io at the moment.
As an extra this initial support could be be beneficial also for other third party alternatives.
I am willing to help with this feature.
Cargo script tracking issue here.
Relates to: #9609
cc: @epage