[Rust-VMM] GitHub organization

Allison Randal allison at lohutok.net
Wed Jan 9 09:49:43 UTC 2019


Hi Samuel,

Yes, shared workspaces for multiple crates are a standard feature of Rust:

https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html

But, the choice has more to do with how you intend the crates to be
used. If the crates will only ever be used by one VMM implementation
(like crosvm originally), then a shared workspace of crates in a single
monolithic repo makes sense. But, since you are already sharing crates
across two separate VMM implementations, then a clean separation of
different repos for each crate makes more sense now. Cargo is so good
(and flexible) about pulling in dependencies from git repos, versioned
releases, or other sources, that it's straightforward to work with
multiple separate repos.

Allison

On 1/9/19 9:36 AM, Samuel Ortiz wrote:
> Hi Andreea,
> 
> I also tend to prefer one repo per crate. But I want to understand if
> there's a typical setup for a shared workspace for multiple crates, to
> at least see how that could be workable in practice.
> 
> Cheers,
> Samuel.
> 
> On Wed, Jan 09, 2019 at 09:20:04AM +0000, Florescu, Andreea wrote:
>> Hey,
>>
>> My personal preference is to have one repository per crate. I am also not aware of other rust crates (published on crates.io) that share the same repository. It would be interesting to find if such projects exist to see how easy it is to publish the crates and make sure that you don't mess up versions. Another reason I would like to have them as separate crates is because I assume that not all rust-vmms (e.g. Firecracker) will use all crates in rust-vmm.
>> When we get to a "critical mass" of crates that can be used to create a VMM, we can also create a vmm repo that uses all the independent crates.
>>
>> What do you say?
>>
>> Andreea
>> ________________________________________
>> From: Josh Triplett <josh at joshtriplett.org>
>> Sent: Tuesday, January 8, 2019 10:28 PM
>> To: Samuel Ortiz
>> Cc: rust-vmm ML
>> Subject: Re: [Rust-VMM] GitHub organization
>>
>> On Tue, Jan 08, 2019 at 09:42:43AM +0100, Samuel Ortiz wrote:
>>> All,
>>>
>>> Jonathan and I created a rust-vmm GitHub organization for hosting the
>>> potential crates and project related to this project:
>>> https://github.com/rust-vmm/
>>>
>>> The initial goal for this org is to be a collaboration ground for new
>>> crates. We should collectively decide how it gets organized in terms of
>>> teams, repos and rights. At the moment Jonathan and myself are the 2
>>> admins, but that can be changed at any time.
>>>
>>> Please let me know if you'd like to be added as a member of this new
>>> org.
>>
>> Please add me, and I'd be happy to help with this.
>>
>> I would suggest that we either have one repo per crate, or one repo with
>> a workspace setup that builds (and tests) all crates. The former makes
>> it easier to work with individual crates, but harder to coordinate
>> changes across all of them. The latter makes it easier to make
>> cross-crate changes, but harder to remember things like updating
>> versions and dependencies correctly.
>>
>> _______________________________________________
>> Rust-vmm mailing list
>> Rust-vmm at lists.opendev.org
>> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
>>
>>
>>
>> Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.
>>
> ---------------------------------------------------------------------
> Intel Corporation SAS (French simplified joint stock company)
> Registered headquarters: "Les Montalets"- 2, rue de Paris, 
> 92196 Meudon Cedex, France
> Registration Number:  302 456 199 R.C.S. NANTERRE
> Capital: 4,572,000 Euros
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> 
> 
> _______________________________________________
> Rust-vmm mailing list
> Rust-vmm at lists.opendev.org
> http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm
> 



More information about the Rust-vmm mailing list