rust_support: Disable c_str_literals on Rust 1.77+

C string literals were stabilized in Rust 1.77
so the c_str_literals feature is no longer needed.

Bug: 337337239
Test: qemu-generic-arm64-test-debug
Change-Id: I75879a4af3015840b839010f3dabd71ef136bfb8
diff --git a/lib/rust_support/lib.rs b/lib/rust_support/lib.rs
index 9d6553a..765d79c 100644
--- a/lib/rust_support/lib.rs
+++ b/lib/rust_support/lib.rs
@@ -24,7 +24,9 @@
 //! Rust support library for the Trusty kernel
 
 #![no_std]
-#![feature(c_str_literals)]
+#![feature(cfg_version)]
+// C string literals were stabilized in Rust 1.77
+#![cfg_attr(not(version("1.77")), feature(c_str_literals))]
 #![deny(unsafe_op_in_unsafe_fn)]
 
 use alloc::format;