[svsm-devel] Using crates in SVSM kernel
John Allen
john.allen at amd.com
Mon Apr 7 21:46:51 CEST 2025
Hi all,
I am new to the project and embedded rust in general. I'm working with
Pankaj G. on SVSM support for SNP live migration and I'm starting to
sketch out some code for key exchange, but I'm learning that many crates
available in non-embedded rust depend on std or on OS abstractions. For
example, I want to generate a ecdsa p384 key using the p384 crate, but
this depends on "get_random" which relies on a whitelist of supported
targets to determine the rng method. This is just one of several crates
that I would have liked to use, but depend on std or are incompatible
with the "x86_64-unknown-none" target.
What is best practice when it comes to including libraries like this?
What options do we have here other than reimplementing functionality
from these crates or is reimplementation the expected course of action
in this environment?
Thanks,
John
More information about the Svsm-devel
mailing list