Skip to content

Commit

Permalink
tweak(build): Move semver to workspace dep (#4626)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored Jun 17, 2024
1 parent 7dd37cb commit eeaffdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ insta = {version = "1.39.0", features = ["colors", "glob", "yaml"]}
insta-cmd = "0.6.0"
itertools = "0.12.0"
log = "0.4.21"
semver = {version = "1.0.23", features = ["serde"]}
serde = {version = "1.0.203", features = ["derive"]}
serde_json = "1.0.117"
serde_yaml = {version = "0.9.34"}
4 changes: 1 addition & 3 deletions prqlc/prqlc-ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ doctest = false

[dependencies]
enum-as-inner = {workspace = true}
semver = {version = "1.0.23", features = ["serde"]}
semver = {workspace = true}
serde = {workspace = true}
serde_yaml = {workspace = true, optional = true}
strum = {version = "0.26.2", features = ["std", "derive"]}
Expand All @@ -28,8 +28,6 @@ stacker = "0.1.15"
[target.'cfg(target_family="wasm")'.dependencies]
chumsky = {version = "0.9.2", features = ["ahash", "std"], default-features = false}



[dev-dependencies]
insta = {workspace = true}
serde_json = {workspace = true}
11 changes: 4 additions & 7 deletions prqlc/prqlc-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ version.workspace = true
doctest = false

[dependencies]
prqlc-ast = {path = "../prqlc-ast", version = "0.12.3" }
serde = {workspace = true}
serde_yaml = {workspace = true, optional = true}
semver = {version = "1.0.23", features = ["serde"]}
itertools = {workspace = true}
log = {workspace = true}

prqlc-ast = {path = "../prqlc-ast", version = "0.12.3"}
semver = {workspace = true}
serde = {workspace = true}
serde_yaml = {workspace = true, optional = true}

# Chumsky's default features have issues when running in wasm (though we only
# see it when compiling on macOS), so we only include features when running
Expand All @@ -30,7 +29,5 @@ stacker = "0.1.15"
[target.'cfg(target_family="wasm")'.dependencies]
chumsky = {version = "0.9.2", features = ["ahash", "std"], default-features = false}



[dev-dependencies]
insta = {workspace = true}
8 changes: 4 additions & 4 deletions prqlc/prqlc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ test-dbs = ["anyhow", "duckdb", "glob", "rusqlite", "tokio"]
test-dbs-external = ["anyhow", "duckdb", "glob", "mysql", "pg_bigdecimal", "postgres", "rusqlite", "tiberius", "tokio", "tokio-util"]

[dependencies]
prqlc-ast = {path = "../prqlc-ast", version = "0.12.3" }
prqlc-parser = {path = "../prqlc-parser", version = "0.12.3" }
prqlc-ast = {path = "../prqlc-ast", version = "0.12.3"}
prqlc-parser = {path = "../prqlc-parser", version = "0.12.3"}

anstream = {version = "0.6.14", features = ["auto"]}
ariadne = "0.4.1"
Expand All @@ -52,7 +52,7 @@ itertools = {workspace = true}
log = {workspace = true}
once_cell = "1.19.0"
regex = "1.10.5"
semver = {version = "1.0.23", features = ["serde"]}
semver = {workspace = true}
# serde is required for the `from_text` feature of PRQL, so we can't really put
# it behind a feature.
serde = {workspace = true}
Expand Down Expand Up @@ -126,8 +126,8 @@ name = "bench"
[[package.metadata.release.pre-release-replacements]]
exactly = 1
file = "../packages/snap/snapcraft.yaml"
search = '^version: "[\d.]+"$'
replace = 'version: "{{version}}"'
search = '^version: "[\d.]+"$'

[[package.metadata.release.pre-release-replacements]]
exactly = 1
Expand Down

0 comments on commit eeaffdb

Please sign in to comment.