Skip to content

Commit 91a78f4

Browse files
committed
Hide view::scroll behind unstable_scroll feature
1 parent 12ad66b commit 91a78f4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ markdown = ["pulldown-cmark"]
7878
ncurses-backend = ["ncurses", "maplit", "term_size"]
7979
pancurses-backend = ["pancurses", "maplit", "term_size"]
8080
termion-backend = ["termion"]
81+
unstable_scroll = []
8182

8283
[lib]
8384
name = "cursive"

src/view/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ mod view_trait;
5151
// Helper bases
5252
mod boxable;
5353
mod identifiable;
54+
#[cfg(feature = "unstable_scroll")]
5455
pub mod scroll;
56+
#[cfg(not(feature = "unstable_scroll"))]
57+
pub(crate) mod scroll;
58+
5559
mod scroll_base;
5660
mod scrollable;
5761

src/view/scroll/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Core mechanisms to implement scrolling.
22
//!
3+
//! *This module is still unstable and may go through breaking changes.*
4+
//!
35
//! This module defines [`ScrollCore`](crate::view::scroll::ScrollCore) and related traits.
46
//!
57
//! [`ScrollView`](crate::views::ScrollView) may be an easier way to add scrolling to an existing view.

0 commit comments

Comments
 (0)