What's the use of extern crate?

48 points Pxlop

What's the difference between

extern crate example;
use self::example::ExampleThing;

and

use example::ExampleThing;

I've always been using the second example, but I've been seeing the first example more and I'm confused as to what's the difference?