jcrist / msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
https://jcristharif.com/msgspec/
BSD 3-Clause "New" or "Revised" License
2.01k stars 59 forks source link

Docs page on testing #639

Open jcrist opened 5 months ago

jcrist commented 5 months ago

There's been some FUD messaging by other projects against msgspec as an unsafe C project. While it's written in C, safety is a spectrum and we're definitely not careless about security issues here. It would be good to write up a docs page on our testing setup to hopefully allay safety concerns. We should cover:

This is not to minimize the benefit a safe language like rust provides (rust is good! and C does have footguns). But all C code is not the same and this project should definitely not be treated as "definitely unsafe, don't touch". All software is tradeoffs - if you need the performance benefits msgspec provides and can tolerate a "we're trying our best using the tooling available, no CVEs so far" level of guarantee, then maybe msgspec is a tool worth considering.