fornwall / rust-script

Run Rust files and expressions as scripts without any setup or compilation step.
https://rust-script.org
Apache License 2.0
1.2k stars 41 forks source link

Teach Github linguist about rust-script file #87

Closed azzamsa closed 1 year ago

azzamsa commented 1 year ago

Hi.

GitHub is able to count the percentage of shell files even if they don't have .sh or simmilar extenison.

image

image

Is it possible for us to teach GitHub about rust-script file based on #!/usr/bin/env rust-script even if it doesn't have .rs extension?

image

I think we should start from Adding an extension to a language in linguist/CONTRIBUTING.md

Thank you for rust-script :heart:

fornwall commented 1 year ago

Thanks for the suggestion!

I created https://github.com/github/linguist/pull/6354 - let's see what the maintainers say.

fornwall commented 1 year ago

This is on track to be included in the next linguist release - https://github.com/github/linguist/pull/6354#pullrequestreview-1369332349.

Closing this as the work has been done, follow https://github.com/github/linguist/pull/6354 for progress updates.

Once again, thanks for the suggestion @azzamsa !