From 1987e628fa9213ab9251cb928f170f0b0a4d431e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 8 Oct 2019 23:21:46 -0700 Subject: [PATCH] Add thiserror-impl crate to be the proc macro --- Cargo.toml | 3 +++ impl/Cargo.toml | 8 ++++++++ src/lib.rs | 1 + 3 files changed, 12 insertions(+) create mode 100644 impl/Cargo.toml create mode 100644 src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 308dec9..8c32457 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,3 +3,6 @@ name = "thiserror" version = "0.0.0" authors = ["David Tolnay "] edition = "2018" + +[dependencies] +thiserror-impl = { version = "0.0", path = "impl" } diff --git a/impl/Cargo.toml b/impl/Cargo.toml new file mode 100644 index 0000000..0c7dfa0 --- /dev/null +++ b/impl/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "thiserror-impl" +version = "0.0.0" +authors = ["David Tolnay "] +edition = "2018" + +[lib] +proc-macro = true diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..f7a7376 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ +pub use thiserror_impl::*;