From b78b75f006938188a0e393b2631838b4403f3441 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 22 Jul 2024 15:00:09 -0700 Subject: [PATCH] typegen: add module names --- typegen/src/main.rs | 1 + typegen/src/outform.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/typegen/src/main.rs b/typegen/src/main.rs index d1736ab..a14255c 100644 --- a/typegen/src/main.rs +++ b/typegen/src/main.rs @@ -107,6 +107,7 @@ hidetitle = true } let index = outform::ModuleIndex { + name: module.header.name.to_string(), description: module.header.description, details: module.details.to_string(), }; diff --git a/typegen/src/outform.rs b/typegen/src/outform.rs index 185cc5b..a7910f6 100644 --- a/typegen/src/outform.rs +++ b/typegen/src/outform.rs @@ -4,6 +4,7 @@ use serde::Serialize; #[derive(Debug, Serialize)] pub struct ModuleIndex { + pub name: String, pub description: String, pub details: String, }