From b18749170b6006e53976dbb6df9f59a3b9c34127 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 10 Apr 2026 16:47:40 +0800 Subject: Add completion macro infrastructure without logic --- mingling_core/src/asset/comp/suggest.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mingling_core/src/asset/comp/suggest.rs') diff --git a/mingling_core/src/asset/comp/suggest.rs b/mingling_core/src/asset/comp/suggest.rs index 4e7ce82..55a874f 100644 --- a/mingling_core/src/asset/comp/suggest.rs +++ b/mingling_core/src/asset/comp/suggest.rs @@ -3,6 +3,7 @@ use std::collections::BTreeSet; /// A completion suggestion that tells the shell how to perform completion. /// This can be either a set of specific suggestion items or a request for file completion. #[derive(Debug, Default, Clone, PartialEq, Eq, Hash)] +#[cfg_attr(feature = "general_renderer", derive(serde::Serialize))] pub enum Suggest { /// A set of specific suggestion items for the shell to display. Suggest(BTreeSet), @@ -59,6 +60,7 @@ impl std::ops::DerefMut for Suggest { } #[derive(Debug, Clone, PartialEq, Eq, Hash)] +#[cfg_attr(feature = "general_renderer", derive(serde::Serialize))] pub enum SuggestItem { Simple(String), WithDescription(String, String), -- cgit