@@ -5,16 +5,21 @@ OTEL_TRACES_SAMPLER = "always_on"
55# RUST_LOG = "warn,otel::setup=debug"
66
77[tools ]
8- rust = { version = " 1.87 .0" , profile = " minimal" , components = " rustfmt,clippy" } # the rust tool stack (with cargo, fmt, clippy) to build source
9- grpcurl = ' 1.9'
10- protoc = ' 34.0'
8+ rust = { version = " 1.88 .0" , profile = " minimal" , components = " rustfmt,clippy" } # the rust tool stack (with cargo, fmt, clippy) to build source
9+ grpcurl = " 1.9"
10+ protoc = " 34.0"
1111# grpc-health-probe = "*"
1212# sccache = "0.5"
1313# cargo-binstall allow to download (insteal of build) "cargo:*"
1414# - do not use cargo-binstall" (it's a special name used by mise)
1515# - "aqua:cargo-bins/cargo-binstall" allow to download the binary
1616"aqua:cargo-bins/cargo-binstall" = " 1"
1717
18+ [tasks .autofix ]
19+ description = " Automatically fix some linting issues & format code"
20+ depends_post = [" format" ]
21+ run = " cargo clippy --all-features --fix --allow-dirty"
22+
1823[tasks .format ]
1924alias = " fmt"
2025description = " Format the code and sort dependencies"
@@ -86,39 +91,38 @@ release-plz set-version tracing-opentelemetry-instrumentation-sdk@"$version"
8691[tasks ."install:cargo-deny" ]
8792hide = true
8893description = " Install cargo-deny"
89- run = ' cargo binstall -y cargo-deny || cargo install --locked cargo-deny'
94+ run = " cargo binstall -y cargo-deny || cargo install --locked cargo-deny"
9095
9196[tasks ."install:cargo-nextest" ]
9297hide = true
9398description = " Install cargo-nextest"
94- run = ' cargo binstall -y cargo-nextest || cargo install --locked cargo-nextest'
99+ run = " cargo binstall -y cargo-nextest || cargo install --locked cargo-nextest"
95100
96101[tasks ."install:cargo-insta" ]
97102hide = true
98103description = " Install cargo-insta"
99- run = ' cargo binstall -y cargo-insta || cargo install --locked cargo-insta'
104+ run = " cargo binstall -y cargo-insta || cargo install --locked cargo-insta"
100105
101106[tasks ."install:cargo-release" ]
102107hide = true
103108description = " Install cargo-release"
104- run = ' cargo binstall -y cargo-release || cargo install --locked cargo-release'
109+ run = " cargo binstall -y cargo-release || cargo install --locked cargo-release"
105110
106111[tasks ."install:git-cliff" ]
107112hide = true
108113description = " Install git-cliff"
109- run = ' cargo binstall -y git-cliff || cargo install --locked git-cliff'
114+ run = " cargo binstall -y git-cliff || cargo install --locked git-cliff"
110115
111116[tasks ."install:cargo-hack" ]
112117hide = true
113118description = " Install cargo-hack"
114- run = ' cargo binstall -y cargo-hack || cargo install --locked cargo-hack'
115-
119+ run = " cargo binstall -y cargo-hack || cargo install --locked cargo-hack"
116120
117121[tasks .run-otel-desktop-viewer ]
118122description = " Run otel-desktop-viewer as receiver and viewer of otel trace"
119123run = [
120- ' # Viewer: open http://localhost:8000' ,
121- ' docker run -p 8000:8000 -p 4317:4317 -p 4318:4318 ghcr.io/ctrlspice/otel-desktop-viewer:latest-amd64' ,
124+ " # Viewer: open http://localhost:8000" ,
125+ " docker run -p 8000:8000 -p 4317:4317 -p 4318:4318 ghcr.io/ctrlspice/otel-desktop-viewer:latest-amd64" ,
122126]
123127
124128[tasks .run-jaeger ]
@@ -138,7 +142,7 @@ run = [
138142
139143[tasks .run-example-grpc-server ]
140144description = " Run gRPC server example"
141- run = ' cd examples/grpc && OTEL_SERVICE_NAME=grpc-server cargo run --bin server'
145+ run = " cd examples/grpc && OTEL_SERVICE_NAME=grpc-server cargo run --bin server"
142146
143147[tasks .run-example-grpc-client ]
144148description = " Run gRPC client example"
@@ -149,7 +153,7 @@ cd examples/grpc && OTEL_SERVICE_NAME=grpc-client cargo run --bin client
149153
150154[tasks .run-example-axum-otlp-server ]
151155description = " Run axum-otlp server example"
152- run = ' cd examples/axum-otlp && OTEL_SERVICE_NAME=axum-otlp-4317 cargo run'
156+ run = " cd examples/axum-otlp && OTEL_SERVICE_NAME=axum-otlp-4317 cargo run"
153157
154158[tasks .run-example-axum-otlp-server-http ]
155159description = " Run axum-otlp server example over HTTP"
@@ -168,7 +172,7 @@ curl -i http://127.0.0.1:3003/
168172
169173[tasks .run-example-load ]
170174description = " Run load test example"
171- run = ' cd examples/load && cargo run --release 2>/dev/null'
175+ run = " cd examples/load && cargo run --release 2>/dev/null"
172176
173177[tasks .ci ]
174178depends = [" check" , " lint" , " test" , " deny" ]
0 commit comments