Skip to content

Research: How to achieve safety when linking separately compiled code #267

@nikomatsakis

Description

@nikomatsakis
Contributor
Metadata
Point of contact @m-ou-se
Team(s) compiler, lang
Goal document 2025h1/safe-linking

Summary

Research what "safety" and "unsafety" means when dealing with separately compiled code, like when loading dynamically linked libraries.
Specifically, figure out how it'd be possible to provide any kind of safety when linking external code (such as loading a dynamic library or linking a separately compiled static library).

Tasks and status

  • Discussion and moral support (lang Team)
    Coordination with university (@jdonszelmann)
    Acquire funding (@m-ou-se, @jdonszelmann)
    Research ()
    Mentoring and interfacing with Rust project (@m-ou-se, @jdonszelmann)
    Blog post (author, review) (@jdonszelmann, @m-ou-se)
    Experimental implementation ()
    Lang-team experiment (lang Team)
    Lang-team champion (lang Team)
    Standard reviews (compiler Team)
    Thesis / Paper ()

Activity

added this to the 2025h1 milestone on Feb 18, 2025
nikomatsakis

nikomatsakis commented on Feb 18, 2025

@nikomatsakis
ContributorAuthor

This issue is intended for status updates only.

For general questions or comments, please contact the owner(s) directly.

moved this to Project goals in Lang team featureson Feb 21, 2025
m-ou-se

m-ou-se commented on Feb 28, 2025

@m-ou-se
Member

We started the collaboration with the Delft University of Technology. We assembled a small research team with a professor and a MSc student who will be working on this as part of his MSc thesis. We meet weekly in person.

The project kicked off two weeks ago and is now in the literature research phase.

m-ou-se

m-ou-se commented on Feb 28, 2025

@m-ou-se
Member

And related to this, someone else is working on an implementation of my #[export] rfc: rust-lang/rust#134767 This will hopefully provide meaningful input for the research project.

moved this to Project goal in Lang team featureson Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Project goal

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @nikomatsakis@m-ou-se

      Issue actions

        Research: How to achieve safety when linking separately compiled code · Issue #267 · rust-lang/rust-project-goals