summaryrefslogtreecommitdiff
path: root/components/rust/core/src/init.rs
blob: 3f8e326e82369b46d3992f582d0b05f6d9b66b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2006-2025, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-09-15     foxglove     1.0 version
 */

/* Rust component initialization module
 * Handles initialization of the Rust component within RT-Thread.
 */

use crate::println;

#[no_mangle]
pub extern "C" fn rust_init() -> i32 {
    println!("[rust_init]: Rust component initialized!");    
    0
}