weirdnet-songnotes 0.4.0

SongNotes collaboration: the roles, permissions, links and consent requests for a SongNotes session, built on weirdnet-collab.
Documentation
//! SongNotes collaboration on top of [`weirdnet_collab`]: the roles, permissions, links and
//! consent requests of a SongNotes session.
//!
//! * [`roles::roles`] is the role table: Host, Editor, Engineer, Viewer and Listener, with the
//!   gates (the audio owner's consent for recording and routing, a local switch for talking).
//! * [`perm`] lists the permission names.
//! * [`link`] parses and writes `weirdnet-songnotes://join/<token>` and
//!   `weirdnet-songnotes://collab/<project>/<panel>`.
//! * [`Session`] is the facade an app uses: start a session, share a link, join, ask "can I?",
//!   turn a "needs consent" answer into a request the audio owner can accept.
//! * [`service`] is the `/songnotes/collab` protocol every SongNotes app speaks to a host: join,
//!   standing, the project view with people, presence and audit, and "I am in this app".
//!
//! Standalone host mode is a [`Session`] with one host, the Viewer role as the default and host
//! approval on the link ([`Session::standalone`]).
#![forbid(unsafe_code)]

pub mod link;
pub mod perm;
pub mod roles;
pub mod service;
mod session;

pub use link::{AnyLink, DeepLink, JoinLink, LinkError, Panel};
pub use roles::{EDITOR, ENGINEER, HOST, LISTENER, VIEWER, roles};
pub use service::{Activity, Here, Person, ProjectView, Standing};
pub use session::{ConsentRequest, Joined, Session, SessionError};
pub use weirdnet_collab::{Approval, Ctx, Decision, Duration, Explained, GrantStreams, Permission, ProjectId, RoleId, Step};
pub use weirdnet_contacts::UserId;
pub use weirdnet_net::Keypair;