For example:
extern "C" {
pub fn foo();
}
Is simply rendered in rustdoc as pub unsafe fn foo(). It should likely show the ABI as well as the unsafety. There should also probably be some indication that this is a foreign function, to distinguish from an Rust function with a not-Rust ABI.