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

Get dynamic loading working #458

Closed
graydon opened this issue Jun 8, 2011 · 10 comments
Closed

Get dynamic loading working #458

graydon opened this issue Jun 8, 2011 · 10 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one. P-medium Medium priority

Comments

@graydon
Copy link
Contributor

graydon commented Jun 8, 2011

For syntax extensions (and possibly semantic extensions) to load in from external crates, we need to dynamically load them. Currently the library-scanning machinery is a bit too weak to handle this, and there's no os-level interface in the standard library for fetching symbols from a loaded library. Implement all this.

@graydon
Copy link
Contributor Author

graydon commented Jul 28, 2011

Pushing this out to post-0.1 release

@brson
Copy link
Contributor

brson commented Feb 21, 2013

Doing this in a safe way is likely blocked on #2213

@pcwalton
Copy link
Contributor

I don't believe this is backwards incompatible, renominating.

@huonw
Copy link
Member

huonw commented May 30, 2013

cc #6735 (a proof of concept).

@graydon
Copy link
Contributor Author

graydon commented May 30, 2013

accepted for feature-complete milestone

@emberian
Copy link
Member

#7027 is a solid step forward on this.

@thestinger
Copy link
Contributor

This is implemented, and there are tests for it in src/libstd/unstable/dynamic_lib.rs.

@graydon
Copy link
Contributor Author

graydon commented Aug 20, 2013

The caveat I have here is that the interface isn't typesafe. Only works with symbols with mangling turned off. Guess the bug didn't mention that but imo it's important.

@catamorphism
Copy link
Contributor

High, but not 1.0

@emberian
Copy link
Member

This is done, minus safety. Replacing with #15040

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one. P-medium Medium priority
Projects
None yet
Development

No branches or pull requests

7 participants