This commit is contained in:
sergio
2026-05-13 02:17:40 +00:00
parent 52acaabcf4
commit 88051d220a
37 changed files with 1664 additions and 0 deletions
@@ -0,0 +1,41 @@
[package]
name = "lapaloma"
version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
authors = { workspace = true }
publish = { workspace = true }
description = "Lapaloma — paraguas: re-exporta los módulos para prototipos. En producción importar los crates hoja directamente para que tree-shaking descarte lo no usado."
[dependencies]
lapaloma-core = { path = "../../libs/lapaloma-core", optional = true }
lapaloma-render = { path = "../lapaloma-render", optional = true }
lapaloma-cartesian = { path = "../lapaloma-cartesian", optional = true }
lapaloma-stream = { path = "../lapaloma-stream", optional = true }
lapaloma-mesh = { path = "../lapaloma-mesh", optional = true }
lapaloma-financial = { path = "../lapaloma-financial", optional = true }
lapaloma-polar = { path = "../lapaloma-polar", optional = true }
lapaloma-heatmap = { path = "../lapaloma-heatmap", optional = true }
lapaloma-treemap = { path = "../lapaloma-treemap", optional = true }
lapaloma-flow = { path = "../lapaloma-flow", optional = true }
lapaloma-phosphor = { path = "../lapaloma-phosphor", optional = true }
lapaloma-export = { path = "../lapaloma-export", optional = true }
[features]
default = ["full"]
full = [
"core", "render", "cartesian", "stream", "mesh", "financial",
"polar", "heatmap", "treemap", "flow", "phosphor", "export",
]
core = ["dep:lapaloma-core"]
render = ["dep:lapaloma-render", "core"]
cartesian = ["dep:lapaloma-cartesian", "render"]
stream = ["dep:lapaloma-stream", "render"]
mesh = ["dep:lapaloma-mesh", "render"]
financial = ["dep:lapaloma-financial", "cartesian"]
polar = ["dep:lapaloma-polar", "render"]
heatmap = ["dep:lapaloma-heatmap", "render"]
treemap = ["dep:lapaloma-treemap", "render"]
flow = ["dep:lapaloma-flow", "render"]
phosphor = ["dep:lapaloma-phosphor", "stream"]
export = ["dep:lapaloma-export", "render"]
@@ -0,0 +1,53 @@
//! `lapaloma` — paraguas re-export.
//!
//! Para **prototipos** que quieren probar varios módulos a la vez
//! sin agregar 8 dependencias a `Cargo.toml`. En producción
//! preferir importar directamente los crates hoja (`lapaloma-core`,
//! `lapaloma-cartesian`, …) para que el linker descarte lo no
//! usado y los tiempos de compilación bajen.
//!
//! Las features mapean 1:1 a cada sub-crate:
//!
//! ```toml
//! [dependencies]
//! lapaloma = { workspace = true, default-features = false,
//! features = ["cartesian", "stream"] }
//! ```
#![forbid(unsafe_code)]
#[cfg(feature = "core")]
pub use lapaloma_core as core;
#[cfg(feature = "render")]
pub use lapaloma_render as render;
#[cfg(feature = "cartesian")]
pub use lapaloma_cartesian as cartesian;
#[cfg(feature = "stream")]
pub use lapaloma_stream as stream;
#[cfg(feature = "mesh")]
pub use lapaloma_mesh as mesh;
#[cfg(feature = "financial")]
pub use lapaloma_financial as financial;
#[cfg(feature = "polar")]
pub use lapaloma_polar as polar;
#[cfg(feature = "heatmap")]
pub use lapaloma_heatmap as heatmap;
#[cfg(feature = "treemap")]
pub use lapaloma_treemap as treemap;
#[cfg(feature = "flow")]
pub use lapaloma_flow as flow;
#[cfg(feature = "phosphor")]
pub use lapaloma_phosphor as phosphor;
#[cfg(feature = "export")]
pub use lapaloma_export as export;