Skip to content

Conversation

@arilou
Copy link
Contributor

@arilou arilou commented Jan 16, 2025

Correct the no_std support to work for the Error type and serde as well

* Serde can be used with "alloc" feature only.
* Error can be implemented now with Error

Signed-off-by: Jon Doron <[email protected]>
@stbuehler
Copy link
Owner

Hi, thanks for this pull request.

I'm gonna take fixing the Error-impls into a separate commit.

For the remaining part I'm a bit unsure.

  • I don't think serde alloc is needed - it seems to build without just fine
  • but the serde impls for Ip*Addr require std or their no_core_net detection, which was released in serde 1.0.210.

So technically we require serde=1.0.210 || serde[std] - and I'm not sure I want to raise the required serde version to such a recent one.

@stbuehler
Copy link
Owner

Given rust-1.81 is already required and is about the same age as serde 1.0.210 I decided to raise the serde version requirement.

stbuehler pushed a commit that referenced this pull request Jan 18, 2025
stbuehler added a commit that referenced this pull request Jan 18, 2025
Serde impls for Ip*Addr from serde 1.0.210 don't require std (if used
with rust>=1.77, which we require anyway).
@stbuehler
Copy link
Owner

Applied in f0b716c

@stbuehler stbuehler closed this Jan 18, 2025
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