tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust crates in packages



Tobias Nygren transcribed 0.8K bytes:
> On Tue, 28 Apr 2020 14:13:35 +0200
> Nikita Gillmann <nikita%n0.is@localhost> wrote:
> 
> > Hi,
> > 
> > I am looking at some Rust packages I want to move from wip to pkgsrc
> > soon, and it seems the way I do it sometimes (all the time?) is not
> > really disk space friendly. The dependency crates could as well be
> > thrown into the distfiles dir and not using project subdirs, as they all
> > come from the same place.
> > 
> > Any objections to this? (and maybe I should start documenting packaging
> > rust packages eventually, some mk snippets left to be tested)
> 
> Yes, we should do that. Although since packages tend to depend on
> different versions of the crates the disk space savings may be less
> than expected.
> I think it would be nice to have them in a subdirectory rather
> than directly in distfiles. Maybe ${DISTDIR}/crates.io/.

${DISTDIR}/crates/ would be good because (I might be wrong, haven't
looked at Rust in some time) they could also come from other places even
though right now we use crates.io?

> -Tobias


Home | Main Index | Thread Index | Old Index