Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize Tuf object to deserialize custom metadata field #73

Open
heartsucker opened this issue Jun 22, 2017 · 2 comments
Open

Parameterize Tuf object to deserialize custom metadata field #73

heartsucker opened this issue Jun 22, 2017 · 2 comments

Comments

@heartsucker
Copy link
Contributor

This would allow us to pass back a real structure and not be pinned to JSON.

@heartsucker
Copy link
Contributor Author

This can't be parameterized in a nice way that doesn't wreak havoc with serde (or so it seems). The TargetDescription struct can just store it as raw bytes because the DataInterchange trait allows it to be serde'd to/from a) DataInterchange::RawData and b) bytes. This is good enough and someone external using the crate would be able to extract the bytes and do what they need with them.

Eventually someone might come up with something more clever than the couple of things I tried, but this is good enough for now.

@heartsucker heartsucker removed their assignment Oct 22, 2018
@erickt
Copy link
Collaborator

erickt commented Nov 21, 2019

This is mostly implemented. TargetDescriptions now capture the target custom field. We just need to make Client::fetch_target_description public.

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

No branches or pull requests

2 participants