Skip to content

Commit

Permalink
Implement workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdreim committed Aug 5, 2024
1 parent a7172a4 commit fa1ed47
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 10 deletions.
41 changes: 35 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[package]
name = "dana"
[workspace]
members = ["dana_macros"]
default-members = ["dana_macros", "."]

[workspace.package]
description = "Compile-time dimensional analysis via generic types."
version = "0.2.0"

authors = ["J.S. Dreim <jsdreim@protonmail.com>"]
repository = "https://github.com/jsdreim/dana"
readme = "README.md"
documentation = "https://docs.rs/dana"

exclude = ["/.idea", "/.vscode", "*.sh", "*.tar.gz", "*.zip"]
categories = ["development-tools", "mathematics", "science"]
Expand All @@ -14,14 +18,39 @@ keywords = ["dimensional-analysis", "quantities", "units", "library"]
edition = "2021"
license = "Apache-2.0"


[dependencies]
[workspace.dependencies]
num-traits = "0.2.19"
typenum = "1.17.0"

[dependencies.dana_macros]
[workspace.dependencies.dana_macros]
# NOTE: Keep dependency version in sync with workspace version.
# TODO: Can this be picked automatically?
version = "0.2.0"
path = "dana_macros"


[package]
name = "dana"
description.workspace = true
version.workspace = true

authors.workspace = true
repository.workspace = true
readme.workspace = true
documentation.workspace = true

exclude.workspace = true
categories.workspace = true
keywords.workspace = true

edition.workspace = true
license.workspace = true


[dependencies]
dana_macros.workspace = true
num-traits.workspace = true
typenum = "1.17.0"

[dependencies.chrono]
version = "0.4.38"
optional = true
Expand Down
19 changes: 15 additions & 4 deletions dana_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
[package]
name = "dana_macros"
version = "0.1.0"
edition = "2021"
publish = false
description = "Procedural macro crate for `dana`."
version.workspace = true

authors.workspace = true
repository.workspace = true
readme.workspace = true
documentation.workspace = true

exclude.workspace = true
categories.workspace = true
keywords.workspace = true

edition.workspace = true
license.workspace = true


[lib]
proc-macro = true


[dependencies]
num-traits = "0.2.19"
num-traits.workspace = true
quote = "1.0.36"
syn = "2.0.66"

Expand Down

0 comments on commit fa1ed47

Please sign in to comment.