noosphere_cli/
lib.rs

1//! This crate implements the core functionality of the Noosphere CLI, otherwise
2//! known as "orb". The Noosphere CLI has three goals:
3//!
4//! - Be a reference for those seeking to embed Noosphere in a client
5//!   application
6//! - Serve as a pedagogical tool for those seeking to explore the Noosphere
7//!   protocol
8//! - Provide swiss army knife-like utility for anyone using Noosphere protocol
9//!   in their day-to-day lives
10//!
11//! Taken in its entirety, this crate implements various high-level routines
12//! that are likely to be implemented by other apps that embed Noosphere,
13//! including (but not limited to):
14//!
15//! - Saving, syncing, rendering and updating the content of spheres as it
16//!   changes over time
17//! - Following and unfollowing other spheres, and accessing their content
18//! - Managing access to a sphere by other clients and devices
19
20#![warn(missing_docs)]
21
22#[cfg(not(target_arch = "wasm32"))]
23#[macro_use]
24extern crate tracing;
25
26#[cfg(not(target_arch = "wasm32"))]
27mod native;
28
29#[cfg(not(target_arch = "wasm32"))]
30pub use native::*;
31
32#[cfg(target_arch = "wasm32")]
33mod web;
34
35#[cfg(target_arch = "wasm32")]
36pub use web::*;