bug-hurd
[Top][All Lists]
Advanced

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

Re: GNU Hurd : Rust Porting Project


From: Harshil Jani
Subject: Re: GNU Hurd : Rust Porting Project
Date: Sun, 26 Feb 2023 19:26:18 +0530

Hey ! Thanks for this patch. I recently saw back on the site about the bonding exercise. So, I am planning to get GNU/Hurd on VM if all goes well. One more thing which I wanted to ask was about the C headers ? Would the bindgen tool take care of the headers during the port or we have to do it manually?

On Fri, Feb 24, 2023 at 5:55 AM Samuel Thibault <samuel.thibault@gnu.org> wrote:
Hello,

Thanks for your interest on this project :D

Harshil Jani, le ven. 24 févr. 2023 00:25:32 +0530, a ecrit:
> 1. What is the project size? I am curious if it falls under the category of 350
> Large or 175 Medium.

I'm not sure. I'd say it significantly depends on the existing
knowledge of the candidate.

> 2. Has any pre-work been completed on this project, and if so, could you kindly
> direct me to it for context?

A few years ago, I had made a quick attempt, to see what it would look
like. That resulted in the attached patch, which was enough to get rustc
to crossbuild, but it was missing most of what libstd needs. It is most
probably very outdated nowadays, but that gives an idea.

For the libstd part,

https://github.com/rust-lang/libc/blob/master/src/vxworks/mod.rs

is supposed to be an example of what we need to produce, and it's
supposed to be generatable mostly thanks to the bindgen tool. At least
some rust people have told us so in lwn.net comments. I still wonder why
this hasn't been automatized like perl has been doing for decades, but
never mind :)

Don't hesitate to ask further about this, you're welcome!

Samuel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]