Skip to content

feat: move alloy-serde to primitives#1074

Open
stevencartavia wants to merge 2 commits intoalloy-rs:mainfrom
stevencartavia:mv-alloy-serde-to-primitives
Open

feat: move alloy-serde to primitives#1074
stevencartavia wants to merge 2 commits intoalloy-rs:mainfrom
stevencartavia:mv-alloy-serde-to-primitives

Conversation

@stevencartavia
Copy link

Motivation

moving alloy-serde to alloy-primitives

Solution

Moved alloy-serde into alloy-primitives as a pub mod serde behind the existing serde feature flag. Source files are unchanged aside from import path adjustments (alloy_primitives:: → crate::) and feature gate fixes needed because arbitrary and map are optional in primitives. Added serde_json as an optional dependency gated behind the serde feature.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of this could we some additional bloat, however imo this is okay, but maybe it's worth gating the serde-json support separately, like serde-json feature

wdyt @DaniPopes

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants