Matthias Beyer
cb4d5367e4
Because the code was so complex before, we had to create an object and then cast that object into a `StoreId` rather than just creating a `StoreId` object right away. With this patch, we're using the code-generation approach to generate a function that creates a `StoreId` object based on the name of the current module. That's way easier and error handling was also improved by the switch to the new implementation. The patch also includes a rewrite of all usages of ModuleEntryPath and changes them to `module_path::new_id()` calls. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
libimagentryannotation
This library provides annotation functionality for entries.
Annotations are normal Store entries, but their header at
annotation.is_annotation
is set to true
.
Annotations are linked to an entry (as in libimagentrylink
).
Library functionality
The library features two traits: One to extend an Entry
with annotation
functionality and another one for extending the Store
with functionality to
get annotations of an entry and all annotations in the store.