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

Introduce a separate library crate for working with deb files? #95

Closed newpavlov closed 12 months ago

newpavlov commented 1 year ago

In some cases it could be useful to generate deb packages from custom software, e.g. as part of a non-Cargo build system. So it would be nice to have a separate library crate, similar to the rpm crate. cargo-deb then could be a simple CLI wrapper around it.

@vv9k Would you be willing to transfer ownership of the deb crate for this purpose?

kornelski commented 1 year ago

We have a library interface: https://docs.rs/cargo-deb/latest/cargo_deb/

Although it's a bit disorganized, since it's tied closely to the binary.

newpavlov commented 1 year ago

Good to know! I think it's a bit unexpected, so introducing a separate library crate could be worthwhile.