Skip to content

Commit

Permalink
Prepare toml files for crates.io publish
Browse files Browse the repository at this point in the history
The rust version was determined by the dependency to regex, the main
deadlocker crate could probably work with a lower rust version. However,
since the main point of this project is the derive macro I have set the
rust version in the main crate to match that of the derive crate.
  • Loading branch information
Areskiko committed May 22, 2024
1 parent 41b35dd commit 69b3894
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ resolver = "2"

members = [
"deadlocker",
"deadlocker_derive"
, "examples/custom_locks_example", "examples/async_example", "examples/basic_example"]
"deadlocker_derive",
"examples/custom_locks_example",
"examples/async_example",
"examples/basic_example"
]

[patch.crates-io]
deadlocker = { path = "deadlocker" }
16 changes: 12 additions & 4 deletions deadlocker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@
name = "deadlocker"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
authors = ["Stefan Mack <[email protected]>"]
categories = ["synchronization", "lock", "mutex"]
description = "Bringing builder pattern to defeat deadlocks"
documentation = "https://docs.rs/deadlocker"
homepage = "https://github.com/Areskiko/deadlocker"
keywords = ["mutex", "lock", "deadlock", "deadlocker"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/Areskiko/deadlocker"
rust-version = "1.65"

[dependencies]
deadlocker_derive = { optional = true, path = "../deadlocker_derive" }
deadlocker_derive = { version = "0", optional = true, path = "../deadlocker_derive" }

[dev-dependencies]
deadlocker_derive = { path = "../deadlocker_derive" }
deadlocker_derive = { version = "0", path = "../deadlocker_derive" }

[features]
default = ["derive"]
Expand Down
15 changes: 12 additions & 3 deletions deadlocker_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
name = "deadlocker_derive"
version = "0.1.0"
edition = "2021"
authors = ["Stefan Mack <[email protected]>"]
categories = ["synchronization", "lock", "mutex"]
description = "Macro implementation for #[derive(Locker)]"
documentation = "https://docs.rs/deadlocker_derive"
homepage = "https://github.com/Areskiko/deadlocker"
keywords = ["mutex", "lock", "deadlock", "deadlocker", "derive"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/Areskiko/deadlocker"
rust-version = "1.65"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
proc-macro = true

Expand All @@ -12,7 +21,7 @@ proc-macro2 = "1.0"
syn = { version = "2.0", features = ["extra-traits"] }
quote = "1.0"
itertools = "0.12"
regex = "1.10.4"
regex = "1.10"

[dev-dependencies]
deadlocker = { path = "../deadlocker" }
deadlocker = { version = "0", path = "../deadlocker" }

0 comments on commit 69b3894

Please sign in to comment.