Created
April 4, 2019 22:31
-
-
Save alexcrichton/e0caabab7ad014486e7ed3ac53e48945 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate foo; | |
pub fn bar() { | |
foo::foo(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn foo() {} |
Author
alexcrichton
commented
Apr 4, 2019
rustc +nightly foo.rs --crate-type lib --emit metadata,link
rustc +nightly --crate-type lib bar.rs --extern foo=libfoo.rmeta --error-format=json
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment