Hi Sebastien,

On Thu, Dec 08, 2016 at 04:30:27PM +0100, Sebastien Marie wrote:
> Hi,
> 
> I started to discuss, mainly with landry@, on how to properly use Rust
> ecosystem inside ports.

I don't know much about rust, but I have dabbled with cargo and it seems
golang has a similar package manager where you list deps and it
downloads the source code and statically links them in to the resulting
binary. And like rust, different projects can ask for different versions
of dependencies.

For golang ports, we've been asking upstream to make a "vendored"
tarball, which contains the frozen source codes of the dependencies. The
tool used to make the tarball is govendor [1]. Not sure if rust has
something like this? If cargo has a "fetch" step, perhaps you can roll a
tarball after this step and use this for porting.

Admittedly such a solution makes no attempt to share dependency
distfiles.

[1] https://github.com/kardianos/govendor

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

Reply via email to