//! 站点不允许内嵌,渲染成带平台标识的卡片。 use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Kernel; impl Platform for Kernel { fn id(&self) -> &'static str { "kernel" } fn name(&self) -> &'static str { "Linux Kernel" } fn category(&self) -> Category { Category::Dev } fn domains(&self) -> &'static [&'static str] { &["kernel.org", "linuxfoundation.org"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Kernel = Kernel;