Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c31b226

Browse files
authoredNov 15, 2024··
Commit generated Cargo.toml (#376)
## Usage and product changes We commit the generated cargo manifests so that `typeql` can be used as a cargo git dependency. ## Implementation
1 parent 89e3b05 commit c31b226

File tree

7 files changed

+80
-3
lines changed

7 files changed

+80
-3
lines changed
 

‎.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ target/
3030
*.class
3131

3232
# Cargo files #
33-
Cargo.toml
3433
Cargo.lock
3534

3635
# Mobile Tools for Java (J2ME) files #

‎BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ checkstyle_test(
3838
".bazel-remote-cache.rc",
3939
".bazel-cache-credential.json",
4040
"banner.png",
41+
"Cargo.toml",
4142
],
4243
license_type = "mpl-header",
4344
)

‎Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
[workspace]
3+
resolver = "2"
4+
members = ["rust"]
5+

‎dependencies/typedb/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def typedb_dependencies():
88
git_repository(
99
name = "typedb_dependencies",
1010
remote = "https://github.com/typedb/typedb-dependencies",
11-
commit = "554bf8c574b6740dd9c4aae78191402fde413a90", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_dependencies
11+
commit = "70e8b662d2b3f10bba64befcc2c5183949eb9efa", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_dependencies
1212
)
1313

1414
def typedb_behaviour():

‎rust/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,6 @@ checkstyle_test(
9595
"**/Cargo.toml",
9696
"**/Cargo.lock",
9797
]),
98+
exclude = ["Cargo.toml"],
9899
license_type = "mpl-header",
99100
)

‎rust/Cargo.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
2+
# Generated by TypeDB Cargo sync tool.
3+
# Do not modify this file.
4+
5+
features = {}
6+
7+
[package]
8+
name = "typeql"
9+
edition = "2021"
10+
version = "0.0.0"
11+
12+
[lib]
13+
path = "typeql.rs"
14+
15+
[dev-dependencies]
16+
17+
[dev-dependencies.cucumber]
18+
features = ["default", "macros"]
19+
version = "0.19.1"
20+
default-features = false
21+
22+
[dev-dependencies.syn]
23+
features = ["clone-impls", "default", "derive", "extra-traits", "full", "parsing", "printing", "proc-macro", "visit-mut"]
24+
version = "2.0.77"
25+
default-features = false
26+
27+
[dev-dependencies.proc-macro2]
28+
features = ["default", "proc-macro"]
29+
version = "1.0.86"
30+
default-features = false
31+
32+
[dev-dependencies.futures]
33+
features = ["alloc", "async-await", "default", "executor", "futures-executor", "std", "thread-pool"]
34+
version = "0.3.30"
35+
default-features = false
36+
37+
[dependencies]
38+
39+
[dependencies.pest]
40+
features = ["default", "memchr", "std"]
41+
version = "2.7.13"
42+
default-features = false
43+
44+
[dependencies.regex]
45+
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"]
46+
version = "1.10.6"
47+
default-features = false
48+
49+
[dependencies.pest_derive]
50+
features = ["default", "std"]
51+
version = "2.7.13"
52+
default-features = false
53+
54+
[dependencies.chrono]
55+
features = ["alloc", "android-tzdata", "clock", "default", "iana-time-zone", "js-sys", "now", "oldtime", "serde", "std", "wasm-bindgen", "wasmbind", "winapi", "windows-targets"]
56+
version = "0.4.38"
57+
default-features = false
58+
59+
[dependencies.itertools]
60+
features = ["default", "use_alloc", "use_std"]
61+
version = "0.10.5"
62+
default-features = false
63+
64+
[[test]]
65+
path = "tests/behaviour/test_behaviour.rs"
66+
name = "test_behaviour"
67+
68+
[[test]]
69+
path = "tests/behaviour/test_debug.rs"
70+
name = "test_debug"
71+

‎tool/ide/rust/sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
55

6-
bazel run @typedb_dependencies//tool/ide:rust_sync
6+
bazel run @typedb_dependencies//tool/ide:rust_sync -- @typeql_workspace_refs//:refs.json

0 commit comments

Comments
 (0)
Please sign in to comment.