From 4aefdf547173fdf3c80a89b81122235a56ab5277 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Thu, 20 Feb 2025 17:04:20 -0500 Subject: [PATCH 1/2] update crates --- Cargo.toml | 2 +- macros/Cargo.toml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cacf31e..699e7da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ description = "Docify allows you to live-embed at compile time pieces of code fr docify_macros = { path = "macros", version = "0.2.9" } [dev-dependencies] -proc-utils = "0.1.0" +proc-utils = "0" [features] default = [] diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 4f55d25..59252ea 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -12,7 +12,7 @@ description = "Support macros for docify." proc-macro = true [dependencies] -derive-syn-parse = "0.2" +derive-syn-parse = "0" proc-macro2 = "1" quote = "1" regex = "1" @@ -21,7 +21,7 @@ walkdir = "2" common-path = "1" termcolor = "1" once_cell = "1" -toml = "0.8" -tempfile = "3.3.0" -git2 = "0.18" -sha2 = "0.10.6" +toml = "0" +tempfile = "3" +git2 = "0" +sha2 = "0" From ab44aed900edb300e3c257f59896d86ce9d5f18f Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Thu, 20 Feb 2025 17:10:14 -0500 Subject: [PATCH 2/2] trying to fix git embeds --- examples/integration.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/integration.rs b/examples/integration.rs index 441a2ae..da9030e 100644 --- a/examples/integration.rs +++ b/examples/integration.rs @@ -92,6 +92,9 @@ pub struct ExportContentConst; #[doc = docify::embed!("examples/samples.rs", inner_mod2)] pub struct NestedExports; +#[doc = docify::embed!(git: "https://github.com/sam0x17/docify", path: "examples/samples.rs", item: MyCoolStruct)] +pub struct GitEmbeds; + /// This will compile all markdown files in the `markdown_source` directory to `markdown_bin` /// when `cargo doc` is run, handling any doc embed calls as it goes #[cfg(doc)]