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 fe41e3b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 11 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.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[workspace]
members = [
"trait_transformer",
"trait-variant",
]

resolver = "2"

[workspace.package]
license = "MIT OR Apache 2.0"

[workspace.dependencies]
trait_transformer = { version = "0.1.0", path = "trait_transformer" }
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 → trait-variant/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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fe41e3b

Please sign in to comment.