mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Add public re-exports of crates used in public api
This commit is contained in:
parent
efc7b3144b
commit
e2f5806deb
@ -25,11 +25,9 @@ enum-map = "0.6"
|
||||
enumset = "1.0.4"
|
||||
log = "0.4"
|
||||
owning_ref = "0.4"
|
||||
syn = "1.0"
|
||||
unicode-segmentation = "1"
|
||||
unicode-width = "0.1"
|
||||
xi-unicode = "0.3"
|
||||
libc = "0.2"
|
||||
crossbeam-channel = "0.5"
|
||||
lazy_static = "1"
|
||||
chrono = "0.4"
|
||||
|
@ -8,9 +8,6 @@
|
||||
//!
|
||||
//! [`cursive`]: https://docs.rs/cursive
|
||||
#![deny(missing_docs)]
|
||||
|
||||
pub use enumset;
|
||||
|
||||
macro_rules! new_default(
|
||||
($c:ident<$t:ident>) => {
|
||||
impl<$t> Default for $c<$t> {
|
||||
@ -36,6 +33,18 @@ macro_rules! new_default(
|
||||
};
|
||||
);
|
||||
|
||||
/// Re-export crates used in the public API
|
||||
pub mod reexports {
|
||||
pub use ahash;
|
||||
pub use chrono;
|
||||
pub use crossbeam_channel;
|
||||
pub use enumset;
|
||||
pub use log;
|
||||
|
||||
#[cfg(feature = "toml")]
|
||||
pub use toml;
|
||||
}
|
||||
|
||||
#[macro_use]
|
||||
pub mod utils;
|
||||
#[macro_use]
|
||||
|
@ -3,6 +3,8 @@
|
||||
//! Requires the `blt-backend` feature.
|
||||
#![cfg(feature = "bear-lib-terminal")]
|
||||
|
||||
pub use bear_lib_terminal;
|
||||
|
||||
use bear_lib_terminal::geometry::Size;
|
||||
use bear_lib_terminal::terminal::{self, state, Event as BltEvent, KeyCode};
|
||||
use bear_lib_terminal::Color as BltColor;
|
||||
|
@ -11,6 +11,8 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
pub use crossterm;
|
||||
|
||||
use crossterm::{
|
||||
cursor::{Hide, MoveTo, Show},
|
||||
event::{
|
||||
|
@ -7,10 +7,7 @@ use crate::event::{Event, Key};
|
||||
use crate::theme::{BaseColor, Color, ColorPair};
|
||||
use maplit::hashmap;
|
||||
|
||||
#[cfg(feature = "ncurses-backend")]
|
||||
pub mod n;
|
||||
|
||||
#[cfg(feature = "pancurses-backend")]
|
||||
pub mod pan;
|
||||
|
||||
// Use AHash instead of the slower SipHash
|
||||
|
@ -1,4 +1,7 @@
|
||||
//! Ncurses-specific backend.
|
||||
#![cfg(feature = "ncurses-backend")]
|
||||
pub use ncurses;
|
||||
|
||||
use log::{debug, warn};
|
||||
use ncurses::mmask_t;
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
//! Pancuses-specific backend.
|
||||
#![cfg(feature = "pancurses-backend")]
|
||||
|
||||
pub use pancurses;
|
||||
|
||||
use log::{debug, warn};
|
||||
|
||||
use std::cell::{Cell, RefCell};
|
||||
|
@ -1,5 +1,5 @@
|
||||
//! Structs representing output of puppet backend
|
||||
use crate::enumset::EnumSet;
|
||||
use crate::reexports::enumset::EnumSet;
|
||||
use crate::theme::ColorPair;
|
||||
use crate::theme::Effect;
|
||||
use crate::Vec2;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/// Some default values to Puppet backend.
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use crate::enumset::EnumSet;
|
||||
use crate::reexports::enumset::EnumSet;
|
||||
use crate::theme::ColorPair;
|
||||
use crate::theme::{Color, Effect};
|
||||
use crate::Vec2;
|
||||
|
@ -3,6 +3,8 @@
|
||||
//! Requires the `termion-backend` feature.
|
||||
#![cfg(feature = "termion")]
|
||||
|
||||
pub use termion;
|
||||
|
||||
use crossbeam_channel::{self, select, Receiver};
|
||||
use termion::color as tcolor;
|
||||
use termion::event::Event as TEvent;
|
||||
|
@ -64,8 +64,6 @@
|
||||
//! [`cursive::theme`]: ./theme/index.html
|
||||
#![deny(missing_docs)]
|
||||
|
||||
pub use cursive_core::enumset;
|
||||
|
||||
pub use cursive_core::*;
|
||||
|
||||
mod utf8;
|
||||
|
@ -1,5 +1,5 @@
|
||||
//! A simple stopwatch implementation.
|
||||
//! Also check out `clock-cli` (https://github.com/TianyiShi2001/cl!ock-cli-rs),
|
||||
//! Also check out [`clock-cli`](https://github.com/TianyiShi2001/cl!ock-cli-rs),
|
||||
//! which aims to implement a fully-fledged clock with stopwatch, countdown
|
||||
//! timer, and possibly more functionalities.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user