Lexicon Module, codegen current lexicons

Use esquema (github:fatfingers23/esquema@9ef00b9) to generate rust code
for the lexicons that we have.

Currently, esquema doesn't seem to support top level integer types. I've
opted to temporarily remove `indexProgress` from my.spoor.log.activity
while compiling, and then adding it back afterwards.

I could compile esquema with the following added to my flake.nix
```
nativeBuildInputs = with pkgs; [
  pkg-config
  openssl
  openssl.dev
];
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
```
at a later date I will add it as a dependency, but I spent a while
trying to package esquema to no results.
This commit is contained in:
Julia Lange 2025-05-07 16:29:08 -07:00
parent 0210da9708
commit 090cb6631e
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
11 changed files with 245 additions and 0 deletions

View file

@ -0,0 +1,17 @@
// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT.
//!Definitions for the `my.spoor.content` namespace.
pub mod defs;
pub mod external;
pub mod media;
#[derive(Debug)]
pub struct External;
impl atrium_api::types::Collection for External {
const NSID: &'static str = "my.spoor.content.external";
type Record = external::Record;
}
#[derive(Debug)]
pub struct Media;
impl atrium_api::types::Collection for Media {
const NSID: &'static str = "my.spoor.content.media";
type Record = media::Record;
}