mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-07-17 15:56:57 +02:00
fixes and refactors
- use macros for the evals - move some space stuff into submodules - partial update to doctests
This commit is contained in:
parent
b44dc02f33
commit
e074712459
9 changed files with 464 additions and 380 deletions
41
src/lib.rs
41
src/lib.rs
|
|
@ -1,18 +1,22 @@
|
|||
#![feature(anonymous_lifetime_in_impl_trait)]
|
||||
#![feature(associated_type_defaults)]
|
||||
#![feature(const_default)]
|
||||
#![feature(const_option_ops)]
|
||||
//#![feature(associated_type_defaults)]
|
||||
//#![feature(const_default)]
|
||||
//#![feature(const_option_ops)]
|
||||
#![feature(const_precise_live_drops)]
|
||||
#![feature(const_trait_impl)]
|
||||
#![feature(impl_trait_in_assoc_type)]
|
||||
//#![feature(impl_trait_in_assoc_type)]
|
||||
#![feature(step_trait)]
|
||||
#![feature(trait_alias)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
#![feature(type_changing_struct_update)]
|
||||
//#![feature(trait_alias)]
|
||||
//#![feature(type_alias_impl_trait)]
|
||||
//#![feature(type_changing_struct_update)]
|
||||
pub extern crate atomic_float;
|
||||
pub extern crate palette;
|
||||
pub extern crate better_panic;
|
||||
pub extern crate unicode_width;
|
||||
#[cfg(feature = "sing")] pub extern crate jack;
|
||||
#[cfg(feature = "term")] pub extern crate ratatui;
|
||||
#[cfg(feature = "term")] pub extern crate crossterm;
|
||||
#[cfg(feature = "lang")] pub extern crate dizzle as lang;
|
||||
#[cfg(test)] #[macro_use] pub extern crate proptest;
|
||||
|
||||
pub(crate) use ::{
|
||||
|
|
@ -23,27 +27,30 @@ pub(crate) use ::{
|
|||
std::sync::atomic::{AtomicBool, AtomicUsize, Ordering::*},
|
||||
};
|
||||
|
||||
#[cfg(feature = "lang")] pub extern crate dizzle as lang;
|
||||
#[cfg(feature = "lang")] pub use ::dizzle::{self, Usually, Perhaps, impl_default};
|
||||
#[cfg(feature = "lang")]
|
||||
pub use ::dizzle::{Usually, Perhaps, impl_default};
|
||||
/// DSL builtins.
|
||||
#[cfg(feature = "lang")] pub mod eval;
|
||||
|
||||
/// Temporal dimension.
|
||||
#[cfg(feature = "time")] pub mod time;
|
||||
|
||||
/// Circuit breaker for main loop.
|
||||
#[cfg(feature = "play")] pub mod exit;
|
||||
/// Thread management.
|
||||
#[cfg(feature = "play")] pub mod task;
|
||||
|
||||
#[cfg(feature = "sing")] pub extern crate jack;
|
||||
/// Integration with JACK audio backend.
|
||||
#[cfg(feature = "sing")] pub mod sing;
|
||||
|
||||
/// Generic drawing utilities.
|
||||
#[cfg(feature = "draw")] pub mod draw;
|
||||
/// Spatial dimension.
|
||||
#[cfg(feature = "draw")] pub mod space;
|
||||
/// Color handling.
|
||||
#[cfg(feature = "draw")] pub mod color;
|
||||
|
||||
/// Text handling.
|
||||
#[cfg(feature = "text")] pub mod text;
|
||||
/// Terminal output.
|
||||
#[cfg(feature = "term")] pub mod term;
|
||||
/// Terminal keyboard input.
|
||||
#[cfg(feature = "term")] pub mod keys;
|
||||
#[cfg(feature = "term")] pub extern crate ratatui;
|
||||
#[cfg(feature = "term")] pub extern crate crossterm;
|
||||
|
||||
/// Define a trait an implement it for various mutation-enabled wrapper types. */
|
||||
#[macro_export] macro_rules! flex_trait_mut (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue