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

feat(monofs): support IPLD values in extended attributes #105

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

appcypher
Copy link
Owner

Change the value type of extended attributes from String to Ipld to support storing more complex data types. This includes:

  • Update BTreeMap value type from String to Ipld
  • Modify get_attribute to return Option<&Ipld>
  • Update set_attribute to accept any value that can convert to Ipld
  • Adjust tests to handle Ipld::String values
  • Remove Eq trait derivation since Ipld doesn't implement it

Change the value type of extended attributes from String to Ipld to support
storing more complex data types. This includes:

- Update BTreeMap value type from String to Ipld
- Modify get_attribute to return Option<&Ipld>
- Update set_attribute to accept any value that can convert to Ipld
- Adjust tests to handle Ipld::String values
- Remove Eq trait derivation since Ipld doesn't implement it
@appcypher appcypher merged commit e5b8ee9 into main Jan 13, 2025
@appcypher appcypher deleted the appcypher/ipld-xattr branch January 13, 2025 16:21
@appcypher appcypher changed the title feat(fs): support IPLD values in extended attributes feat(monofs): support IPLD values in extended attributes Jan 13, 2025
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.

1 participant