use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, gen_macros::TypedDispatcher, gen_macros::Discriminant, gen_macros::IsVariant)]
#[serde(tag = "kind", rename_all = "kebab-case")]
pub enum GomodQuirk {
ForceVendorHash { hash: String },
BuildTag { tag: String },
Ldflag { flag: String },
CgoOff,
SubstituteSource { file: String, from: String, to: String },
}
pub fn registry() -> Vec<(&'static str, Vec<GomodQuirk>)> {
Vec::new()
}
#[derive(gen_macros::QuirkRegistry)]
#[quirks(enum_name = "GomodQuirk", registry_fn = "crate::quirks::registry")]
pub struct GomodQuirks;
gen_platform::register_dispatcher!("gen.gomod.gomod-quirk", GomodQuirk);