File: remove-instability.patch

package info (click to toggle)
rust-ratatui 0.29.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,588 kB
  • sloc: sh: 18; makefile: 2
file content (141 lines) | stat: -rw-r--r-- 4,332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Forwarded: not-needed
Last-Update: 2023-07-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -374,8 +374,8 @@
 [dependencies.indoc]
 version = "2"
 
-[dependencies.instability]
-version = "0.3.1"
+#[dependencies.instability]
+#version = "0.3.1"
 
 [dependencies.itertools]
 version = "0.13"
--- a/src/backend/crossterm.rs
+++ b/src/backend/crossterm.rs
@@ -108,10 +108,10 @@
     }
 
     /// Gets the writer.
-    #[instability::unstable(
+    /*#[instability::unstable(
         feature = "backend-writer",
         issue = "https://github.com/ratatui/ratatui/pull/991"
-    )]
+    )]*/
     pub const fn writer(&self) -> &W {
         &self.writer
     }
@@ -120,10 +120,10 @@
     ///
     /// Note: writing to the writer may cause incorrect output after the write. This is due to the
     /// way that the Terminal implements diffing Buffers.
-    #[instability::unstable(
+    /*#[instability::unstable(
         feature = "backend-writer",
         issue = "https://github.com/ratatui/ratatui/pull/991"
-    )]
+    )]*/
     pub fn writer_mut(&mut self) -> &mut W {
         &mut self.writer
     }
--- a/src/backend/termion.rs
+++ b/src/backend/termion.rs
@@ -96,10 +96,10 @@
     }
 
     /// Gets the writer.
-    #[instability::unstable(
+    /*#[instability::unstable(
         feature = "backend-writer",
         issue = "https://github.com/ratatui/ratatui/pull/991"
-    )]
+    )]*/
     pub const fn writer(&self) -> &W {
         &self.writer
     }
@@ -107,10 +107,10 @@
     /// Gets the writer as a mutable reference.
     /// Note: writing to the writer may cause incorrect output after the write. This is due to the
     /// way that the Terminal implements diffing Buffers.
-    #[instability::unstable(
+    /*#[instability::unstable(
         feature = "backend-writer",
         issue = "https://github.com/ratatui/ratatui/pull/991"
-    )]
+    )]*/
     pub fn writer_mut(&mut self) -> &mut W {
         &mut self.writer
     }
--- a/src/terminal/frame.rs
+++ b/src/terminal/frame.rs
@@ -117,7 +117,7 @@
     /// # }
     /// ```
     #[allow(clippy::needless_pass_by_value)]
-    #[instability::unstable(feature = "widget-ref")]
+    //#[instability::unstable(feature = "widget-ref")]
     pub fn render_widget_ref<W: WidgetRef>(&mut self, widget: W, area: Rect) {
         widget.render_ref(area, self.buffer);
     }
@@ -185,7 +185,7 @@
     /// # }
     /// ```
     #[allow(clippy::needless_pass_by_value)]
-    #[instability::unstable(feature = "widget-ref")]
+    //#[instability::unstable(feature = "widget-ref")]
     pub fn render_stateful_widget_ref<W>(&mut self, widget: W, area: Rect, state: &mut W::State)
     where
         W: StatefulWidgetRef,
--- a/src/widgets.rs
+++ b/src/widgets.rs
@@ -320,7 +320,7 @@
 /// # }
 /// # }
 /// ```
-#[instability::unstable(feature = "widget-ref")]
+//#[instability::unstable(feature = "widget-ref")]
 pub trait WidgetRef {
     /// Draws the current state of the widget in the given buffer. That is the only method required
     /// to implement a custom widget.
@@ -432,7 +432,7 @@
 /// }
 /// # }
 /// ```
-#[instability::unstable(feature = "widget-ref")]
+//#[instability::unstable(feature = "widget-ref")]
 pub trait StatefulWidgetRef {
     /// State associated with the stateful widget.
     ///
--- a/src/widgets/paragraph.rs
+++ b/src/widgets/paragraph.rs
@@ -341,10 +341,10 @@
     /// assert_eq!(paragraph.line_count(20), 1);
     /// assert_eq!(paragraph.line_count(10), 2);
     /// ```
-    #[instability::unstable(
+    /*#[instability::unstable(
         feature = "rendered-line-info",
         issue = "https://github.com/ratatui/ratatui/issues/293"
-    )]
+    )]*/
     pub fn line_count(&self, width: u16) -> usize {
         if width < 1 {
             return 0;
@@ -397,10 +397,10 @@
     /// let paragraph = Paragraph::new("Hello World\nhi\nHello World!!!");
     /// assert_eq!(paragraph.line_width(), 14);
     /// ```
-    #[instability::unstable(
+    /*#[instability::unstable(
         feature = "rendered-line-info",
         issue = "https://github.com/ratatui/ratatui/issues/293"
-    )]
+    )]*/
     pub fn line_width(&self) -> usize {
         let width = self.text.iter().map(Line::width).max().unwrap_or_default();
         let (left, right) = self