This separates the previous mono-binary setup into separate libraries and binaries. Specifically it split the old since api/ingestor binary into an Atproto, and DB library, as well as an api, and ingestor binary. Atproto Lib Was mostly untouched. The original URI implementation was changed to use FromStr, otherwise only imports were changed. DB Lib Is mostly unused, so there wasn't much that needed to be changed. Some new files were added so that future work on it can hit the ground running. Api Binary Is almost entirely the same. Imports were changed and the ingestor code of main was removed. Ingestor Binary Was almost entirely refactored. An interface to made injestors was added, and it was modularized. The only shared code is in Ingestor.start(), and collections.rs's macros, but that is mostly boilerplate.
17 lines
562 B
Rust
17 lines
562 B
Rust
// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT.
|
|
//!Definitions for the `my.spoor.content` namespace.
|
|
pub mod external;
|
|
pub mod media;
|
|
pub mod title;
|
|
#[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;
|
|
}
|