1#![doc = include_str!("../BUILD-OPTIONS.md")]
8#![no_std]
9#![cfg_attr(
10 all(not(feature = "std"), feature = "alloc_handler"),
11 feature(alloc_error_handler)
12)]
13#![allow(unknown_lints)]
14#![allow(renamed_and_removed_lints)]
15#![allow(unexpected_cfgs)]
16
17pub use bindings::*;
18pub use error::*;
19
20#[cfg(any(esp32, esp32s2, esp32s3, esp32c5, esp32c6, esp32h2, esp32p4))]
22pub use pcnt::*;
23
24#[doc(hidden)]
25pub use build_time;
26#[doc(hidden)]
27pub use const_format;
28#[doc(hidden)]
29pub use patches::PatchesRef;
30
31#[cfg(feature = "std")]
32#[allow(unused_imports)]
33#[macro_use]
34extern crate std;
35
36#[cfg(feature = "alloc")]
37#[allow(unused_imports)]
38#[macro_use]
39extern crate alloc;
40
41mod alloc;
42#[cfg(esp_idf_version_at_least_5_1_0)]
43mod app_desc;
44mod error;
45mod panic;
46mod patches;
47#[cfg(any(esp32, esp32s2, esp32s3, esp32c5, esp32c6, esp32h2, esp32p4))]
48mod pcnt;
49
50mod start;
51
52#[allow(deprecated)]
62#[allow(unused)]
63#[cfg(feature = "std")]
64const ESP_IDF_TIME64_CHECK: ::std::os::espidf::raw::time_t = 0 as crate::time_t;
65#[allow(unused)]
66const ESP_IDF_TIME64_CHECK_LIBC: ::libc::time_t = 0 as crate::time_t;
67
68pub fn link_patches() -> PatchesRef {
73 patches::link_patches()
74}
75
76#[allow(clippy::all)]
77#[allow(unnecessary_transmutes)]
78#[allow(non_upper_case_globals)]
79#[allow(non_camel_case_types)]
80#[allow(non_snake_case)]
81#[allow(rustdoc::all)]
82#[allow(improper_ctypes)] #[allow(dead_code)]
84mod bindings {
85 #[cfg(any(esp32, esp32s2, esp32s3, esp32c5, esp32c6, esp32h2, esp32p4))]
86 use crate::pcnt::*;
87
88 include!(env!("EMBUILD_GENERATED_BINDINGS_FILE"));
89}