From 949da91cb79c8760e6592f12bf9fa29fbfdef353 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 16 Dec 2024 04:24:38 +0100 Subject: [PATCH] `astreams`: Create crate --- .idea/acrate.iml | 3 ++- Cargo.toml | 2 +- acrate_astreams/Cargo.toml | 17 +++++++++++++++++ acrate_astreams/src/core.rs | 6 ++++++ acrate_astreams/src/extended.rs | 6 ++++++ acrate_astreams/src/lib.rs | 11 +++++++++++ acrate_astreams/src/litepub.rs | 6 ++++++ acrate_astreams/src/mastodon.rs | 6 ++++++ acrate_astreams/src/miajetzt.rs | 6 ++++++ 9 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 acrate_astreams/Cargo.toml create mode 100644 acrate_astreams/src/core.rs create mode 100644 acrate_astreams/src/extended.rs create mode 100644 acrate_astreams/src/lib.rs create mode 100644 acrate_astreams/src/litepub.rs create mode 100644 acrate_astreams/src/mastodon.rs create mode 100644 acrate_astreams/src/miajetzt.rs diff --git a/.idea/acrate.iml b/.idea/acrate.iml index 05d6838..030fecb 100644 --- a/.idea/acrate.iml +++ b/.idea/acrate.iml @@ -13,9 +13,10 @@ + - \ No newline at end of file + diff --git a/Cargo.toml b/Cargo.toml index c4c058b..d8f27a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,3 @@ [workspace] resolver = "2" -members = ["acrate_database", "acrate_rd", "acrate_nodeinfo", "acrate_rdserver", "acrate_apub_inbox"] +members = ["acrate_database", "acrate_rd", "acrate_nodeinfo", "acrate_rdserver", "acrate_apub_inbox", "acrate_astreams"] diff --git a/acrate_astreams/Cargo.toml b/acrate_astreams/Cargo.toml new file mode 100644 index 0000000..733f628 --- /dev/null +++ b/acrate_astreams/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "acrate_astreams" +version = "0.3.0" +authors = ["Stefano Pigozzi "] +edition = "2021" +description = "ActivityStreams definitions and utilities" +repository = "https://forge.steffo.eu/unimore/tirocinio-canali-steffo-acrate" +license = "EUPL-1.2" +keywords = ["activitypub", "activitystreams", "federation", "apub", "astreams"] +categories = ["web-programming"] + +[dependencies] +json-ld = { version = "0.21.1", features = ["serde", "reqwest"] } +log = "0.4.22" +serde = { version = "1.0.214", features = ["derive"] } +serde_json = "1.0.132" +thiserror = "2.0.3" diff --git a/acrate_astreams/src/core.rs b/acrate_astreams/src/core.rs new file mode 100644 index 0000000..96aca6d --- /dev/null +++ b/acrate_astreams/src/core.rs @@ -0,0 +1,6 @@ +//! Struct definitions for ActivityStreams Core Types. +//! +//! # Specification +//! +//! - + diff --git a/acrate_astreams/src/extended.rs b/acrate_astreams/src/extended.rs new file mode 100644 index 0000000..d5e2bb0 --- /dev/null +++ b/acrate_astreams/src/extended.rs @@ -0,0 +1,6 @@ +//! Struct definitions for ActivityStreams Extended Types. +//! +//! # Specification +//! +//! - + diff --git a/acrate_astreams/src/lib.rs b/acrate_astreams/src/lib.rs new file mode 100644 index 0000000..1db9975 --- /dev/null +++ b/acrate_astreams/src/lib.rs @@ -0,0 +1,11 @@ +//! +//! # Specification +//! +//! - + +pub mod core; +pub mod extended; + +pub mod mastodon; +pub mod miajetzt; +pub mod litepub; diff --git a/acrate_astreams/src/litepub.rs b/acrate_astreams/src/litepub.rs new file mode 100644 index 0000000..fa5755d --- /dev/null +++ b/acrate_astreams/src/litepub.rs @@ -0,0 +1,6 @@ +//! Struct definitions for Pleroma and Akkoma's Extension Types. +//! +//! # Specification +//! +//! - + diff --git a/acrate_astreams/src/mastodon.rs b/acrate_astreams/src/mastodon.rs new file mode 100644 index 0000000..a410814 --- /dev/null +++ b/acrate_astreams/src/mastodon.rs @@ -0,0 +1,6 @@ +//! Struct definitions for Mastodon's Extension Types. +//! +//! # Specification +//! +//! - + diff --git a/acrate_astreams/src/miajetzt.rs b/acrate_astreams/src/miajetzt.rs new file mode 100644 index 0000000..f1cf4af --- /dev/null +++ b/acrate_astreams/src/miajetzt.rs @@ -0,0 +1,6 @@ +//! Struct definitions for mia's Extension Types. +//! +//! # Specification +//! +//! - +