Skip to content

Conversation

@devongovett
Copy link
Member

Fixes #1056

Uses the serde-content crate to buffer during deserialization instead of internal private serde types, which have now moved.

let de: serde::__private::de::ContentRefDeserializer<D::Error> =
serde::__private::de::ContentRefDeserializer::new(&content);
let content = serde_content::Value::deserialize(deserializer)?;
let de = serde_content::Deserializer::new(content.clone()).coerce_numbers();
Copy link
Member Author

Choose a reason for hiding this comment

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

This clone is theoretically cheap if the content contains borrowed data since serde_content::Value uses Cow internally.

@devongovett devongovett merged commit 9879b91 into master Sep 29, 2025
3 checks passed
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.

lightningcss no longer compiles with serde 1.0.220 or above

3 participants