axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.46k stars 64 forks source link

allow creating libraries artifacts #629

Open ibotty opened 9 months ago

ibotty commented 9 months ago

Is there already some discussion regarding supporting library building?

I am talking about RPMs, DEBs, etc.

I do have some opinions and might contribute.

mistydemeo commented 9 months ago

Do you mean building packages for use with a package manager? We support Homebrew for Mac right now, but we'd love to support more.

ibotty commented 9 months ago

The most important part (IMO) is not building a RPM or DEB out of the artifacts (I assume that's not even that hard), but package library artifacts. My use case is PostgreSQL extensions.

workingjubilee commented 9 months ago

C extensions used by another Rust library, or Rust extensions made with PGRX? It will probably require additional work with pgrx to enable some of the dist options that cargo-dist would normally support.

ibotty commented 9 months ago

Sorry, for not getting back. I was pretty busy.

I am talking about pgrx extensions. But I'd also like to package so libraries (generated by rust and built by cargo). Is that going to be much different?

Any ideas on how it might look like?