Solved packaging Rust programs

I'm looking to create packages for some Rust software I've written. The Ports infrastructure has worked well for things written in C, but it seems oriented towards things built with the make utility. Rust uses uses the Cargo system, so I'm not sure how to fit it into Ports.

A couple of ideas:

1. Create an ordinary Ports project and, in the Rust "source project", have a Makefile with an "install" target. That target invokes "cargo build", then does an install of the binary into a staging directory where the Ports scripts can find it and package it up.

2. Somehow get Cargo to do what it does normally, then create a package with pkg-create. I've never used that tool, but it seems like it might be more suited to this.

What have other people done to package up their Rust programs?

Thanks,

Chuck
 
Hm, so it does have Cargo support. Nice. I'll study the article and the screencast and see what I can come up with.

Thanks
 
Back
Top