Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 2cef862

Browse files
committed
build: update configs
1 parent 27b7b75 commit 2cef862

File tree

15 files changed

+106
-93
lines changed

15 files changed

+106
-93
lines changed

.githooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -o errexit
55
set -o pipefail
66
set -o nounset
77

8-
cat ${1} | make conventional-commits-linter
8+
cat "${1}" | make conventional-commits-linter

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ for FILE in $(git diff --name-status --staged \
1414
| grep --invert-match "D" \
1515
| grep --invert-match "R" \
1616
| cut -d " " -f 2); do
17-
git add ${FILE}
17+
git add "${FILE}"
1818
done

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ incremental = false
4040
# inline-threshold
4141
# link-arg
4242
# link-args
43-
# link-dead-code
43+
link-dead-code = false
4444
# link-self-contained
4545
# linker
4646
# linker-flavor
@@ -73,7 +73,7 @@ rpath = false
7373
[profile.dev]
7474
# code-model
7575
# code-model
76-
codegen-units = 256
76+
codegen-units = 1
7777
# control-flow-guard
7878
debug = true
7979
debug-assertions = true
@@ -87,7 +87,7 @@ incremental = true
8787
# inline-threshold
8888
# link-arg
8989
# link-args
90-
# link-dead-code
90+
link-dead-code = true
9191
# link-self-contained
9292
# linker
9393
# linker-flavor
@@ -102,7 +102,7 @@ lto = false
102102
# no-vectorize-slp
103103
opt-level = 0
104104
overflow-checks = true
105-
panic = "unwind"
105+
panic = "abort"
106106
# passes
107107
# prefer-dynamic
108108
# profile-generate
@@ -120,7 +120,7 @@ rpath = false
120120
[profile.test]
121121
# code-model
122122
# code-model
123-
codegen-units = 256
123+
codegen-units = 1
124124
# control-flow-guard
125125
debug = true
126126
debug-assertions = true
@@ -134,7 +134,7 @@ incremental = true
134134
# inline-threshold
135135
# link-arg
136136
# link-args
137-
# link-dead-code
137+
link-dead-code = true
138138
# link-self-contained
139139
# linker
140140
# linker-flavor
@@ -149,7 +149,7 @@ lto = false
149149
# no-vectorize-slp
150150
opt-level = 0
151151
overflow-checks = true
152-
panic = "unwind"
152+
panic = "abort"
153153
# passes
154154
# prefer-dynamic
155155
# profile-generate
@@ -180,7 +180,7 @@ incremental = false
180180
# inline-threshold
181181
# link-arg
182182
# link-args
183-
# link-dead-code
183+
link-dead-code = false
184184
# link-self-contained
185185
# linker
186186
# linker-flavor

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ conventional-commits-linter: add-conventional-commits-linter ## Conventional com
230230
conventional_commits_linter --allow-angular-type-only --from-stdin
231231

232232
.PHONY: coverage
233-
coverage: NIGHTLY = +nightly
233+
# coverage: NIGHTLY = +nightly
234234
coverage: add-fmt add-grcov add-llvm-tools-preview add-nightly-toolchain clean-coverage fetch ## Coverage
235235
mkdir -p $(COVERAGE_DIR)
236236
mkdir -p coverage
237-
RUSTFLAGS="-Zinstrument-coverage" $(CARGO_BUILD)
238-
RUSTFLAGS="-Zinstrument-coverage" LLVM_PROFILE_FILE="$(PACKAGE)-%p-%m.profraw" $(CARGO_TEST)
237+
RUSTC_BOOTSTRAP=1 RUSTFLAGS="-Zinstrument-coverage -Zpanic_abort_tests" $(CARGO_BUILD)
238+
RUSTC_BOOTSTRAP=1 RUSTFLAGS="-Zinstrument-coverage -Zpanic_abort_tests" LLVM_PROFILE_FILE="$(PACKAGE)-%p-%m.profraw" $(CARGO_TEST)
239239
ifeq ("$(GRCOV_COVERAGE_TYPE)", "cobertura")
240240
grcov . \
241241
--binary-path $(BIN_DIR) \

fip_api/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ envy = { default-features = false, version = "0.4.2" }
3333
# fip_api_attributes = { default-features = false, path = "../fip_api_attributes", version = "0.1.0" }
3434
fip_common = { default-features = false, path = "../fip_common", version = "0.1.0" }
3535
futures = { default-features = false, version = "0.3.19" }
36-
http = { default-features = false, version = "0.2.5" }
36+
http = { default-features = false, version = "0.2.6" }
3737
hyper = { default-features = false, version = "0.14.16" }
3838
jsonwebtoken = { default-features = false, version = "7.2.0" }
3939
opentelemetry = { default-features = false, features = ["rt-tokio"], version = "0.16.0" }
@@ -42,7 +42,7 @@ opentelemetry-zipkin = { default-features = false, features = ["reqwest-client"]
4242
prost = { default-features = false, version = "0.9.0" }
4343
# rdkafka = { default-features = false, features = ["cmake-build"], version = "0.26.0" }
4444
serde = { default-features = false, features = ["derive"], version = "1.0.132" }
45-
sqlx = { default-features = false, features = ["macros", "runtime-tokio-rustls", "sqlite"], version = "0.5.9" }
45+
sqlx = { default-features = false, features = ["macros", "runtime-tokio-rustls", "sqlite"], version = "0.5.10" }
4646
thiserror = { default-features = false, version = "1.0.30" }
4747
tokio = { default-features = false, features = ["macros", "rt-multi-thread", "time"], version = "1.15.0" }
4848
tonic = { default-features = false, features = ["transport"], version = "0.6.2" }
@@ -53,7 +53,7 @@ tracing-appender = { default-features = false, version = "0.2.0" }
5353
tracing-bunyan-formatter = { default-features = false, version = "0.3.1" }
5454
tracing-error = { default-features = false, version = "0.2.0" }
5555
tracing-opentelemetry = { default-features = false, features = ["tracing-log"], version = "0.16.0" }
56-
tracing-subscriber = { default-features = false, features = ["env-filter", "fmt"], version = "0.3.4" }
56+
tracing-subscriber = { default-features = false, features = ["env-filter", "fmt"], version = "0.3.5" }
5757
uuid = { default-features = false, features = ["v4"], version = "0.8.2" }
5858

5959
# [dev-dependencies]
@@ -64,6 +64,8 @@ uuid = { default-features = false, features = ["v4"], version = "0.8.2" }
6464
# [lib]
6565

6666
[package]
67+
name = "fip_api"
68+
version = "0.1.0"
6769
authors = ["Hossein Mayboudi <[email protected]>"]
6870
# autobins
6971
# autobenches
@@ -72,7 +74,6 @@ authors = ["Hossein Mayboudi <[email protected]>"]
7274
# build
7375
categories = ["network-programming"]
7476
# default-run
75-
description = "fip_api"
7677
documentation = "https://github.com/smhmayboudi/fip/fip_api"
7778
edition = "2021"
7879
# exclude
@@ -90,14 +91,13 @@ license = "MIT"
9091
# license-file
9192
# links
9293
# metadata
93-
name = "fip_api"
9494
publish = false
9595
readme = "fip_api/README.md"
9696
# resolver
9797
rust-version = "1.57.0"
9898
repository = "https://github.com/smhmayboudi/fip"
99-
version = "0.1.0"
10099
# workspace
100+
description = "fip_api"
101101

102102
# [patch]
103103

0 commit comments

Comments
 (0)