Yes, the capnproto spec officially forbids sharing inside a message Different implementations may have varying levels of tolerance for this, but it's probably best not to bend the spec here.
Have a look at schema.capnp, in particular the way the `Node` type is managed by id, for some inspiration. -Ian Quoting Daniel Norman (2020-02-17 16:19:17) > Hello! > I'm attempting to use Cap'n proto for a Rust project which requires > sending DAG subgraphs via network packets. > I didn't see anything on this topic in the docs or examples. I am > curious whether there exists a best practice, or perhaps some examples > of others using Cap'n proto for this purpose. > Perhaps I am missing something, but as far as I can tell, I'd need to > implement this as an overlay using offsets managed outside of Cap'n > proto. Is this a correct understanding? > Cheers, > Daniel- > > -- > You received this message because you are subscribed to the Google > Groups "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [1][email protected]. > To view this discussion on the web visit > [2]https://groups.google.com/d/msgid/capnproto/ebc81a61-ebfc-4346-a599- > a971a8db3c79%40googlegroups.com. > > Verweise > > 1. mailto:[email protected] > 2. > https://groups.google.com/d/msgid/capnproto/ebc81a61-ebfc-4346-a599-a971a8db3c79%40googlegroups.com?utm_medium=email&utm_source=footer -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/158197665432.7679.17525864375889942002%40localhost.localdomain.
