From 0893076643aca71a5e922dcd7b018c2f1dee0300 Mon Sep 17 00:00:00 2001 From: coolreader18 <33094578+coolreader18@users.noreply.github.com> Date: Mon, 8 Jul 2019 23:57:18 -0500 Subject: [PATCH] Add #![doc(html_logo_url = ...)] to crates --- bytecode/src/lib.rs | 3 +++ compiler/src/lib.rs | 2 ++ derive/src/lib.rs | 2 ++ parser/src/lib.rs | 3 +++ vm/src/lib.rs | 2 ++ 5 files changed, 12 insertions(+) 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 f520ea254..ec7f24c1d 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/")] #[macro_use] extern crate bitflags;