Rewrite `get_sentences` to return a `usize` count instead of `Vec<&str>`, removing the trailing-dot cleanup logic. Replace `get_words` and `get_capitalized_words` with a single `get_words` function that mutates output counters for total words, capitalized words, and forbidden words, iterating directly over the content. Add release profile optimizations with thin LTO and abort-on-panic in Cargo.toml.
12 lines
143 B
TOML
12 lines
143 B
TOML
[package]
|
|
name = "risspam"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
rayon = "1.10.0"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
panic = "abort"
|