flams_router_git_base/
lib.rs1#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2
3#[cfg(any(
4 all(feature = "ssr", feature = "hydrate", not(feature = "docs-only")),
5 not(any(feature = "ssr", feature = "hydrate"))
6))]
7compile_error!("exactly one of the features \"ssr\" or \"hydrate\" must be enabled");
8
9use std::num::NonZeroU32;
10
11pub mod server_fns;
12
13#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
14pub enum GitState {
15 None,
16 Queued {
17 commit: String,
18 queue: NonZeroU32,
19 },
20 Live {
21 commit: String,
22 updates: Vec<(String, flams_git::Commit)>,
23 },
24}