Skip to main content

temporal_capi/
lib.rs

1#![allow(unused)] // Until we add all the APIs
2#![warn(unused_imports)] // But we want to clean up imports
3#![allow(clippy::needless_lifetimes)] // Diplomat requires explicit lifetimes at times
4#![allow(clippy::too_many_arguments)] // We're mapping APIs with the same argument size
5#![allow(clippy::wrong_self_convention)] // Diplomat forces self conventions that may not always be ideal
6
7//! This crate contains the original definitions of [`temporal_rs`] APIs consumed by [Diplomat](https://github.com/rust-diplomat/diplomat)
8//! to generate FFI bindings. We currently generate bindings for C++ and `extern "C"` APIs.
9//!
10//! The APIs exposed by this crate are *not intended to be used from Rust* and as such this crate may change its Rust API
11//! across compatible semver versions. In contrast, the `extern "C"` APIs and all the language bindings are stable within
12//! the same major semver version.
13//!
14//! [`temporal_rs`]: http://crates.io/crates/temporal_rs
15
16#![no_std]
17
18extern crate alloc;
19
20pub mod calendar;
21pub mod duration;
22pub mod error;
23pub mod instant;
24pub mod iso;
25pub mod options;
26
27pub mod plain_date;
28pub mod plain_date_time;
29pub mod plain_month_day;
30pub mod plain_time;
31pub mod plain_year_month;
32pub mod zoned_date_time;
33
34pub mod time_zone;