• Status report on optional Rust in FreeBSD support

    From LWN.net@1337:1/100 to All on Wednesday, May 21, 2025 17:00:08
    Status report on optional Rust in FreeBSD support

    Date:
    Wed, 21 May 2025 15:57:54 +0000

    Description:
    Shawn Webb has published a status
    report on work to provide basic support in FreeBSD for userland components written in Rust. We introduced a new BSD makefile, located at share/mk/bsd.rust.mk ,
    that enables building a Rust application during buildworld. As of this
    writing, we only support building and installing Rust
    applications. Supporting library crates is planned (we would like to
    be able to build/install library crates that expose an FFI, like for C/C++ compatibility ). Normal library crates build and install just
    fine. Support for cdylib Rust library crates specifically is what's
    missing, but is desired and planned. We do NOT currently support Rust in the kernel. Kernel support
    requires more work that we deemed out-of-scope for this initial proof-of-concept/work-in-progress patchset. We also do NOT support
    building multiple programs in the same BSD Makefile (like with
    bsd.progs.mk), though that is also a desired feature. LWN covered a
    discussion about including Rust in the FreeBSD base system in August
    2024.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/1022040/


    --- Mystic BBS v1.12 A47 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)