blob: 14d82b4382c57dfe9f679710a3bff8de72643fd3 [file]
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright © 2024 Intel Corporation
*/
mod sub;
use sub::MyStruct;
#[no_mangle]
pub extern "C" fn print(x: &MyStruct) {
println!("A thing has a cost of {} and a power of {}", x.cost, x.power);
}