From 0955876cb37c4b865be613f386126301cd4c8cae Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 24 Mar 2024 21:08:28 +0100 Subject: [PATCH] fix(trixy): Add thiserror dependency, as it's used in generated code --- Cargo.toml | 1 + src/lib.rs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 92f32e9..9ead302 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,3 +26,4 @@ edition = "2021" trixy-parser = { path = "./trixy-parser" } trixy-macros = { path = "./trixy-macros" } trixy-types = { path = "./trixy-types" } +thiserror = "1.0.57" diff --git a/src/lib.rs b/src/lib.rs index d2679bc..9be5fae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,6 +26,12 @@ pub mod types { pub mod macros { pub use trixy_macros::*; } +pub mod __private { + //! This module contains crates needed for the generated code, it should not be used by humans. + pub mod thiserror { + pub use thiserror::*; + } +} pub mod oneshot { //! This module provides a synced version of tokio's oneshot channel.