-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
137 lines (128 loc) · 7.29 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[package]
name = "cairo-language-server"
version = "2.9.2"
edition = "2021"
authors = ["Software Mansion <[email protected]>", "StarkWare <[email protected]>"]
description = "The Cairo Language Server"
license = "Apache-2.0"
repository = "https://github.com/software-mansion/cairols"
[workspace]
members = ["xtask"]
[features]
testing = []
# Managing dependencies on crates from starkware-libs/cairo repository:
#
# The Cairo compiler is made of a bunch of crates that inter-depend on each other and have
# synchronised versioning.
# It is very important to use a single revision of these crates in the entire Cairo toolchain,
# which consists of Cairo compiler, Scarb, CairoLS and other tools.
# The toolchain is eventually built by Scarb, which depends on everything other as regular crates.
# To ensure that all crates in the toolchain use the same revision of Cairo crates, we use a patch
# mechanism that Cargo provides.
# Because Cargo requires patches to change the crate source, we have an unspoken contract that
# all tools *always* depend on some crates.io versions of Cairo crates and Scarb uses
# [patch.crates.io] table to set final git revision for everything.
#
# To keep our Cargo.toml following this contract, always use `cargo xtask upgrade`
# for manipulating these dependencies.
[dependencies]
anyhow = "1"
cairo-lang-compiler = "*"
cairo-lang-defs = "*"
cairo-lang-diagnostics = "*"
cairo-lang-doc = "*"
cairo-lang-executable = "*"
cairo-lang-filesystem = "*"
cairo-lang-formatter = "*"
cairo-lang-lowering = "*"
cairo-lang-macro = "0.1.1"
cairo-lang-parser = "*"
cairo-lang-project = "*"
cairo-lang-semantic = "*"
cairo-lang-starknet = "*"
cairo-lang-syntax = "*"
cairo-lang-test-plugin = "*"
cairo-lang-utils = "*"
convert_case = "0.6.0"
crossbeam = "0.8.4"
governor = { version = "0.8.0", default-features = false, features = ["std", "quanta"] }
indent = "0.1.1"
indoc = "2"
itertools = "0.14.0"
jod-thread = "0.1.2"
lsp-server = "0.7.8"
lsp-types = "=0.95.0"
memchr = "2.7.4"
salsa = { package = "rust-analyzer-salsa", version = "0.17.0-pre.6" }
scarb-metadata = "1.13"
scarb-proc-macro-server-types = "0.1"
scarb-stable-hash = "1"
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = "1.0.135"
smol_str = { version = "0.2.0", features = ["serde"] }
tempfile = "3"
toml = "0.8"
tracing = "0.1"
tracing-chrome = "0.7.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
which = "7.0.1"
[target.'cfg(target_vendor = "apple")'.dependencies]
libc = "0.2.169"
[dev-dependencies]
assert_fs = "1.1"
cairo-lang-test-utils = { version = "*", features = ["testing"] }
cairo-language-server = { path = ".", features = ["testing"] }
insta = { version = "1.42.0", features = ["toml"] }
pathdiff = "0.2"
pretty_assertions = "1.4.0"
similar = "2.6.0"
test-log = "0.2.16"
# Here we specify real dependency specifications for Cairo crates *if* currently we want to use
# a particular unreleased commit (which is frequent mid-development).
# We list all Cairo crates that go into CairoLS's compilation unit even if LS itself does not depend
# on some of them directly.
# This ensures no duplicate instances of Cairo crates are pulled in by mistake.
[patch.crates-io]
cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-eq-solver = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-executable = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-plugins = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-proc-macros = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-runnable-utils = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-sierra-ap-change = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-sierra-gas = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-syntax-codegen = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-test-utils = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "dff35c09bfaa1ae0969c48ce4e103bad46d5fe50" }
# The profile used for CI in pull requests.
# External dependencies are built with optimisation enabled,
# while crates in this workspace are built with `dev` profile and full debug info.
# This is a trade-off between build time and e2e test time.
[profile.ci]
inherits = "test"
[profile.ci.package."*"] # external dependencies
opt-level = 1
[profile.ci.package."rust-analyzer-salsa"]
opt-level = 3
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3