Skip to content

Commit fe41e3b

Browse files
committed
Rename crate to trait-variant
1 parent ce9f579 commit fe41e3b

File tree

9 files changed

+8
-11
lines changed

9 files changed

+8
-11
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[workspace]
22
members = [
3-
"trait_transformer",
3+
"trait-variant",
44
]
55

66
resolver = "2"
77

88
[workspace.package]
99
license = "MIT OR Apache 2.0"
10-
11-
[workspace.dependencies]
12-
trait_transformer = { version = "0.1.0", path = "trait_transformer" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Utilities for working with impl traits in Rust.
77
`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:
88

99
```rust
10-
#[trait_transformer::make_variant(SendIntFactory: Send)]
10+
#[trait_variant::make_variant(SendIntFactory: Send)]
1111
trait IntFactory {
1212
async fn make(&self) -> i32;
1313
// ..or..

trait_transformer/Cargo.toml renamed to trait-variant/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# except according to those terms.
88

99
[package]
10-
name = "trait_transformer"
11-
version = "0.1.0"
10+
name = "trait-variant"
11+
version = "0.0.0"
1212
edition = "2021"
1313
license.workspace = true
1414

trait_transformer/examples/trait_transformer.rs renamed to trait-variant/examples/trait_transformer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use std::iter;
1313

14-
use trait_transformer::trait_transformer;
14+
use trait_variant::trait_transformer;
1515

1616
#[trait_transformer(SendIntFactory: Send)]
1717
trait IntFactory {

trait_transformer/examples/variant.rs renamed to trait-variant/examples/variant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use std::future::Future;
1010

11-
use trait_transformer::make_variant;
11+
use trait_variant::make_variant;
1212

1313
#[make_variant(SendIntFactory: Send)]
1414
trait IntFactory {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)