ax-ctor-bare 0.4.8

Register constructor functions for Rust at complie time under no_std.
Documentation
1
2
3
4
5
6
7
8
#[test]
fn test_empty() {
    // Sometimes under certain conditions, we may not have any constructor functions.
    // But the `call_ctors` function should still work, and the `__init_array_start` and
    // `__init_array_end` symbols should be valid.
    ax_ctor_bare::call_ctors();
    println!("It should exit successfully when we don't specify any constructor functions.");
}