Skip to content

Commit 5e64a01

Browse files
Prepare release 3.10.1 (#444)
## Product change and motivation Update dependencies, bump version, and prepare release notes ## Implementation
1 parent e0c7cde commit 5e64a01

6 files changed

Lines changed: 130 additions & 75 deletions

File tree

Cargo.toml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,80 @@
33
resolver = "2"
44
members = ["rust", "rust/tests/behaviour"]
55

6+
[workspace.dependencies]
7+
8+
[workspace.dependencies.tokio]
9+
features = ["bytes", "default", "fs", "full", "io-std", "io-util", "libc", "macros", "mio", "net", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "sync", "time", "tokio-macros"]
10+
version = "1.52.0"
11+
default-features = false
12+
13+
[workspace.dependencies.pest]
14+
features = ["default", "memchr", "std"]
15+
version = "2.8.6"
16+
default-features = false
17+
18+
[workspace.dependencies.criterion]
19+
features = ["cargo_bench_support", "default", "plotters", "rayon"]
20+
version = "0.5.1"
21+
default-features = false
22+
23+
[workspace.dependencies.cucumber]
24+
features = ["default", "macros"]
25+
version = "0.19.1"
26+
default-features = false
27+
28+
[workspace.dependencies.syn]
29+
features = ["clone-impls", "default", "derive", "extra-traits", "fold", "full", "parsing", "printing", "proc-macro", "visit", "visit-mut"]
30+
version = "2.0.117"
31+
default-features = false
32+
33+
[workspace.dependencies.futures]
34+
features = ["alloc", "async-await", "default", "executor", "futures-executor", "std", "thread-pool"]
35+
version = "0.3.32"
36+
default-features = false
37+
38+
[workspace.dependencies.itertools]
39+
features = ["default", "use_alloc", "use_std"]
40+
version = "0.10.5"
41+
default-features = false
42+
43+
[workspace.dependencies.steps]
44+
path = "rust/tests/behaviour"
45+
features = []
46+
default-features = false
47+
48+
[workspace.dependencies.rand]
49+
features = ["alloc", "default", "getrandom", "libc", "rand_chacha", "small_rng", "std", "std_rng"]
50+
version = "0.8.5"
51+
default-features = false
52+
53+
[workspace.dependencies.regex]
54+
features = ["default", "perf", "perf-backtrack", "perf-cache", "perf-dfa", "perf-inline", "perf-literal", "perf-onepass", "std", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"]
55+
version = "1.12.3"
56+
default-features = false
57+
58+
[workspace.dependencies.pest_derive]
59+
features = ["default", "std"]
60+
version = "2.8.6"
61+
default-features = false
62+
63+
[workspace.dependencies.pprof]
64+
features = ["cpp", "criterion", "default", "flamegraph", "inferno"]
65+
version = "0.13.0"
66+
default-features = false
67+
68+
[workspace.dependencies.typeql]
69+
path = "rust"
70+
features = []
71+
default-features = false
72+
73+
[workspace.dependencies.proc-macro2]
74+
features = ["default", "proc-macro"]
75+
version = "1.0.106"
76+
default-features = false
77+
78+
[workspace.dependencies.chrono]
79+
features = ["alloc", "clock", "default", "iana-time-zone", "js-sys", "now", "oldtime", "serde", "std", "wasm-bindgen", "wasmbind", "winapi", "windows-link"]
80+
version = "0.4.44"
81+
default-features = false
82+

MODULE.bazel

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,25 @@ bazel_dep(name = "rules_pkg", version = "1.0.1")
2121

2222
# Rust
2323
bazel_dep(name = "rules_rust", version = "0.56.0")
24+
# Backport a bug fix from rules_rust 0.58 (bazelbuild/rules_rust#3251)
25+
git_override(
26+
module_name = "rules_rust",
27+
remote = "https://github.com/bazelbuild/rules_rust",
28+
tag = "0.56.0",
29+
patches = ["@@typedb_dependencies+//patches:rules_rust.patch"],
30+
)
31+
2432
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
2533
rust.toolchain(
26-
edition = "2021",
27-
versions = ["1.81.0"],
34+
edition = "2024",
35+
versions = ["1.93.0"],
2836
)
2937
use_repo(rust, "rust_toolchains")
3038
register_toolchains("@rust_toolchains//:all")
3139

40+
rust_host_tools = use_extension("@rules_rust//rust:extensions.bzl", "rust_host_tools")
41+
rust_host_tools.host_tools(version = "1.93.0")
42+
3243
# Python
3344
bazel_dep(name = "rules_python", version = "1.0.0")
3445
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
@@ -63,7 +74,7 @@ bazel_dep(name = "typedb_dependencies", version = "0.0.0")
6374
git_override(
6475
module_name = "typedb_dependencies",
6576
remote = "https://github.com/typedb/dependencies",
66-
commit = "72a2ee5bdd90ea76129889b30f89da51bcdc7909",
77+
commit = "00d895243d72e2b19b0e5dc121eec4f0ed8eb532",
6778
)
6879

6980
bazel_dep(name = "typedb_bazel_distribution", version = "0.0.0")
@@ -79,3 +90,13 @@ git_override(
7990
remote = "https://github.com/typedb/typedb-behaviour",
8091
commit = "bc1e71c9334272178104f657b0996d9f15be66c9",
8192
)
93+
94+
# workspace_refs for rust sync
95+
# Creates a refs.json file with version information from dependencies
96+
workspace_refs = use_repo_rule("@typedb_bazel_distribution//common/workspace_refs:rules.bzl", "_workspace_refs")
97+
workspace_refs(
98+
name = "typeql_workspace_refs",
99+
workspace_commit_dict = {},
100+
workspace_tag_dict = {},
101+
)
102+

RELEASE_NOTES_LATEST.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33

44
Available through https://crates.io/crates/typeql.
55
```
6-
cargo add typeql@3.10.0
6+
cargo add typeql@3.10.1
77
```
88

99

1010
## New Features
11-
- **Implement unicode unescaping**
12-
Escaped unicode characters can be used in TypeQL string literals. These must be of the form `\uXXXX` (exactly 4 hex digits), or `\u{XX...X}` (1 to 6 hex digits).
13-
14-
11+
1512

1613
## Bugs Fixed
1714

@@ -20,14 +17,9 @@ cargo add typeql@3.10.0
2017

2118

2219
## Other Improvements
23-
- **Fix parser for inserting with anonymous relation syntax**
24-
Fixes a bug in parsing for inserting with anonymous relation syntax
25-
26-
- **Minor grammar refactor for parser performance improvements**
27-
Reordering the choices to boost performance by failing faster and having more frequent alternatives earlier. Also removes the `!reserved` check for identifiers and expects this to be handled in an application post-check.
28-
29-
- **Bazel 8 upgrade**
30-
31-
Update Bazel version from 6.2 to 8.5.1.
32-
33-
The upgrade is done in a backwards-compatible way, such that "upstream" repositories that are yet to be upgraded may depend on this repository. This is done by preserving WORKSPACE and the deps.bzl loader files alongside the new Bazel 8 ones. Once every repository has been upgraded to Bazel 8, these files will be removed.
20+
21+
- **Update dependencies**
22+
23+
- **Update Rust to 1.93.0**
24+
25+

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10.0
1+
3.10.1

rust/Cargo.toml

Lines changed: 16 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,90 +6,58 @@ features = {}
66

77
[package]
88
name = "typeql"
9-
edition = "2021"
9+
edition = "2024"
1010
version = "0.0.0"
1111

1212
[lib]
1313
path = "typeql.rs"
14+
crate-type = ["lib"]
1415

1516
[dev-dependencies]
1617

1718
[dev-dependencies.rand]
18-
features = ["alloc", "default", "getrandom", "libc", "rand_chacha", "small_rng", "std", "std_rng"]
19-
version = "0.8.5"
20-
default-features = false
19+
workspace = true
2120

2221
[dev-dependencies.tokio]
23-
features = ["bytes", "default", "fs", "full", "io-std", "io-util", "libc", "macros", "mio", "net", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "sync", "time", "tokio-macros"]
24-
version = "1.47.1"
25-
default-features = false
26-
27-
[dev-dependencies.tracing]
28-
features = ["attributes", "default", "log", "std", "tracing-attributes"]
29-
version = "0.1.41"
30-
default-features = false
22+
workspace = true
3123

3224
[dev-dependencies.criterion]
33-
features = ["cargo_bench_support", "default", "plotters", "rayon"]
34-
version = "0.5.1"
35-
default-features = false
25+
workspace = true
3626

3727
[dev-dependencies.cucumber]
38-
features = ["default", "macros"]
39-
version = "0.19.1"
40-
default-features = false
28+
workspace = true
4129

4230
[dev-dependencies.pprof]
43-
features = ["cpp", "criterion", "default", "flamegraph", "inferno"]
44-
version = "0.13.0"
45-
default-features = false
31+
workspace = true
4632

4733
[dev-dependencies.syn]
48-
features = ["clone-impls", "default", "derive", "extra-traits", "fold", "full", "parsing", "printing", "proc-macro", "visit", "visit-mut"]
49-
version = "2.0.106"
50-
default-features = false
34+
workspace = true
5135

5236
[dev-dependencies.proc-macro2]
53-
features = ["default", "proc-macro"]
54-
version = "1.0.101"
55-
default-features = false
37+
workspace = true
5638

5739
[dev-dependencies.futures]
58-
features = ["alloc", "async-await", "default", "executor", "futures-executor", "std", "thread-pool"]
59-
version = "0.3.31"
60-
default-features = false
40+
workspace = true
6141

6242
[dev-dependencies.steps]
63-
path = "../rust/tests/behaviour"
64-
features = []
65-
default-features = false
43+
workspace = true
6644

6745
[dependencies]
6846

6947
[dependencies.pest]
70-
features = ["default", "memchr", "std"]
71-
version = "2.8.1"
72-
default-features = false
48+
workspace = true
7349

7450
[dependencies.regex]
75-
features = ["default", "perf", "perf-backtrack", "perf-cache", "perf-dfa", "perf-inline", "perf-literal", "perf-onepass", "std", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"]
76-
version = "1.11.1"
77-
default-features = false
51+
workspace = true
7852

7953
[dependencies.pest_derive]
80-
features = ["default", "std"]
81-
version = "2.8.1"
82-
default-features = false
54+
workspace = true
8355

8456
[dependencies.chrono]
85-
features = ["alloc", "android-tzdata", "clock", "default", "iana-time-zone", "js-sys", "now", "oldtime", "serde", "std", "wasm-bindgen", "wasmbind", "winapi", "windows-link"]
86-
version = "0.4.41"
87-
default-features = false
57+
workspace = true
8858

8959
[dependencies.itertools]
90-
features = ["default", "use_alloc", "use_std"]
91-
version = "0.10.5"
92-
default-features = false
60+
workspace = true
9361

9462
[[bench]]
9563
name = "bench_parser"

rust/tests/behaviour/Cargo.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,18 @@ features = {}
66

77
[package]
88
name = "steps"
9-
edition = "2021"
9+
edition = "2024"
1010
version = "0.0.0"
1111

1212
[lib]
1313
path = "steps.rs"
14+
crate-type = ["lib"]
1415

1516
[dependencies]
1617

1718
[dependencies.cucumber]
18-
features = ["default", "macros"]
19-
version = "0.19.1"
20-
default-features = false
19+
workspace = true
2120

2221
[dependencies.typeql]
23-
path = "../../../rust"
24-
features = []
25-
default-features = false
22+
workspace = true
2623

0 commit comments

Comments
 (0)