MCPcopy Create free account
hub / github.com/RustForWeb/lucide / Framework

Interface Framework

scripts/src/framework.rs:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6use proc_macro2::TokenStream;
7
8pub trait Framework {
9 fn name(&self) -> &'static str;
10
11 fn lib_header(&self) -> Option<String>;
12
13 fn generate(&self, component_name: String, svg: String) -> Result<TokenStream, Box<dyn Error>>;
14
15 fn generate_example(&self, component_names: &[String]) -> Result<TokenStream, Box<dyn Error>>;
16
17 fn format(
18 &self,
19 package: String,
20 repository_path: &Path,
21 path: PathBuf,
22 ) -> Result<(), Box<dyn Error>>;
23}

Callers

nothing calls this directly

Implementers 3

dioxus.rsscripts/src/frameworks/dioxus.rs
yew.rsscripts/src/frameworks/yew.rs
leptos.rsscripts/src/frameworks/leptos.rs

Calls

no outgoing calls

Tested by

no test coverage detected