Skip to content

Conversation

@dsseng
Copy link

@dsseng dsseng commented Nov 16, 2025

As psa-crypto-sys does not rely on any std features, it should be safe
to completely switch its bindgen options to use core, and mark it as
no_std. This allows this crate to be used in embedded applications such
as TrustedFirmware-M Secure Partitions.

zeroize should not need alloc default feature, as this crate does not
make use of Vec or Box and does not derive zeroize on them. Disable all
default features to avoid unnecessary dependency on std.

Tested to provide access to hash functions via operations feature in
a TF-M Secure Partition sample.

Signed-off-by: Dmitrii Sharshakov d3dx12.xx@gmail.com

As psa-crypto-sys does not rely on any std features, it should be safe
to completely switch its bindgen options to use core, and mark it as
no_std. This allows this crate to be used in embedded applications such
as TrustedFirmware-M Secure Partitions.

zeroize should not need `alloc` default feature, as this crate does not
make use of Vec or Box and does not derive zeroize on them. Disable all
default features to avoid unnecessary dependency on std.

Tested to provide access to hash functions via `operations` feature in
a TF-M Secure Partition sample.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
@dsseng
Copy link
Author

dsseng commented Nov 18, 2025

These CI failures are also present on main. I could perhaps take a look this weekend and send a PR for fixing those, please let me know if that's wanted

@hug-dev
Copy link
Member

hug-dev commented Nov 18, 2025

Hello! Thanks for your effort contributing into this repo!! It has been a bit left on the side those past few years... If it's needed though, I could also take a look at open issues/PRs and try to freshen it up!

There is another open issue about making it no_std which I think makes total sense. Let's aim to do that!

@dsseng
Copy link
Author

dsseng commented Nov 21, 2025

I'm working on fixing clippy errors, will submit a separate PR to be merged before this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants