Add rustdoc flag to sort modules by XEP number

Maxime “pep” Buquet created

`--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 <pep@bouah.net>

Change summary

Cargo.toml | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

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" ]