On Mon, Jan 30, 2017 at 11:19 AM Igor Gnatenko <ignatenkobrain@fedoraproject.org> wrote:
On Mon, 2017-01-30 at 09:29 +0000, Fabio Valentini wrote:
> Hi Guys,
> I've been interested in Rust for some time now (and even more, now
> that
> I've learned about functional programming and studied the lambda
> calculus
> at university ;)
> I have 2 questions regarding the state and future of Rust on fedora:
> 1) Is there support for building and distributing rust libraries as
> shared
> libraries (.so files), if the crate supports it?
As far as I know at this moment it doesn't really work properly and it
is also hard to support "features" because either you should build
shared library with support for all features or you build with minimal
and it seems not good idea.
> If not, this could lead to at least one problem ... any software
> package
> using a rust library via a FFI (as described at [0]) would have to
> build
> the crate itself and bundle the library. I don't think this is
> feasible in
> the long run (every package having to build the create itself and
> every
> package having to include the .so file looks like a lot of wasted
> work,
> time and space to me).
> Additionally, I generally dislike linking everything statically (like
> golang does), and would much prefer if fedora supported building and
> distributing rust libraries from the start. ;)
> 2) Is there a tool for generating .spec files / srpms from crates
> (like
> gofed, but nicer), and is such a tool planned?
Not yet and probably it will be very simple since I want to have all
BuildRequires/Requires/Provides generation in RPM and not in some
external tools. So work on this tool will be just get version, summary
and create spec from very simple template.

How can RPM generate BuildRequires - solely from the source archive?
Even if that could work (in the future?), doing it that way would be make the whole process too opaque to packagers in my opinion ...
> If nobody has started working on that yet, I'd volunteer. It sounds
> like a
> fun project!
Stop by our IRC channel and we can discuss it ;)

I'll do that when I have some time!
> [0]: https://doc.rust-lang.org/1.5.0/book/rust-inside-other-languages
> .html
> Fabio
> _______________________________________________
> Rust mailing list -- rust@lists.fedoraproject.org
> To unsubscribe send an email to rust-leave@lists.fedoraproject.org

-Igor Gnatenko