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

Multiple dependencies not supported #106

Closed winstonewert closed 1 year ago

winstonewert commented 1 year ago
> cargo install rust-script --version 0.22.0
> rust-script -d anyhow -d serde scripts/example.rs 
Hello World

> cargo install rust-script --version 0.23.0
> rust-script -d anyhow -d serde scripts/example.rs 
error: the argument '--dep <dep>' cannot be used multiple times

Usage: rust-script [OPTIONS] [script]...

For more information, try '--help'.

Starting with version 0.23.0, it is no longer possible to pass multiple -d or --dep flags. It appears that clap was upgraded in that version, and I surmise that is somehow responsible.

fornwall commented 1 year ago

Thanks @winstonewert for reporting! This has been fixed in the just released version 0.28.0.