ipld / ipld/libipld

Question: Why are the macros for deriving the Codec instead of the Data Model?

Open
#160 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
150
Forks
41
PR merge metrics
No merged PRs in 30d

Description

As far as I understand, the purpose of IPLD is to largely be codec agnostic, and correspondingly it seems like the derivations being tied to the Codec defeats this property. It is perhaps the case that I am misunderstanding how things are supposed to work but a cursory glance at the examples directory of dag-cbor-derive suggests that it is a proc macro language that is trying to match the schema DSL of IPLD. If that is the case, what is codec specific about these macros?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.