From bb67466b43253cff18c23eeb158b6d942a85af82 Mon Sep 17 00:00:00 2001 From: Tyler Mandry Date: Thu, 14 Dec 2023 16:25:38 -0800 Subject: [PATCH] Rename crate to trait-variant --- Cargo.lock | 4 ++-- README.md | 2 +- trait_transformer/Cargo.toml | 4 ++-- trait_transformer/examples/trait_transformer.rs | 2 +- trait_transformer/examples/variant.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1ae847c..7535e65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -135,8 +135,8 @@ dependencies = [ ] [[package]] -name = "trait_transformer" -version = "0.1.0" +name = "trait-variant" +version = "0.0.0" dependencies = [ "proc-macro2", "quote", diff --git a/README.md b/README.md index 3af438f..f95a4eb 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Utilities for working with impl traits in Rust. `make_variant` generates a specialized version of a base trait that uses `async fn` and/or `-> impl Trait`. For example, if you want a `Send`able version of your trait, you'd write: ```rust -#[trait_transformer::make_variant(SendIntFactory: Send)] +#[trait_variant::make_variant(SendIntFactory: Send)] trait IntFactory { async fn make(&self) -> i32; // ..or.. diff --git a/trait_transformer/Cargo.toml b/trait_transformer/Cargo.toml index 98a3b71..33c761c 100644 --- a/trait_transformer/Cargo.toml +++ b/trait_transformer/Cargo.toml @@ -7,8 +7,8 @@ # except according to those terms. [package] -name = "trait_transformer" -version = "0.1.0" +name = "trait-variant" +version = "0.0.0" edition = "2021" license.workspace = true diff --git a/trait_transformer/examples/trait_transformer.rs b/trait_transformer/examples/trait_transformer.rs index 80129a0..619514e 100644 --- a/trait_transformer/examples/trait_transformer.rs +++ b/trait_transformer/examples/trait_transformer.rs @@ -11,7 +11,7 @@ use std::iter; -use trait_transformer::trait_transformer; +use trait_variant::trait_transformer; #[trait_transformer(SendIntFactory: Send)] trait IntFactory { diff --git a/trait_transformer/examples/variant.rs b/trait_transformer/examples/variant.rs index 43befdd..93c2ebe 100644 --- a/trait_transformer/examples/variant.rs +++ b/trait_transformer/examples/variant.rs @@ -8,7 +8,7 @@ use std::future::Future; -use trait_transformer::make_variant; +use trait_variant::make_variant; #[make_variant(SendIntFactory: Send)] trait IntFactory {