I'm needing to serialize & deserialize things because the cached crate uses serde. I am using cached so I can increase performance of some heavy SBOM generation by leveraging caching. There's 2 options which I can see be done. One is make everything in cyclonedx-bom/src/specs become public outside of the crate. The other is to make everything have the serde::Serialize and serde::Deserialize traits. Either option would work but I'd prefer the latter so I don't have to convert between things. If there's another option, I'm all ears but I'm wondering what's the best solution here.
I'm needing to serialize & deserialize things because the
cachedcrate uses serde. I am usingcachedso I can increase performance of some heavy SBOM generation by leveraging caching. There's 2 options which I can see be done. One is make everything incyclonedx-bom/src/specsbecome public outside of the crate. The other is to make everything have theserde::Serializeandserde::Deserializetraits. Either option would work but I'd prefer the latter so I don't have to convert between things. If there's another option, I'm all ears but I'm wondering what's the best solution here.