2026-03-23 18:31:11 +01:00
|
|
|
[workspace]
|
|
|
|
|
resolver = "2"
|
|
|
|
|
members = ["crates/*"]
|
|
|
|
|
|
|
|
|
|
[workspace.package]
|
2026-06-04 17:36:02 +02:00
|
|
|
version = "0.6.5"
|
2026-03-23 18:31:11 +01:00
|
|
|
edition = "2024"
|
2026-06-04 20:22:00 +02:00
|
|
|
rust-version = "1.85"
|
2026-04-01 20:37:56 +02:00
|
|
|
license = "AGPL-3.0"
|
2026-03-23 18:31:11 +01:00
|
|
|
repository = "https://github.com/0xMassi/webclaw"
|
|
|
|
|
|
2026-06-04 20:22:00 +02:00
|
|
|
# Hardened release profile: thin LTO + a single codegen unit enable
|
|
|
|
|
# cross-crate inlining on the hot extraction path and shrink the binaries,
|
|
|
|
|
# and stripping symbols trims the shipped artifact. We deliberately do NOT
|
|
|
|
|
# set `panic = "abort"`: webclaw-pdf relies on std::panic::catch_unwind to
|
|
|
|
|
# recover from panics inside the pdf-extract parser, and abort would turn
|
|
|
|
|
# those recoverable panics into hard process kills.
|
|
|
|
|
[profile.release]
|
|
|
|
|
lto = "thin"
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
strip = true
|
|
|
|
|
|
|
|
|
|
# Conservative, high-value hardening lints applied workspace-wide. Crates
|
|
|
|
|
# opt in via `[lints] workspace = true`. Kept deliberately narrow so
|
|
|
|
|
# `clippy -D warnings` stays green — the goal is hardening, not a cleanup
|
|
|
|
|
# sweep that would break the build.
|
|
|
|
|
[workspace.lints.rust]
|
|
|
|
|
unsafe_op_in_unsafe_fn = "warn"
|
|
|
|
|
|
|
|
|
|
[workspace.lints.clippy]
|
|
|
|
|
mem_forget = "warn"
|
|
|
|
|
|
2026-03-23 18:31:11 +01:00
|
|
|
[workspace.dependencies]
|
|
|
|
|
webclaw-core = { path = "crates/webclaw-core" }
|
|
|
|
|
webclaw-fetch = { path = "crates/webclaw-fetch" }
|
|
|
|
|
webclaw-llm = { path = "crates/webclaw-llm" }
|
|
|
|
|
webclaw-pdf = { path = "crates/webclaw-pdf" }
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
|
|
|
dotenvy = "0.15"
|