Hide view::scroll behind unstable_scroll feature

This commit is contained in:
Alexandre Bury 2019-03-11 00:03:54 -07:00
parent 12ad66badd
commit 91a78f402b
3 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,7 @@ markdown = ["pulldown-cmark"]
ncurses-backend = ["ncurses", "maplit", "term_size"]
pancurses-backend = ["pancurses", "maplit", "term_size"]
termion-backend = ["termion"]
unstable_scroll = []
[lib]
name = "cursive"

View File

@ -51,7 +51,11 @@ mod view_trait;
// Helper bases
mod boxable;
mod identifiable;
#[cfg(feature = "unstable_scroll")]
pub mod scroll;
#[cfg(not(feature = "unstable_scroll"))]
pub(crate) mod scroll;
mod scroll_base;
mod scrollable;

View File

@ -1,5 +1,7 @@
//! Core mechanisms to implement scrolling.
//!
//! *This module is still unstable and may go through breaking changes.*
//!
//! This module defines [`ScrollCore`](crate::view::scroll::ScrollCore) and related traits.
//!
//! [`ScrollView`](crate::views::ScrollView) may be an easier way to add scrolling to an existing view.