Skip to main content

Crate typub_core

Crate typub_core 

Source
Expand description

Shared capability types and content model for typub.

This crate defines the canonical enum types for platform capabilities, asset strategies, theme identifiers, and the core content model.

Per [[ADR-0002]], extracting these types into a shared subcrate ensures:

  • Single source of truth for enum variants
  • Serde-based validation of TOML config at build time
  • Type safety via ThemeId newtype for theme identifiers

Re-exports§

pub use content::Content;
pub use content::ContentFormat;
pub use content::ContentMeta;
pub use content::DiscoverResult;
pub use content::PostInfo;
pub use content::PostPlatformConfig;

Modules§

content
Content parsing and discovery

Structs§

TaxonomyCapability
Taxonomy-related capabilities for content classification and lifecycle. Grouped into a sub-struct for better organization within AdapterCapability.
ThemeId
Newtype for theme identifiers.

Enums§

AssetStrategy
Strategy for handling assets on each platform.
CapabilityGapBehavior
Behavior when a capability is not supported by a platform.
CapabilitySupport
Whether a platform capability is supported.
DraftSupport
Draft support capability per [[RFC-0005:C-DRAFT-SUPPORT]].
LinkResolution
Result of resolving an internal link.
MathDelimiters
Math delimiter syntax for Markdown output.
MathRendering
How a platform renders math equations.
NodePolicyAction
Generic policy action for handling non-conforming or unsupported semantic nodes.