deep_research and swear_cleanup were sharing one Cargo.toml, so every build compiled clap/indicatif/scraper/chrono (only needed by deep_research) even when just building swear_cleanup for its own course work, and vice versa. Moves each into its own workspace member crate (deep_research/, swear_cleanup/) with an independent Cargo.toml declaring only the deps it actually uses; common deps/versions are pinned once via [workspace.dependencies] so the two don't drift. Verified `cargo build -p swear_cleanup` alone no longer pulls in clap/indicatif/scraper/chrono (schemars still compiles for it, but that's a direct transitive dependency of rig itself, not something this split can avoid). Also verified the relocated deep_research binary still runs end-to-end against live Ollama with correct footnote citations and sources. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
6 lines
212 B
Rust
6 lines
212 B
Rust
use std::sync::LazyLock;
|
|
use crate::models::Prompts;
|
|
|
|
pub(crate) static PROMPTS: LazyLock<Prompts> = LazyLock::new(|| {
|
|
toml::from_str(include_str!("prompts.toml")).expect("Could not parse prompts.toml")
|
|
});
|