Skip to content

Commit b5dd78b

Browse files
committed
feat: move metadata to TraceMetadata; we'd probably json lines the events
1 parent 2ed2655 commit b5dd78b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trace_types"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ pub struct FullValueRecord {
2626
}
2727

2828
#[derive(Debug, Clone, Serialize, Deserialize)]
29-
pub struct TraceLowLevelRecord {
29+
pub struct TraceMetadata {
3030
pub workdir: PathBuf,
3131
pub program: String,
3232
pub args: Vec<String>,
33+
}
34+
35+
#[derive(Debug, Clone, Serialize, Deserialize)]
36+
pub struct TraceLowLevelRecord {
3337
pub events: Vec<TraceLowLevelEvent>,
3438
}
3539

0 commit comments

Comments
 (0)