Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make runtime library loading safer #661

Open
steveklabnik opened this issue Jan 21, 2015 · 4 comments
Open

make runtime library loading safer #661

steveklabnik opened this issue Jan 21, 2015 · 4 comments
Labels
T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Comments

@steveklabnik
Copy link
Member

Issue by cmr
Thursday Jun 19, 2014 at 17:17 GMT

For earlier discussion, see rust-lang/rust#15040

This issue was labelled with: A-an-interesting-project, A-libs, E-hard, I-enhancement in the Rust repository


We currently have an interface for runtime library loading, using the dynamic linker, but it has the problem that it interacts poorly with name mangling and is entirely unsafe. Figure out how to make it type-safe, and preferably memory-safe too.

@flaub
Copy link

flaub commented May 6, 2015

How can runtime library loading (AKA late-binding) work with coherency? It seems to imply that the coherency checker would need to execute at runtime.

@Kimundi
Copy link
Member

Kimundi commented May 6, 2015

It would likely be restricted to non-generic API known to the crate that does the loading - so at most trait objects and concrete types, but afaik nothing that coherency would be relevant for.

@norcalli
Copy link

https://github.com/nagisa/rust_libloading Does this solve the problem?

@Kimundi
Copy link
Member

Kimundi commented Nov 28, 2015

It improves on the old library, but most of the real issues are in missing language features, so no.

@Centril Centril added T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC. labels Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

6 participants