Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 20 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@
resolver = "3"
members = [
"crates/charon-core",
"crates/charon-executor",
"crates/charon-flashloan",
"crates/charon-protocols",
"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"
Expand Down Expand Up @@ -66,6 +58,25 @@ dotenvy = "0.15"

# Internal crates
charon-core = { path = "crates/charon-core" }
charon-executor = { path = "crates/charon-executor" }
charon-flashloan = { path = "crates/charon-flashloan" }
charon-protocols = { path = "crates/charon-protocols" }
charon-scanner = { path = "crates/charon-scanner" }

# Workspace-wide lints. Applied to any crate that opts in with
# `[lints] workspace = true` in its own Cargo.toml.
#
# Safety invariants in CLAUDE.md (onlyOwner execute, sim gate, hot
# wallet = gas only, flash-loan atomicity) assume the bot's off-chain
# code does not silently panic on arithmetic edge cases or swallow
# errors. `unsafe_code` is forbidden outright — nothing the bot does
# needs it, and any new unsafe block should force a conscious
# exception in the owning crate.
[workspace.lints.rust]
unsafe_code = "forbid"

[workspace.lints.clippy]
all = "warn"
arithmetic_side_effects = "deny"
cast_possible_truncation = "deny"
unwrap_used = "deny"
20 changes: 20 additions & 0 deletions crates/charon-executor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "charon-executor"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "Transaction builder, simulator, and broadcaster for Charon"

[dependencies]
charon-core = { workspace = true }
alloy = { workspace = true }
anyhow = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }

[dev-dependencies]
dotenvy = { workspace = true }

[lints]
workspace = true
Loading