I use Claude Code with Rust. I have noticed a tendency to write custom code instead of using an existing crate.
One reason might be that the model's knowledge cutoff means it doesn't know about recent changes. One way to address this is to first ask the model to search the internet and find suitable crates/libraries before it decides to write new code.