-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
[package] | ||
description = "Merge structs into single by values" | ||
exclude = [".github/*"] | ||
keywords = ["struct", "merge", "combine", "macros", "derive"] | ||
name = "merge2" | ||
readme = "README.md" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
categories.workspace = true | ||
documentation.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
|
||
[workspace.package] | ||
authors = ["Dmitry Rodionov <gh@rdmtr.com>"] | ||
categories = ["rust-patterns"] | ||
documentation = "https://docs.rs/merge2/" | ||
edition = "2021" | ||
description = "Merge structs into single by values" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/RoDmitry/merge2" | ||
keywords = ["struct", "merge", "combine", "macros", "derive"] | ||
categories = ["rust-patterns"] | ||
license = "Apache-2.0 OR MIT" | ||
exclude = [".builds/*"] | ||
readme = "README.md" | ||
|
||
[lib] | ||
name = "merge2" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
merge2_derive = { path = "merge2_derive", version = "0.1.0", optional = true } | ||
merge2_derive = { path = "merge2_derive", version = "0.1", optional = true } | ||
num-traits = { version = "0.2.12", optional = true } | ||
|
||
[dev-dependencies] | ||
envy = "0.4" | ||
toml = "0.8" | ||
trybuild = "1.0" | ||
structopt = "0.3" | ||
serde = { version = "1.0", features = ["derive"] } | ||
|
||
[features] | ||
default = ["derive", "num", "std"] | ||
default = ["derive", "std"] | ||
derive = ["merge2_derive"] | ||
num = ["num-traits"] | ||
std = [] | ||
|
||
[workspace] | ||
members = ["merge2_derive"] | ||
members = ["merge2_derive", "merge2_examples"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
[package] | ||
description = "Derive macro for Merge2" | ||
name = "merge2_derive" | ||
version = "0.1.0" | ||
authors = ["Dmitry Rodionov <gh@rdmtr.com>"] | ||
edition = "2021" | ||
license = "Apache-2.0 OR MIT" | ||
publish = false | ||
authors.workspace = true | ||
categories.workspace = true | ||
documentation.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dependencies] | ||
proc-macro2 = "1.0" | ||
manyhow = "0.10" | ||
proc-macro2 = "1.0" | ||
quote = "1.0" | ||
syn = "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
description = "Merge2 examples" | ||
edition = "2021" | ||
name = "merge2_examples" | ||
version = "0.1.0" | ||
publish = false | ||
|
||
[dependencies] | ||
merge2 = { path = ".." } | ||
clap = { version = "4.4", default-features = false, features = ["derive", "std"] } | ||
envy = "0.4" | ||
serde = { version = "1.0", features = ["derive"] } | ||
toml = "0.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters