From cb1a5eb516eceb2846261c8faf817347ec68ae99 Mon Sep 17 00:00:00 2001 From: obchain Date: Mon, 20 Apr 2026 12:38:28 +0530 Subject: [PATCH 1/3] chore: scaffold Cargo workspace with three crates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .gitignore | 22 ++++++++++++++++++ Cargo.lock | 15 ++++++++++++ Cargo.toml | 39 ++++++++++++++++++++++++++++++++ crates/charon-cli/Cargo.toml | 10 ++++++++ crates/charon-cli/src/main.rs | 3 +++ crates/charon-core/Cargo.toml | 6 +++++ crates/charon-core/src/lib.rs | 1 + crates/charon-scanner/Cargo.toml | 6 +++++ crates/charon-scanner/src/lib.rs | 1 + 9 files changed, 103 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 crates/charon-cli/Cargo.toml create mode 100644 crates/charon-cli/src/main.rs create mode 100644 crates/charon-core/Cargo.toml create mode 100644 crates/charon-core/src/lib.rs create mode 100644 crates/charon-scanner/Cargo.toml create mode 100644 crates/charon-scanner/src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1381a72 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# Rust build artifacts +/target/ +**/*.rs.bk + +# Environment / secrets +.env +.env.local + +# macOS +.DS_Store + +# Editor +.idea/ +.vscode/ + +# Logs +*.log + +# Local-only dev notes and editor configs +.claude/ +docs/context.md +NOTES.md diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..0a3328a --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,15 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "charon-cli" +version = "0.1.0" + +[[package]] +name = "charon-core" +version = "0.1.0" + +[[package]] +name = "charon-scanner" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..32c08da --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,39 @@ +[workspace] +resolver = "2" +members = [ + "crates/charon-core", + "crates/charon-scanner", + "crates/charon-cli", +] + +[workspace.package] +version = "0.1.0" +edition = "2024" +authors = ["Charon Contributors"] +license = "MIT" +description = "Multi-chain flash-loan liquidation bot" + +[workspace.dependencies] +# Async runtime +tokio = { version = "1", features = ["full"] } + +# Ethereum / EVM interaction +alloy = { version = "0.8", features = ["full"] } + +# Serialization + config +serde = { version = "1", features = ["derive"] } +toml = "0.8" + +# Logging +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } + +# Error handling +anyhow = "1" + +# CLI +clap = { version = "4", features = ["derive"] } + +# Internal crates +charon-core = { path = "crates/charon-core" } +charon-scanner = { path = "crates/charon-scanner" } diff --git a/crates/charon-cli/Cargo.toml b/crates/charon-cli/Cargo.toml new file mode 100644 index 0000000..97525dd --- /dev/null +++ b/crates/charon-cli/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "charon-cli" +version.workspace = true +edition.workspace = true +license.workspace = true +description = "Charon command-line entrypoint" + +[[bin]] +name = "charon" +path = "src/main.rs" diff --git a/crates/charon-cli/src/main.rs b/crates/charon-cli/src/main.rs new file mode 100644 index 0000000..8e709dd --- /dev/null +++ b/crates/charon-cli/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("charon — not wired up yet"); +} diff --git a/crates/charon-core/Cargo.toml b/crates/charon-core/Cargo.toml new file mode 100644 index 0000000..11edcd0 --- /dev/null +++ b/crates/charon-core/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "charon-core" +version.workspace = true +edition.workspace = true +license.workspace = true +description = "Shared types, traits, and config for Charon" diff --git a/crates/charon-core/src/lib.rs b/crates/charon-core/src/lib.rs new file mode 100644 index 0000000..b0ad0a6 --- /dev/null +++ b/crates/charon-core/src/lib.rs @@ -0,0 +1 @@ +//! Charon core — shared types, traits, and config. diff --git a/crates/charon-scanner/Cargo.toml b/crates/charon-scanner/Cargo.toml new file mode 100644 index 0000000..d0f7ef9 --- /dev/null +++ b/crates/charon-scanner/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "charon-scanner" +version.workspace = true +edition.workspace = true +license.workspace = true +description = "Chain listener and health-factor scanner for Charon" diff --git a/crates/charon-scanner/src/lib.rs b/crates/charon-scanner/src/lib.rs new file mode 100644 index 0000000..6208fab --- /dev/null +++ b/crates/charon-scanner/src/lib.rs @@ -0,0 +1 @@ +//! Charon scanner — chain listener and health-factor scanner. From 760c1689eefa866738521332cd35ab38ef718c91 Mon Sep 17 00:00:00 2001 From: obchain Date: Wed, 22 Apr 2026 20:07:54 +0530 Subject: [PATCH 2/3] chore(workspace): pin toolchain, resolver v3, workspace lints, wire CLI 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 --- Cargo.lock | 501 +++++++++++++++++++++++++++++++ Cargo.toml | 11 +- crates/charon-cli/Cargo.toml | 11 + crates/charon-core/Cargo.toml | 3 + crates/charon-scanner/Cargo.toml | 3 + rust-toolchain.toml | 3 + 6 files changed, 531 insertions(+), 1 deletion(-) create mode 100644 rust-toolchain.toml diff --git a/Cargo.lock b/Cargo.lock index 0a3328a..e3af815 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,9 +2,100 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "bitflags" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + [[package]] name = "charon-cli" version = "0.1.0" +dependencies = [ + "anyhow", + "charon-core", + "clap", + "tokio", + "tracing", + "tracing-subscriber", +] [[package]] name = "charon-core" @@ -13,3 +104,413 @@ version = "0.1.0" [[package]] name = "charon-scanner" version = "0.1.0" + +[[package]] +name = "clap" +version = "4.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.185" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi", + "windows-sys", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "tokio" +version = "1.52.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys", +] + +[[package]] +name = "tokio-macros" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] diff --git a/Cargo.toml b/Cargo.toml index 32c08da..008044e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,20 @@ [workspace] -resolver = "2" +resolver = "3" members = [ "crates/charon-core", "crates/charon-scanner", "crates/charon-cli", ] +[workspace.lints.rust] +unsafe_code = "forbid" + +[workspace.lints.clippy] +all = "warn" +arithmetic_side_effects = "deny" +cast_possible_truncation = "deny" +unwrap_used = "deny" + [workspace.package] version = "0.1.0" edition = "2024" diff --git a/crates/charon-cli/Cargo.toml b/crates/charon-cli/Cargo.toml index 97525dd..12e2678 100644 --- a/crates/charon-cli/Cargo.toml +++ b/crates/charon-cli/Cargo.toml @@ -8,3 +8,14 @@ description = "Charon command-line entrypoint" [[bin]] name = "charon" path = "src/main.rs" + +[dependencies] +tokio = { workspace = true } +clap = { workspace = true } +anyhow = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } +charon-core = { workspace = true } + +[lints] +workspace = true diff --git a/crates/charon-core/Cargo.toml b/crates/charon-core/Cargo.toml index 11edcd0..2675f9a 100644 --- a/crates/charon-core/Cargo.toml +++ b/crates/charon-core/Cargo.toml @@ -4,3 +4,6 @@ version.workspace = true edition.workspace = true license.workspace = true description = "Shared types, traits, and config for Charon" + +[lints] +workspace = true diff --git a/crates/charon-scanner/Cargo.toml b/crates/charon-scanner/Cargo.toml index d0f7ef9..ca18859 100644 --- a/crates/charon-scanner/Cargo.toml +++ b/crates/charon-scanner/Cargo.toml @@ -4,3 +4,6 @@ version.workspace = true edition.workspace = true license.workspace = true description = "Chain listener and health-factor scanner for Charon" + +[lints] +workspace = true diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..b475f2f --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.85.0" +components = ["rustfmt", "clippy"] From c63440e45c8f69c42e7eb5c0d74964d15a3a6726 Mon Sep 17 00:00:00 2001 From: obchain Date: Fri, 24 Apr 2026 13:19:59 +0530 Subject: [PATCH 3/3] chore(feat/01): adopt main .gitignore to clear PR #26 conflict --- .gitignore | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index 1381a72..56ffaa1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,17 @@ /target/ **/*.rs.bk +# Foundry build artifacts +contracts/out/ +contracts/cache/ +contracts/broadcast/ +out/ +cache/ +broadcast/ + +# JS/TS tooling +node_modules/ + # Environment / secrets .env .env.local @@ -16,6 +27,10 @@ # Logs *.log +# Markdown policy: only README.md is ever pushed; everything else is local-only. +*.md +!README.md + # Local-only dev notes and editor configs .claude/ docs/context.md