<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 17, 2020 at 8:54 AM Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jun 17, 2020 at 08:42:19AM -0600, alan somers wrote:<br>
> On Wed, Jun 17, 2020 at 5:23 AM Richard W.M. Jones <<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>><br>
> wrote:<br>
> <br>
> > I pushed 2 & 3, thanks.<br>
> ><br>
> > But ...<br>
> ><br>
> > > From 9fa3e443467e3c06761ec54241327e8daf8701ca Mon Sep 17 00:00:00 2001<br>
> > > From: Alan Somers <<a href="mailto:asomers@gmail.com" target="_blank">asomers@gmail.com</a>><br>
> > > Date: Mon, 15 Jun 2020 16:59:53 -0600<br>
> > > Subject: [PATCH 1/3] Add a Cargo.toml file to the top-level directory<br>
> > ><br>
> > > This is necessary for other Rust projects to depend on unrelesed<br>
> > > versions of the nbdkit crate.<br>
> > > ---<br>
> > >  Cargo.toml | 2 ++<br>
> > >  1 file changed, 2 insertions(+)<br>
> > >  create mode 100644 Cargo.toml<br>
> > ><br>
> > > diff --git a/Cargo.toml b/Cargo.toml<br>
> > > new file mode 100644<br>
> > > index 00000000..f50a66b7<br>
> > > --- /dev/null<br>
> > > +++ b/Cargo.toml<br>
> > > @@ -0,0 +1,2 @@<br>
> > > +[workspace]<br>
> > > +members = ["plugins/rust"]<br>
> ><br>
> > Is it really absolutely necessary to have this in the top level<br>
> > directory of the source tree?<br>
> ><br>
> > Rich.<br>
> ><br>
> <br>
> Turns out it isn't.  It didn't work when I tried it the first time, and I<br>
> thought that this was the reason why.  But it turns out the real reason was<br>
> because you had been generating your Cargo.toml file with autotools.<br>
> That's no longer the case, after my last patch.  So you don't need the<br>
> workspace Cargo.toml file after all.<br>
<br>
OK, thanks for checking that.<br>
<br>
If we did need to generate Cargo.toml again in future (eg. to include<br>
the nbdkit version number) then we might include the generated file<br>
into git, if that helps.  In other projects we have included selected<br>
generated files in git for various reasons.<br>
<br>
Rich.<br></blockquote><div><br></div><div>Yeah, that would work. <br></div></div></div>