Skip to main content

taino_edit/
lib.rs

1//! `taino-edit` — umbrella crate for the taino-edit WYSIWYG editor framework.
2//!
3//! Native Rust, reactive-first rich-text editing. **No JavaScript bridge** —
4//! unlike `leptos-tiptap`, this is pure Rust at runtime.
5//!
6//! This crate re-exports the workspace pieces behind feature flags so
7//! consumers pick exactly what they need:
8//!
9//! | Feature      | Re-exports                                            |
10//! |--------------|-------------------------------------------------------|
11//! | *(always)*   | [`core`] — document model, transforms, state, commands |
12//! | `extensions` | [`extensions`] — bold, italic, heading, …             |
13//! | `dom`        | [`dom`] — the contenteditable bridge                  |
14//! | `leptos`     | [`leptos`] — the Leptos adapter (implies `dom`+`extensions`) |
15//! | `dioxus`     | [`dioxus`] — placeholder, reserved for v0.2            |
16//!
17//! No adapter is enabled by default; choose one, e.g.
18//! `taino-edit = { version = "0.1", features = ["leptos"] }`.
19//!
20//! Status: **pre-implementation** — see `ROADMAP.md`.
21
22#![deny(unsafe_code)]
23#![forbid(unstable_features)]
24#![warn(rust_2018_idioms)]
25
26pub use taino_edit_core as core;
27
28#[cfg(feature = "extensions")]
29pub use taino_edit_extensions as extensions;
30
31#[cfg(feature = "dom")]
32pub use taino_edit_dom as dom;
33
34#[cfg(feature = "leptos")]
35pub use taino_edit_leptos as leptos;
36
37#[cfg(feature = "dioxus")]
38pub use taino_edit_dioxus as dioxus;