Skip to main content

vedaksha_ephem_core/
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//! # vedaksha-ephem-core
7//!
8//! Astronomy engine for the Vedākṣha platform providing:
9//!
10//! - **JPL SPK/DAF reader** — NAIF binary file parsing and Chebyshev
11//!   interpolation for high-precision planetary positions
12//! - **Coordinate transformations** — ICRS, ecliptic, equatorial frame conversions
13//! - **Julian Day** — calendar conversions and epoch utilities
14
15#![cfg_attr(not(feature = "std"), no_std)]
16#![deny(unsafe_code)]
17#![warn(clippy::all, clippy::pedantic)]
18#![allow(clippy::module_name_repetitions)]
19// Scientific coefficient tables (VSOP87, ELP/MPP02) use unseparated and
20// high-precision float literals imported verbatim from reference data.
21#![allow(clippy::unreadable_literal)]
22#![allow(clippy::excessive_precision)]
23#![allow(clippy::inconsistent_digit_grouping)]
24// Astronomy code: many similar variable names (a0/a1/a2), casts between
25// numeric types, and hand-tuned inline hints from reference algorithms.
26#![allow(clippy::similar_names)]
27#![allow(clippy::cast_possible_truncation)]
28#![allow(clippy::cast_precision_loss)]
29#![allow(clippy::cast_possible_wrap)]
30#![allow(clippy::cast_sign_loss)]
31#![allow(clippy::cast_lossless)]
32#![allow(clippy::too_many_arguments)]
33#![allow(clippy::too_many_lines)]
34#![allow(clippy::inline_always)]
35#![allow(clippy::approx_constant)]
36#![allow(clippy::doc_markdown)]
37#![allow(clippy::must_use_candidate)]
38#![allow(clippy::double_must_use)]
39#![allow(clippy::manual_range_contains)]
40#![allow(clippy::type_complexity)]
41#![allow(clippy::explicit_iter_loop)]
42#![allow(clippy::no_effect_underscore_binding)]
43
44#[cfg(not(feature = "std"))]
45extern crate alloc;
46
47pub mod aberration;
48pub mod analytical;
49pub mod bodies;
50#[cfg(feature = "std")]
51pub mod cache;
52pub mod coordinates;
53pub mod delta_t;
54pub mod error;
55pub mod jpl;
56pub mod julian;
57pub mod light_time;
58pub mod nodes;
59pub mod nutation;
60pub mod obliquity;
61pub mod precession;
62pub mod sidereal_time;