Skip to content

Commit 26b9f63

Browse files
authored
Merge pull request #5 from rust-lang/trait-variant
Rename crate to trait-variant
2 parents 2bf8bfa + f79e763 commit 26b9f63

File tree

10 files changed

+17
-14
lines changed

10 files changed

+17
-14
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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
[workspace]
22
members = [
3-
"trait_transformer",
3+
"trait-variant",
44
]
55

66
resolver = "2"
77

88
[workspace.package]
9-
license = "MIT OR Apache 2.0"
10-
11-
[workspace.dependencies]
12-
trait_transformer = { version = "0.1.0", path = "trait_transformer" }
9+
repository = "https://github.com/rust-lang/impl-trait-utils"
10+
license = "MIT OR Apache-2.0"

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: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
# except according to those terms.
88

99
[package]
10-
name = "trait_transformer"
11-
version = "0.1.0"
12-
edition = "2021"
10+
name = "trait-variant"
11+
version = "0.0.0"
12+
description = "Utilities for working with impl traits in Rust"
13+
categories = ["asynchronous", "no-std", "rust-patterns"]
14+
keywords = ["async", "trait", "impl"]
1315
license.workspace = true
16+
repository.workspace = true
17+
edition = "2021"
1418

1519
[lib]
1620
proc-macro = true

trait-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

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 {

trait_transformer/src/lib.rs renamed to trait-variant/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9-
#![doc = include_str!("../../README.md")]
9+
#![doc = include_str!("../README.md")]
1010

1111
mod transformer;
1212
mod variant;
File renamed without changes.

0 commit comments

Comments
 (0)