Calling Rust method from C with array parameters

前端 未结 2 892
北海茫月
北海茫月 2020-12-21 03:38

I\'m trying to call Rust code from my C project for an embedded device. The device prints over UART, so I am able to see what the result of my call is.

The following

2条回答
  •  Happy的楠姐
    2020-12-21 03:51

    I also found a lot of useful information regarding this in the Rust nightly book, where the function "dot_product" basically does exactly what I was looking for: https://doc.rust-lang.org/nightly/book/no-stdlib.html

提交回复
热议问题