From a076221c9a109fa1a1661330291bb547c35ab96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 4 Feb 2019 16:05:05 +0000 Subject: [PATCH] Add rustdoc flag to sort modules by XEP number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `--sort-modules-by-appearance` needs to be passed to rustdoc for this to happen. I haven't found a way to make it so that we don't have to add this flag manually each time we build locally. This config option should at least fix it for docs.rs. Signed-off-by: Maxime “pep” Buquet --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index cf9ae10..8aab21d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,3 +30,6 @@ try_from = "0.3.2" component = [] # Disable validation of unknown attributes. disable-validation = [] + +[package.metadata.docs.rs] +rustdoc-args = [ "--sort-modules-by-appearance", "-Z unstable-options" ]