mirror of
https://github.com/nullishamy/ferri.git
synced 2025-06-28 00:54:17 +00:00
feat: initial commit
This commit is contained in:
commit
a4a1ef0745
19 changed files with 4436 additions and 0 deletions
7
ferri-main/Cargo.toml
Normal file
7
ferri-main/Cargo.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "main"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true }
|
27
ferri-main/src/ap/mod.rs
Normal file
27
ferri-main/src/ap/mod.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
pub type ObjectId = String;
|
||||
|
||||
pub enum ObjectType {
|
||||
Person,
|
||||
}
|
||||
|
||||
pub struct Object {
|
||||
id: ObjectId,
|
||||
ty: ObjectType
|
||||
}
|
||||
|
||||
pub struct Actor {
|
||||
obj: Object,
|
||||
|
||||
inbox: Inbox,
|
||||
outbox: Outbox,
|
||||
}
|
||||
|
||||
pub struct Inbox {}
|
||||
|
||||
pub struct Outbox {}
|
||||
|
||||
pub struct Message {}
|
||||
|
||||
pub struct Activity {
|
||||
|
||||
}
|
1
ferri-main/src/lib.rs
Normal file
1
ferri-main/src/lib.rs
Normal file
|
@ -0,0 +1 @@
|
|||
pub mod ap;
|
Loading…
Add table
Add a link
Reference in a new issue