Clone in a terminal:
Commit 94b73f9
Johan Mattsson - 2026-06-11T22:03:57+00:00
94b73f955903ada58496bc22d04592b6e3bccba5johan.mattsson.m@gmail.com

Test

Changed files (4)

Diff

diff --git a/README.md b/README.mdindex bd52a9e..3023506 100644--- a/README.md+++ b/README.md@@ -142,10 +142,11 @@ let html = html! {{ ```  ## Macro Content as String-If you find yourself fighting with the compiler about special characters like en dash or single quotes, -try using a raw string literal as macro content.+If you find yourself fighting with the compiler about special characters like en dash or single +quotes, try using a raw string literal as macro content.  ```rust+use kaja_html_macro::html; let test = String::from("bird");  let content = html! {{r#"diff --git a/test-fail-messages/includemissing/Cargo.lock b/test-fail-messages/includemissing/Cargo.locknew file mode 100644index 0000000..dbba0fd--- /dev/null+++ b/test-fail-messages/includemissing/Cargo.lock@@ -0,0 +1,95 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "includemissing"+version = "0.1.0"+dependencies = [+ "kaja-html-macro",+]++[[package]]+name = "kaja-html-macro"+version = "1.0.2"+dependencies = [+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn 2.0.111",+]++[[package]]+name = "proc-macro-error"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"+dependencies = [+ "proc-macro-error-attr",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+ "version_check",+]++[[package]]+name = "proc-macro-error-attr"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"+dependencies = [+ "proc-macro2",+ "quote",+ "version_check",+]++[[package]]+name = "proc-macro2"+version = "1.0.103"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "quote"+version = "1.0.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "syn"+version = "1.0.109"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"+dependencies = [+ "proc-macro2",+ "unicode-ident",+]++[[package]]+name = "syn"+version = "2.0.111"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "unicode-ident"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"diff --git a/test-fail-messages/includemissing/Cargo.toml b/test-fail-messages/includemissing/Cargo.tomlnew file mode 100644index 0000000..4228841--- /dev/null+++ b/test-fail-messages/includemissing/Cargo.toml@@ -0,0 +1,13 @@+[workspace]++[package]+name = "includemissing"+version = "0.1.0"+edition = "2024"++[dependencies]+kaja-html-macro = { path = "../../" }++[[bin]]+name = "includemissing"+path = "main.rs"diff --git a/test-fail-messages/includemissing/main.rs b/test-fail-messages/includemissing/main.rsnew file mode 100644index 0000000..850d952--- /dev/null+++ b/test-fail-messages/includemissing/main.rs@@ -0,0 +1,18 @@+use kaja_html_macro::html;++// impl method does not exist++struct Main {}++impl Main {+    fn get_html(&self) {+        let content = html! {{+            <include self.get_outer_html() />+        }};+    }+}++fn main() {+    let main = Main {};+    main.get_html();+}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112