actpub-nodeinfo 0.2.0

NodeInfo 2.0/2.1 and FEP-0151 server metadata protocol for ActivityPub.
Documentation

NodeInfo server metadata protocol for the Fediverse.

Implements NodeInfo 2.0 / 2.1 and FEP-0151 (NodeInfo 2025 edition), providing both discovery (/.well-known/nodeinfo) and schema documents.

Example (server)

use actpub_nodeinfo::{NodeInfo, Software, Usage, UserCount, Protocol, Version};

let info = NodeInfo::builder(Version::V2_1, Software::new("my-server", "1.0.0"))
    .protocol(Protocol::ActivityPub)
    .open_registrations(true)
    .usage(Usage::new(UserCount::default().with_total(42)))
    .build();

let json = serde_json::to_string(&info).unwrap();
assert!(json.contains(r#""version":"2.1""#));