diff --git a/giallo-js/src/lib.rs b/giallo-js/src/lib.rs index 4666443..89951b2 100644 --- a/giallo-js/src/lib.rs +++ b/giallo-js/src/lib.rs @@ -1,11 +1,9 @@ use giallo::{HighlightOptions, HtmlRenderer, Registry, RenderOptions, ThemeVariant}; mod bindings { - //! Generated code derived from the Giallo-JS `world.wit` definition. + //! Generated code derived from the `giallo-js.wit` definition. - wit_bindgen::generate!({ - path: "wit/world.wit", - }); + wit_bindgen::generate!({ path: "wit/giallo-js.wit" }); use super::GialloJsComponent; export!(GialloJsComponent); @@ -13,7 +11,7 @@ mod bindings { struct GialloJsComponent; -impl bindings::exports::docs::giallo_js::syntax_highlighter::Guest for GialloJsComponent { +impl bindings::exports::brentsch::giallo_js::syntax_highlighter::Guest for GialloJsComponent { /// Rudimentary Wasm adapter around the basic /// [Giallo usage example](https://github.com/getzola/giallo/blob/a86755836dc4387056432f63f0b37b2c04b52711/examples/basic.rs). fn render_highlighted( diff --git a/giallo-js/wit/world.wit b/giallo-js/wit/giallo-js.wit similarity index 88% rename from giallo-js/wit/world.wit rename to giallo-js/wit/giallo-js.wit index d7f08af..96269c9 100644 --- a/giallo-js/wit/world.wit +++ b/giallo-js/wit/giallo-js.wit @@ -1,4 +1,4 @@ -package docs:giallo-js@0.0.1; +package brentsch:giallo-js@0.0.1; interface syntax-highlighter { render-highlighted: func(