How can I make librustdoc as an external crate, and utilize it?

I want to reference some librustdoc internal crates and use the structures and implementation methods. Is there any ready-made method, similar to the import of rustc? Or is there a way to import it myself?