init.rs 458 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2025, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2025-09-15 foxglove 1.0 version
  9. */
  10. /* Rust component initialization module
  11. * Handles initialization of the Rust component within RT-Thread.
  12. */
  13. use crate::println;
  14. #[no_mangle]
  15. pub extern "C" fn rust_init() -> i32 {
  16. println!("[rust_init]: Rust component initialized!");
  17. 0
  18. }