Skip to content

Commit 4fc696c

Browse files
authored
Improve cargo build (#43)
- Enable trace/debug logs in release build - Abort the whole process on a thread panic because there is no way to handle them.
1 parent 6f977ab commit 4fc696c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-agent"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[[bin]]
@@ -27,7 +27,7 @@ pyth-sdk-solana = "0.6.0"
2727
solana-client = "1.10.24"
2828
solana-sdk = "1.10.24"
2929
bincode = "1.3.3"
30-
slog = "2.7.0"
30+
slog = { version = "2.7.0", features = ["max_level_trace", "release_max_level_trace"] }
3131
slog-term = "2.9.0"
3232
rand = "0.8.5"
3333
slog-async = "2.7.0"
@@ -47,3 +47,9 @@ rand = "0.8.5"
4747
tokio-retry = "0.3.0"
4848
slog-extlog = "8.0.0"
4949
iobuffer = "0.2.0"
50+
51+
[profile.release]
52+
panic = 'abort'
53+
54+
[profile.dev]
55+
panic = 'abort'

0 commit comments

Comments
 (0)