Closed karthikbhargavan closed 1 month ago
This PR improves the treatment of inline attributes in Rust.
inline
#[inline]
#[inline(always]
KRML_MUSTINLINE
#[inline(never]
KRML_NOINLINE
The last of these is security-critical for constant-time code. There is an example of these usages in test/inline_attributes
test/inline_attributes
This PR improves the treatment of
inline
attributes in Rust.#[inline]
translates toinline
in C#[inline(always]
translates toKRML_MUSTINLINE
in C#[inline(never]
translates toKRML_NOINLINE
in CThe last of these is security-critical for constant-time code. There is an example of these usages in
test/inline_attributes