chore: scaffold Cargo workspace with three crates#26
Merged
Conversation
Set up the initial Cargo workspace with resolver=2 and edition=2024. Three empty member crates scaffolded for future work: - charon-core: shared types, traits, and config - charon-scanner: chain listener and health-factor scanner - charon-cli: command-line entrypoint Shared dependency versions pinned centrally in [workspace.dependencies] (tokio, alloy, serde, toml, tracing, anyhow, clap) so each crate can reference them via `.workspace = true` as they begin consuming them. .gitignore excludes target/, .env, .DS_Store, and common IDE dirs. Cargo.lock is committed — standard practice for binary workspaces.
This was referenced Apr 22, 2026
…LI deps - rust-toolchain.toml pins channel 1.85.0 for reproducible builds across dev, CI, and the Docker deploy stack. - Cargo.toml [workspace] sets resolver = "3" to match the edition 2024 default (avoids feature-unification drift in alloy/tokio). - [workspace.lints] forbids unsafe_code and denies the arithmetic / cast-truncation / unwrap clippy lints workspace-wide; each crate now inherits via [lints] workspace = true. - crates/charon-cli/Cargo.toml wires the workspace-level tokio, clap, anyhow, tracing, tracing-subscriber, and charon-core dependencies so the next feature PR is a pure logic addition. Closes #60 #61 #62 #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2
Initial Cargo workspace with three member crates:
charon-core— shared types, traits, configcharon-scanner— chain listener and health-factor scannercharon-cli— command-line entry point (charonbinary)Workspace-level dependency versions pinned centrally in
[workspace.dependencies]so member crates reference them with.workspace = trueas they begin consuming them.cargo build --workspaceruns clean with no external deps yet compiled (added per-crate in subsequent PRs).