Skip to content

Commit c6005db

Browse files
authored
Improve logging/tracing for actions (#325)
* feat(actions): split off logger_effects function * feat(actions): generalize context trait * feat(actions): use derive macro for action tracing * feat(actions): subfield access support * feat(actions): derive: arbitrary expr * feat(actions): derive all ActionEvent * feat(actions): cosmetic fixes
1 parent cffc27d commit c6005db

File tree

51 files changed

+1214
-1534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1214
-1534
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cargo-features = ["named-profiles"]
33
[workspace]
44
members = [
55
"core",
6+
"macros",
67
"ledger",
78
"snark",
89
"p2p",

core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ redux = { workspace = true }
1616
tokio = { version = "1.26", features = ["sync"] }
1717
time = { version = "0.3", features = ["formatting"] }
1818
multihash = { version = "0.18.1", features = ["blake2b"] }
19+
openmina-macros = { path = "../macros" }
1920

2021
mina-hasher = { workspace = true }
2122
mina-p2p-messages = { workspace = true }

core/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ pub fn preshared_key(chain_id: &str) -> [u8; 32] {
2626
psk_fixed.copy_from_slice(hash.as_ref());
2727
psk_fixed
2828
}
29+
30+
pub use log::ActionEvent;
31+
pub use openmina_macros::*;

0 commit comments

Comments
 (0)