vedaksha/lib.rs
1// Copyright © 2026 ArthIQ Labs LLC. All rights reserved.
2// Vedākṣha — Vision from Vedas
3// Licensed under BSL 1.1. See LICENSE file.
4// Contact: info@arthiq.net | https://vedaksha.net
5
6//! # Vedākṣha
7//!
8//! Umbrella crate that re-exports every public sub-crate under a single
9//! dependency. Add `vedaksha` to your `Cargo.toml` and access the full
10//! engine through one import.
11//!
12//! ```toml
13//! [dependencies]
14//! vedaksha = "3"
15//! ```
16//!
17//! # v3.0.0 surface changes
18//!
19//! - `vedaksha::emit` is gone; the emitters now live at
20//! `vedaksha::graph::emitters` (the umbrella always enables the
21//! `emitters` feature on `vedaksha-graph`).
22//! - `vedaksha::locale` is gated by the `locale` feature on this crate.
23
24pub use vedaksha_astro as astro;
25pub use vedaksha_ephem_core as ephem;
26pub use vedaksha_graph as graph;
27pub use vedaksha_math as math;
28pub use vedaksha_vedic as vedic;
29
30/// Localization tables (planet/sign/nakshatra names in 7 languages).
31///
32/// Folded in from the standalone `vedaksha-locale` crate (v2.x).
33/// Enable via the `locale` feature.
34#[cfg(feature = "locale")]
35pub mod locale;
36
37/// Convenience re-exports for the most common entry points.
38pub mod prelude {
39 // Julian day conversion
40 pub use vedaksha_ephem_core::julian::calendar_to_jd;
41 pub use vedaksha_ephem_core::julian::jd_to_calendar;
42
43 // Ephemeris provider
44 pub use vedaksha_ephem_core::analytical::AnalyticalProvider;
45 pub use vedaksha_ephem_core::bodies::Body;
46 pub use vedaksha_ephem_core::coordinates::apparent_position;
47
48 // Chart computation
49 pub use vedaksha_astro::aspects::AspectType;
50 pub use vedaksha_astro::chart::{ChartConfig, ComputedChart, compute_chart};
51 pub use vedaksha_astro::dignity::RulershipScheme;
52 pub use vedaksha_astro::houses::HouseSystem;
53 pub use vedaksha_astro::sidereal::Ayanamsha;
54
55 // Vedic
56 pub use vedaksha_vedic::dasha;
57 pub use vedaksha_vedic::nakshatra;
58 pub use vedaksha_vedic::panchanga;
59}