Skip to content

Commit 525edab

Browse files
committed
[1/N] Moving core types into lib/ty
1 parent 2124238 commit 525edab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6774
-33
lines changed

Cargo.lock

Lines changed: 85 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
members = [
33
"cli",
44
"crates/*",
5+
"crates/lib/ty",
56
"crates/core/derive",
67
"crates/encoding/derive",
78
"crates/codederror/derive",
@@ -15,11 +16,13 @@ members = [
1516
"tools/xtask",
1617
"workspace-hack",
1718
]
19+
20+
exclude = [
21+
"crates/lib",
22+
]
23+
1824
default-members = [
1925
"cli",
20-
"crates/*",
21-
"crates/core/derive",
22-
"crates/codederror/derive",
2326
"server",
2427
"tools/restatectl",
2528
]
@@ -162,7 +165,7 @@ hyper-rustls = { version = "0.27.2", default-features = false, features = [
162165
hyper-util = { version = "0.1" }
163166
indexmap = "2.7"
164167
itertools = "0.14.0"
165-
jiff = "0.2.14"
168+
jiff = { version = "0.2.14" }
166169
jsonschema = { version = "0.28.3", default-features = false }
167170
metrics = { version = "0.24" }
168171
metrics-exporter-prometheus = { version = "0.17", default-features = false, features = [
@@ -184,7 +187,7 @@ paste = "1.0"
184187
pin-project = "1.0"
185188
pin-project-lite = { version = "0.2" }
186189
prost = { version = "0.14.1" }
187-
prost-build = { version = "0.14.1" }
190+
prost-build = { version = "0.14.1", default-features = false }
188191
priority-queue = { version = "2.7.0" }
189192
prost-dto = { version = "0.0.4" }
190193
prost-types = { version = "0.14.1" }
@@ -206,10 +209,10 @@ rustls = { version = "0.23.26", default-features = false, features = ["ring"] }
206209
schemars = { version = "0.8", features = ["bytes", "enumset"] }
207210
semver = { version = "1.0", features = ["serde"] }
208211
serde = { version = "1.0", features = ["derive"] }
209-
serde_json = "1.0"
210-
serde_with = "3.8"
212+
serde_json = { version = "1.0" }
213+
serde_with = { version = "3.15" }
211214
serde_yaml = "0.9"
212-
sha2 = "0.10.8"
215+
sha2 = { version = "0.10.8" }
213216
smartstring = { version = "1.0.1" }
214217
static_assertions = { version = "1.1.0" }
215218
strum = { version = "0.27.1", features = ["derive"] }
@@ -253,7 +256,7 @@ ulid = { version = "1.2.0" }
253256
url = { version = "2.5" }
254257
urlencoding = { version = "2.1" }
255258
uuid = { version = "1.3.0", features = ["v7", "serde"] }
256-
xxhash-rust = { version = "0.8", features = ["xxh3"] }
259+
xxhash-rust = { version = "0.8" }
257260
zstd = { version = "0.13" }
258261

259262
[patch.crates-io.restate-workspace-hack]

crates/lib/ty/Cargo.toml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[package]
2+
name = "restate-ty"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
rust-version.workspace = true
7+
license.workspace = true
8+
publish = false
9+
10+
[features]
11+
default = []
12+
test-util = []
13+
14+
[dependencies]
15+
restate-workspace-hack = { workspace = true }
16+
17+
restate-base64-util = { workspace = true }
18+
restate-encoding = { workspace = true }
19+
20+
anyhow = { workspace = true }
21+
base62 = { version = "2.2.2" }
22+
base64 = { workspace = true }
23+
bilrost = { workspace = true, features = ["derive"] }
24+
bytes = { workspace = true }
25+
bytestring = { workspace = true }
26+
derive_more = { workspace = true }
27+
downcast-rs = { workspace = true }
28+
enum-map = { workspace = true }
29+
generic-array = { version = "1.3.5" }
30+
itertools = { workspace = true }
31+
num-traits = { workspace = true }
32+
opentelemetry = { workspace = true, features = ["trace"] }
33+
paste = { workspace = true }
34+
prost = { workspace = true }
35+
prost-dto = { workspace = true }
36+
prost-types = { workspace = true }
37+
rand = { workspace = true }
38+
schemars = { workspace = true, optional = true }
39+
semver = { workspace = true }
40+
serde = { workspace = true }
41+
serde_with = { workspace = true }
42+
sha2 = { workspace = true }
43+
smartstring = { workspace = true }
44+
static_assertions = { workspace = true }
45+
strum = { workspace = true }
46+
thiserror = { workspace = true }
47+
ulid = { workspace = true }
48+
xxhash-rust = { workspace = true, features = ["xxh3"] }
49+
50+
[dev-dependencies]
51+
restate-ty = { path = ".", default-features = false, features = ["test-util"]}
52+
53+
googletest = { workspace = true }
54+
criterion = { workspace = true }
55+
serde_json = { workspace = true }
56+
57+
[build-dependencies]
58+
prost-build = { workspace = true }
59+
60+
[[bench]]
61+
name = "id_encoding"
62+
harness = false

0 commit comments

Comments
 (0)