Skip to content

Commit

Permalink
Improve cargo build (#43)
Browse files Browse the repository at this point in the history
- Enable trace/debug logs in release build
- Abort the whole process on a thread panic because there is
  no way to handle them.
  • Loading branch information
ali-bahjati authored Feb 10, 2023
1 parent 6f977ab commit 4fc696c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-agent"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

[[bin]]
Expand All @@ -27,7 +27,7 @@ pyth-sdk-solana = "0.6.0"
solana-client = "1.10.24"
solana-sdk = "1.10.24"
bincode = "1.3.3"
slog = "2.7.0"
slog = { version = "2.7.0", features = ["max_level_trace", "release_max_level_trace"] }
slog-term = "2.9.0"
rand = "0.8.5"
slog-async = "2.7.0"
Expand All @@ -47,3 +47,9 @@ rand = "0.8.5"
tokio-retry = "0.3.0"
slog-extlog = "8.0.0"
iobuffer = "0.2.0"

[profile.release]
panic = 'abort'

[profile.dev]
panic = 'abort'

0 comments on commit 4fc696c

Please sign in to comment.