activitypub-federation-rust/src/lib.rs

23 lines
698 B
Rust
Raw Normal View History

2023-03-01 23:19:10 +00:00
#![doc = include_str!("../README.md")]
2023-03-02 14:18:06 +00:00
#![deny(missing_docs)]
2022-06-02 11:17:12 +00:00
2023-03-01 23:19:10 +00:00
/// Configuration for this library
pub mod config;
2023-03-01 23:19:10 +00:00
/// Contains main library functionality
2022-06-02 11:17:12 +00:00
pub mod core;
2023-03-02 14:18:06 +00:00
/// Error messages returned by this library.
2023-03-01 23:19:10 +00:00
pub mod error;
/// Data structures which help to define federated messages
pub mod protocol;
2023-03-01 23:19:10 +00:00
/// Traits which need to be implemented for federated data types
2022-06-02 11:17:12 +00:00
pub mod traits;
2023-03-02 14:18:06 +00:00
/// Some utility functions
2022-06-02 11:17:12 +00:00
pub mod utils;
2023-03-02 14:18:06 +00:00
/// Resolves identifiers of the form `name@example.com`
2023-03-01 23:19:10 +00:00
pub mod webfinger;
pub use activitystreams_kinds as kinds;
2022-06-02 11:17:12 +00:00
/// Mime type for Activitypub, used for `Accept` and `Content-Type` HTTP headers
pub static APUB_JSON_CONTENT_TYPE: &str = "application/activity+json";