Skip to content

Remove serde_yaml due to lack of maintainance - #30

Merged
joshjob-scale merged 4 commits into
ScaleComputing:mainfrom
joshjob-scale:no_yaml
Oct 20, 2026
Merged

joshjob-scale merged 4 commits into
ScaleComputing:mainfrom
joshjob-scale:no_yaml

Conversation

@joshjob-scale

Copy link
Copy Markdown
Collaborator

Serdes_yaml is no longer maintained and has been removed. At the same time all yaml support has been removed. The inputs and outputs are now only offered in json. Since this is a breaking change to those using this in scripts, the major version number was increased. That also seemed to have made this a good time to update packages across the board.

This implements #22

This is a breaking change as the config and output were in yaml format.
This is a result of the serde_yaml crate no longer being maintained.
@joshjob-scale joshjob-scale self-assigned this Oct 14, 2026
The move away from yaml is considered a breaking change. This makes this
a good time to update all of the packages used to build cpuinfo.
@joshjob-scale joshjob-scale linked an issue Oct 15, 2026 that may be closed by this pull request
JSON has no hex literals, so CPUID leaves and MSR addresses had to be
written in decimal (0x80000001 as 2147483649). Add serde helpers in
src/hex.rs that read them from "0x..." strings as well as decimal, with
'_' allowed as a separator, and convert config.json: values below 10 stay
decimal, everything else is hex.

A leaf repeated in one file (e.g. "0x7" and "7") is now an error instead
of silently keeping the last one. Add a test that the built-in config
parses. Output is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joshjob-scale
joshjob-scale merged commit 2948949 into ScaleComputing:main Oct 20, 2026
4 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.

Convert config.yaml to config.json

4 participants