Skip to main content

subspace_framework/
lib.rs

1//! The Subspace Framework: the crates an app is composed from, re-exported as
2//! modules named after them without the `subspace_` prefix.
3//!
4//! The default `space` feature is what a Space needs: the services, the board
5//! kit and the GitHub client. `host` adds the shell and the other host crates,
6//! for app builders only. `agent`, `report-issue`, `search-onnx`,
7//! `component-gallery`, `test-support` and `capture` add the rest.
8
9pub use ::subspace_product as product;
10
11#[cfg(feature = "space")]
12pub use ::subspace_account as account;
13#[cfg(feature = "space")]
14pub use ::subspace_agent_model as agent_model;
15#[cfg(feature = "space")]
16pub use ::subspace_agent_tools as agent_tools;
17#[cfg(feature = "space")]
18pub use ::subspace_charts as charts;
19#[cfg(feature = "space")]
20pub use ::subspace_client_github as client_github;
21#[cfg(feature = "space")]
22pub use ::subspace_contracts as contracts;
23#[cfg(feature = "space")]
24pub use ::subspace_core as core;
25#[cfg(feature = "space")]
26pub use ::subspace_dashboard as dashboard;
27#[cfg(feature = "space")]
28pub use ::subspace_github_auth as github_auth;
29#[cfg(feature = "space")]
30pub use ::subspace_lucide as lucide;
31#[cfg(feature = "space")]
32pub use ::subspace_search as search;
33#[cfg(feature = "space")]
34pub use ::subspace_web as web;
35
36#[cfg(feature = "agent")]
37pub use ::subspace_agent as agent;
38
39#[cfg(feature = "host")]
40pub use ::subspace_board_command as board_command;
41#[cfg(feature = "host")]
42pub use ::subspace_chat as chat;
43#[cfg(feature = "host")]
44pub use ::subspace_entra_auth as entra_auth;
45#[cfg(feature = "host")]
46pub use ::subspace_mcp as mcp;
47#[cfg(feature = "host")]
48pub use ::subspace_search_ui as search_ui;
49#[cfg(feature = "host")]
50pub use ::subspace_shell as shell;
51#[cfg(feature = "host")]
52pub use ::subspace_update as update;
53#[cfg(feature = "host")]
54pub use ::subspace_workos_auth as workos_auth;
55
56#[cfg(feature = "report-issue")]
57pub use ::subspace_report_issue as report_issue;
58
59#[cfg(feature = "search-onnx")]
60pub use ::subspace_search_onnx as search_onnx;
61
62#[cfg(feature = "component-gallery")]
63pub use ::subspace_component_gallery_board as component_gallery;
64
65#[cfg(feature = "test-support")]
66pub use ::subspace_client_test_support as client_test_support;
67
68/// The README's examples, compiled as doctests with the `report-issue`
69/// feature (which includes `host`).
70#[cfg(all(doctest, feature = "report-issue"))]
71#[doc = include_str!("../README.md")]
72// Exists only for rustdoc to test the README; nothing names it.
73#[allow(dead_code)]
74pub struct ReadmeDoctests;
75
76/// The command-line guide's examples, compiled as doctests like the README's.
77#[cfg(all(doctest, feature = "report-issue"))]
78#[doc = include_str!("../docs/cli.md")]
79// Exists only for rustdoc to test the guide; nothing names it.
80#[allow(dead_code)]
81pub struct CliDoctests;