Skip to content

Commit 5b34fd1

Browse files
committed
Support publishing to crates.io
1 parent 2258744 commit 5b34fd1

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sqlsonnet-clickhouse-client = { version = "0.1.14", path = "clickhouse-client" }
1414
anyhow = "1.0.86"
1515
clap = { version = "4.5.7", features = ["derive", "env"] }
1616
itertools = "0.13.0"
17-
serde = "1.0"
17+
serde = { version = "1.0", features = ["derive"] }
1818
thiserror = "1.0.61"
1919
tracing = "0.1.40"
2020
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
@@ -25,7 +25,8 @@ tokio = { version = "1.38.0", features = ["full"] }
2525
reqwest = { version = "0.12.4", features = ["rustls-tls", "json", "gzip", "zstd", "stream"], default-features = false }
2626
http = "1.0.0"
2727
jrsonnet-parser-95 = { package = "jrsonnet-parser", version = "0.5.0-pre95", features = ["exp-null-coaelse"] }
28-
jrsonnet-parser-96 = { version = "0.5.0-pre96", git = "https://github.com/cpg314/jrsonnet.git", package = "jrsonnet-parser", tag = "v0.5.0-patch", features = ["exp-null-coaelse"] }
28+
# The version at 95 is not a typo, but to allow the package to be built for crates.io
29+
jrsonnet-parser-96 = { version = "0.5.0-pre95", git = "https://github.com/cpg314/jrsonnet.git", package = "jrsonnet-parser", tag = "v0.5.0-patch", features = ["exp-null-coaelse"] }
2930

3031
[workspace]
3132
members = ["sqlsonnet", "clickhouse-proxy", "sqlsonnet-cli", "clickhouse-client", "bindings/wasm", "macros"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ $ cargo nextest run --workspace -r
340340
Via the feature flags `jrsonnet-95` and `jrsonnet-96` (default), the crate supports both:
341341

342342
- the latest published version of `jrsonnet` on crates.io, 0.5.0-pre95
343-
- the [soon-to-be-released](https://github.com/CertainLach/jrsonnet/issues/70) 0.5.0-pre96 version.
343+
- the [soon-to-be-released](https://github.com/CertainLach/jrsonnet/issues/70) 0.5.0-pre96 version. This is not available when the crate is retrieved from crates.io.
344344

345345
## TODO
346346

sqlsonnet/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ readme.workspace = true
1111
itertools.workspace = true
1212
jrsonnet-gcmodule = "0.3.6"
1313
jrsonnet-evaluator-95 = { package = "jrsonnet-evaluator", version = "0.5.0-pre95", features = ["exp-null-coaelse"], optional = true}
14-
jrsonnet-evaluator-96 = { version = "0.5.0-pre96", git = "https://github.com/cpg314/jrsonnet.git", package = "jrsonnet-evaluator", tag = "v0.5.0-patch", features = ["exp-null-coaelse"], optional = true }
14+
# The version at 95 is not a typo, but to allow the package to be built for crates.io
15+
jrsonnet-evaluator-96 = { version = "0.5.0-pre95", git = "https://github.com/cpg314/jrsonnet.git", package = "jrsonnet-evaluator", tag = "v0.5.0-patch", features = ["exp-null-coaelse"], optional = true }
1516
jrsonnet-parser-95 = { workspace = true, optional = true }
1617
jrsonnet-parser-96 = { workspace = true, optional = true }
1718
jrsonnet-stdlib-95 = { package = "jrsonnet-stdlib", version = "0.5.0-pre95", features = ["exp-null-coaelse"], optional = true}
18-
jrsonnet-stdlib-96 = { version = "0.5.0-pre96", git = "https://github.com/cpg314/jrsonnet.git", package = "jrsonnet-stdlib", tag = "v0.5.0-patch", features = ["exp-null-coaelse"], optional = true }
19+
# The version at 95 is not a typo, but to allow the package to be built for crates.io
20+
jrsonnet-stdlib-96 = { version = "0.5.0-pre95", git = "https://github.com/cpg314/jrsonnet.git", package = "jrsonnet-stdlib", tag = "v0.5.0-patch", features = ["exp-null-coaelse"], optional = true }
1921
miette = { version = "7.2.0" }
2022
pest = { version = "2.7.10", optional = true }
2123
pest_derive = { version = "2.7.10", features = ["grammar-extras"], optional = true }

sqlsonnet/logo.png

75.2 KB
Loading

0 commit comments

Comments
 (0)