Skip to content

Commit

Permalink
Rename crate to trait-variant
Browse files Browse the repository at this point in the history
  • Loading branch information
tmandry committed Dec 15, 2023
1 parent ce9f579 commit bb67466
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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..
Expand Down
4 changes: 2 additions & 2 deletions trait_transformer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion trait_transformer/examples/trait_transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use std::iter;

use trait_transformer::trait_transformer;
use trait_variant::trait_transformer;

#[trait_transformer(SendIntFactory: Send)]
trait IntFactory {
Expand Down
2 changes: 1 addition & 1 deletion trait_transformer/examples/variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

use std::future::Future;

use trait_transformer::make_variant;
use trait_variant::make_variant;

#[make_variant(SendIntFactory: Send)]
trait IntFactory {
Expand Down

0 comments on commit bb67466

Please sign in to comment.