rust-script icon indicating copy to clipboard operation
rust-script copied to clipboard

ability to compile a script as a library

Open joseluis opened this issue 2 years ago • 2 comments

It would be wonderful if we could add a [lib] section to the script, choose the crate-type and have it appear compiled next to the script.

joseluis avatar Aug 02 '23 18:08 joseluis

@joseluis Thanks for the suggestion, sounds interesting. Thinking about it and experimenting.

fornwall avatar Aug 04 '23 21:08 fornwall

I'm happy to hear that. I'm realizing now that it would make sense then to be able to do a similar thing with the binary, being able to have it appear compiled in the same dir. What do you think?

joseluis avatar Aug 05 '23 03:08 joseluis