From 707d93a17f5f51f9334feff5516c35b6105f3e38 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Tue, 30 Apr 2024 21:03:47 +0800 Subject: [PATCH] Drop `doc-comment` --- Cargo.lock | 11 ----------- Cargo.toml | 5 ++--- src/lib.rs | 4 ---- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aae32fe..f384e0f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -626,12 +626,6 @@ dependencies = [ "syn 2.0.60", ] -[[package]] -name = "doc-comment" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" - [[package]] name = "dpi" version = "0.1.1" @@ -2759,8 +2753,6 @@ dependencies = [ [[package]] name = "specta" version = "2.0.0-rc.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e19dee72682ee21ae3963e3b1e19080d2cfbac30927e58dc0f0e6f596ad70f" dependencies = [ "once_cell", "paste", @@ -2772,8 +2764,6 @@ dependencies = [ [[package]] name = "specta-macros" version = "2.0.0-rc.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef33e9678ae36993fcbfc46aa29568ef10d32fd54428808759c6a450998c43ec" dependencies = [ "Inflector", "proc-macro2", @@ -3156,7 +3146,6 @@ dependencies = [ name = "tauri-specta" version = "2.0.0-rc.4" dependencies = [ - "doc-comment", "heck 0.5.0", "indoc", "serde", diff --git a/Cargo.toml b/Cargo.toml index 357f368..b1f9e2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,9 +33,6 @@ tauri = { version = "=2.0.0-beta.16", features = ["specta"] } heck = "0.5.0" indoc = "2.0.5" -[dev-dependencies] -doc-comment = "0.3.3" - [workspace] members = [ "examples/app/src-tauri", @@ -46,3 +43,5 @@ members = [ [patch.crates-io] tauri = { git = "https://github.com/tauri-apps/tauri", rev = "3f0805488506e013e15cfb3cc1cfc8c2c5f84bd2" } + +specta = { path = "../specta" } diff --git a/src/lib.rs b/src/lib.rs index e0c53ee..8587560 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -154,10 +154,6 @@ pub type CollectCommandsTuple = pub use tauri_specta_macros::collect_commands; -// TODO -// #[cfg(doctest)] -// doc_comment::doctest!("../README.md"); - /// A set of functions that produce language-specific code pub trait ExportLanguage: 'static { type Config: Default + Clone;