Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

opendefocus-datastructure

This crate both generates the bindings using the Protobuf definition, and has some additional implementations to the structs.

Why protobuf?

To make it easy to add additional language support as Protobuf can be send over bytes. So this means we can encode and decode settings from any language.

Structure

opendefocus.proto: definition of opendefocus settings build.rs: includes the building process for converting protobuf to Rust structs lib.rs: bindings to the protobuf structs and additional implementations which are often used on the structs