Skip to content

Commit 07707e0

Browse files
committed
Top level crate documentation.
1 parent 4a4ad2a commit 07707e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

swimos/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//! # SwimOS
16+
//! A framework for building real-time streaming applications that model the state of an external system.
17+
//! The state of a SwimOS application is split across a number of "agents", identified by URI. Agents
18+
//! consists of some number of named "lanes", each of which is individually addressable. An external client
19+
//! of the application can modify the value of lanes, to update the model, and subscribe the changes to the
20+
//! state of those lanes. State updates are pushed to the clients so it is not necessary to poll for changes.
21+
//!
22+
//! ## Feature Flags
23+
//! This crate has a number of feature flags, none of which are enabled by default:
24+
//!
25+
//! 1. `agent` - The API for defining your own agents.
26+
//! 2. `server` - The SwimOS server, necessary for running a SwimOS application.
27+
//! 3. `json` - Enables JSON serialization support for HTTP lanes.
28+
1529
#[doc(inline)]
1630
pub use swimos_model as model;
1731

0 commit comments

Comments
 (0)