diff --git a/bytecode/src/lib.rs b/bytecode/src/lib.rs index c6e3077a9..4b0b492a6 100644 --- a/bytecode/src/lib.rs +++ b/bytecode/src/lib.rs @@ -1 +1,4 @@ +#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")] +#![doc(html_root_url = "https://docs.rs/rustpython-bytecode/")] + pub mod bytecode; diff --git a/compiler/src/lib.rs b/compiler/src/lib.rs index e0e6fb2bf..5e844b2e3 100644 --- a/compiler/src/lib.rs +++ b/compiler/src/lib.rs @@ -1,5 +1,7 @@ //! Compile a Python AST or source code into bytecode consumable by RustPython or //! (eventually) CPython. +#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")] +#![doc(html_root_url = "https://docs.rs/rustpython-compiler/")] #[macro_use] extern crate log; diff --git a/derive/src/lib.rs b/derive/src/lib.rs index 21ac982cc..70aa73c43 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -1,4 +1,6 @@ #![recursion_limit = "128"] +#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")] +#![doc(html_root_url = "https://docs.rs/rustpython-derive/")] extern crate proc_macro; diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 85b15c2fb..0e98924b4 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")] +#![doc(html_root_url = "https://docs.rs/rustpython-parser/")] + #[macro_use] extern crate log; use lalrpop_util::lalrpop_mod; diff --git a/vm/src/lib.rs b/vm/src/lib.rs index 37e233447..73f1804fa 100644 --- a/vm/src/lib.rs +++ b/vm/src/lib.rs @@ -11,6 +11,8 @@ clippy::let_and_return, clippy::implicit_hasher )] +#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")] +#![doc(html_root_url = "https://docs.rs/rustpython-vm/")] #[cfg(feature = "flame-it")] #[macro_use]