Skip to content

Commit 43b8356

Browse files
tdelabromkaput
authored andcommitted
only use env_logger in binaries (#3276)
(cherry picked from commit 7cbc6cf)
1 parent 55df804 commit 43b8356

File tree

32 files changed

+272
-69
lines changed

32 files changed

+272
-69
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ members = [
2727
"crates/cairo-lang-syntax-codegen",
2828
"crates/cairo-lang-test-runner",
2929
"crates/cairo-lang-utils",
30+
"crates/bin/cairo-language-server",
31+
"crates/bin/cairo-compile",
32+
"crates/bin/cairo-format",
33+
"crates/bin/cairo-test",
34+
"crates/bin/cairo-run",
35+
"crates/bin/sierra-compile",
36+
"crates/bin/starknet-compile",
37+
"crates/bin/starknet-sierra-compile",
38+
"crates/bin/generate-syntax",
3039
"tests",
3140
]
3241

@@ -84,7 +93,11 @@ test-case = "2.2.2"
8493
test-case-macros = "2.2.2"
8594
test-log = "0.2.11"
8695
thiserror = "1.0.32"
87-
time = { version = "0.3.20", features = ["formatting", "macros", "local-offset"] }
96+
time = { version = "0.3.20", features = [
97+
"formatting",
98+
"macros",
99+
"local-offset",
100+
] }
88101
tokio = { version = "1.18.2", features = ["full", "sync"] }
89102
toml = "0.4.2"
90103
tower-lsp = "0.17.0"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "cairo-compile"
3+
version.workspace = true
4+
edition.workspace = true
5+
repository.workspace = true
6+
license-file.workspace = true
7+
8+
[dependencies]
9+
anyhow.workspace = true
10+
clap.workspace = true
11+
log.workspace = true
12+
13+
cairo-lang-compiler = { path = "../../cairo-lang-compiler" }
14+
cairo-lang-utils = { path = "../../cairo-lang-utils", features = [
15+
"env_logger",
16+
] }
File renamed without changes.

crates/bin/cairo-format/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "cairo-format"
3+
version.workspace = true
4+
edition.workspace = true
5+
repository.workspace = true
6+
license-file.workspace = true
7+
8+
[dependencies]
9+
anyhow.workspace = true
10+
clap.workspace = true
11+
log.workspace = true
12+
colored.workspace = true
13+
ignore.workspace = true
14+
15+
cairo-lang-formatter = { path = "../../cairo-lang-formatter" }
16+
cairo-lang-utils = { path = "../../cairo-lang-utils", features = [
17+
"env_logger",
18+
] }
File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "cairo-language-server"
3+
version.workspace = true
4+
edition.workspace = true
5+
repository.workspace = true
6+
license-file.workspace = true
7+
8+
[dependencies]
9+
tokio.workspace = true
10+
log.workspace = true
11+
12+
cairo-lang-language-server = { path = "../../cairo-lang-language-server" }
13+
cairo-lang-utils = { path = "../../cairo-lang-utils", features = [
14+
"env_logger",
15+
] }
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use cairo_lang_language_server::serve_language_service;
2+
use cairo_lang_utils::logging::init_logging;
23

34
#[tokio::main]
45
async fn main() {
6+
init_logging(log::LevelFilter::Warn);
57
serve_language_service().await;
68
}

crates/bin/cairo-run/Cargo.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[package]
2+
name = "cairo-run"
3+
version.workspace = true
4+
edition.workspace = true
5+
repository.workspace = true
6+
license-file.workspace = true
7+
8+
[dependencies]
9+
anyhow.workspace = true
10+
clap.workspace = true
11+
12+
cairo-lang-runner = { path = "../../cairo-lang-runner" }
13+
cairo-lang-starknet = { path = "../../cairo-lang-starknet" }
14+
cairo-lang-diagnostics = { path = "../../cairo-lang-diagnostics" }
15+
cairo-lang-sierra = { path = "../../cairo-lang-sierra" }
16+
cairo-lang-sierra-generator = { path = "../../cairo-lang-sierra-generator" }
17+
cairo-lang-compiler = { path = "../../cairo-lang-compiler" }
18+
cairo-lang-utils = { path = "../../cairo-lang-utils", features = [
19+
"env_logger",
20+
] }
File renamed without changes.

0 commit comments

Comments
 (0)