Upgrade to Rust 1.97

Updated the Rust toolchain from 1.96.1 to 1.97.0 across all build configurations, CI workflows, and Docker builds. Fixed code style issues flagged by the newer Rust version's linter.