Guides
Short fixes for problems I have hit, each checked against the versions it names.
Find a fix
Narrow the list: pick a technology, then a version, then the error you see. Pick any to skip a step.
Error or symptom
Matching guides
2 of 2
-
cargo build fails but cargo test passes: could not find net in actix_rt
After a dependency bump, a plain cargo build stopped with could not find net in actix_rt while cargo test kept passing. actix-server 2.8.0 never asks for the actix-rt features it needs, and updating it to 2.9.5, which does, fixes the build.
-
Scraped text runs as HTML in a generated report
My web scraper wrote scraped titles and links straight into its HTML report, so a page could slip its own markup or a javascript: link into the file. One shared escape function, plus a rule that only http and https addresses become links, fixed it.