WIP host tracking#136
Conversation
clabby
left a comment
There was a problem hiding this comment.
Looking good so far.
To get this in, we'll need to make some edits to CI that ensures that the host is not built or linted with the cannon/asterisc build pipelines, as it will depend on the standard library.
bin/host/Cargo.toml
Outdated
| # workspace | ||
| anyhow.workspace = true | ||
| tracing.workspace = true | ||
| alloy-primitives.workspace = true |
There was a problem hiding this comment.
Activate the serde feature so that B256 and other primitives from alloy implement serde::Serialize
There was a problem hiding this comment.
You can do this by just follow what the other crates do by creating a "serde" feature and a default feature that automatically enables serde.
Then have that serde feature have "alloy-primitives/serde" in it's list which enables the serde feature on alloy-primitives
There was a problem hiding this comment.
Yeah for sure - given that this is a bin crate, think we can just always enable serde. Folks shouldn't be consuming this code downstream.
bin/host/src/main.rs
Outdated
| parser::parse_b256, | ||
| types::{Network, RpcKind} | ||
| }; | ||
|
|
bin/host/src/main.rs
Outdated
| mod parser; | ||
| mod types; |
There was a problem hiding this comment.
These should go below use directives
Cargo.toml
Outdated
| tracing = { version = "0.1.40", default-features = false } | ||
| cfg-if = "1.0.0" | ||
| alloy-primitives = { version = "0.7.0", default-features = false } | ||
| alloy-primitives = { version = "0.7.0", default-features = false, features = ["serde"] } |
There was a problem hiding this comment.
This shouldn't be enabled by default in the workspace dep - should be enabled in kona-host's Cargo.toml
* WIP init commit for host tracking * add telemetry * address comments * address more comments and add docs
This reverts commit 971f8f9.
* WIP init commit for host tracking * add telemetry * address comments * address more comments and add docs
This reverts commit 7de3b81.
meant to address issue #132 Host Tracking