I'd like to import a crate into my library, and then use that crate as if it's a module in my library. If I do this:
extern crate sdl2;
pub use sdl2;
That gives me an error, suggesting I use sdl2::*
, but I don't want to drag all the names from the crate into my library, I want them addressed as a sub-module, for example:
my_library::sdl2::init()
I also tried this:
pub extern crate sdl2;
That compiles, but I have no idea what it does. It doesn't seem to make the crate publicly accessible from my library though.