kornelski / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
https://lib.rs/cargo-deb
MIT License
404 stars 48 forks source link

Allow depends, pre-depends, recommends, and suggests to be arrays #89

Closed swlynch99 closed 1 year ago

swlynch99 commented 1 year ago

This commit makes it so that depends (and any of the other fields above) can be written as

depends = ["a", "b", "c"]

in addition to the existing depends = "a, b, c" format.

It is converted at the config level by joining all the array elements with ", ". No additional validation is performed beyond that already done by serde deserialization.

I have tested this with a local crate and it appears to work as expected.

Closes #88

kornelski commented 1 year ago

Thanks