Skip to content

Commit

Permalink
Turn into workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Mar 6, 2024
1 parent ddb3773 commit a8484a2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 17 deletions.
40 changes: 32 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,51 @@
[package]
name = "comemo"
[workspace]
members = ["macros"]
resolver = "2"

[workspace.package]
version = "0.3.1"
authors = ["Laurenz <laurmaedje@gmail.com>"]
edition = "2021"
description = "Incremental computation through constrained memoization."
repository = "https://github.com/typst/comemo"
readme = "README.md"
license = "MIT OR Apache-2.0"
categories = ["caching"]
keywords = ["incremental", "memoization", "tracked", "constraints"]

[workspace.dependencies]
comemo-macros = { version = "0.3.1", path = "macros" }
once_cell = "1.18"
parking_lot = "0.12"
proc-macro2 = "1"
quote = "1"
serial_test = "3"
siphasher = "1"
syn = { version = "2", features = ["full"] }

[package]
name = "comemo"
description = "Incremental computation through constrained memoization."
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
readme = { workspace = true }
categories = { workspace = true }
keywords = { workspace = true }

[features]
default = []
testing = []

[dependencies]
comemo-macros = { version = "0.3.1", path = "macros" }
once_cell = "1.18"
parking_lot = "0.12"
siphasher = "1"
comemo-macros = { workspace = true }
once_cell = { workspace = true }
parking_lot = { workspace = true }
siphasher = { workspace = true }

[dev-dependencies]
serial_test = "2.0.0"
serial_test = { workspace = true }

[[test]]
name = "tests"
Expand Down
20 changes: 11 additions & 9 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
[package]
name = "comemo-macros"
version = "0.3.1"
authors = ["Laurenz <laurmaedje@gmail.com>"]
edition = "2021"
description = "Procedural macros for comemo."
repository = "https://github.com/typst/comemo"
readme = "../README.md"
license = "MIT OR Apache-2.0"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
readme = { workspace = true }
categories = { workspace = true }
keywords = { workspace = true }

[lib]
proc-macro = true

[dependencies]
proc-macro2 = "1"
quote = "1"
syn = { version = "2", features = ["full"] }
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true }

0 comments on commit a8484a2

Please sign in to comment.