#![deny(warnings)]
#![forbid(unsafe_code, unused_variables)]
#![deny(clippy::pedantic, clippy::nursery)]
#![deny(clippy::as_conversions)]
#![allow(clippy::module_name_repetitions)]
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(not(feature = "std"))]
pub mod prelude {
pub use alloc::{
boxed::Box,
collections::{BTreeMap, BTreeSet},
rc::Rc,
vec::Vec,
};
pub use core::cell::RefCell;
}
#[cfg(feature = "std")]
pub mod prelude {
pub use std::{
cell::RefCell,
collections::{BTreeMap, BTreeSet},
rc::Rc,
vec::Vec,
};
}
pub use core::*;
pub use runtime::*;
#[cfg(feature = "tracing")]
pub mod tracing;
#[cfg(feature = "tracing")]
macro_rules! event {
($x:expr) => {
use crate::tracing::Event::*;
crate::tracing::with(|listener| listener.event($x));
};
}
#[cfg(not(feature = "tracing"))]
macro_rules! event {
($x:expr) => {};
}
pub mod backend;
pub mod core;
pub mod executor;
pub mod gasometer;
pub mod maybe_borrowed;
pub mod runtime;