3 ms·
Many languages have a third-party way of doing it and a few even have first-party support, see https://dbohdan.com/scripts-with-dependencies https://dbohdan.com
by epage 2y ago
Many languages have a third-party way of doing it and a few even have first-party support, see https://dbohdan.com/scripts-with-dependencies https://dbohdan.com/scripts-with-dependencies
Since that document, Python PEP 723 was approved, see https://peps.python.org/pep-0723/ https://peps.python.org/pep-0723/ and https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-script-metadata https://packaging.python.org/en/latest/specifications/inline...
Similarly, Rust RFC 3502 was approved and an unstable implementation is available, see https://rust-lang.github.io/rfcs/3502-cargo-script.html https://rust-lang.github.io/rfcs/3502-cargo-script.html