Skip to content

Commit 2cb9f0c

Browse files
authored
refactor: rename opentui-rs to cortex-tui-framework and update dependencies (#543)
* refactor: rename opentui-rs to cortex-tui-framework - Renamed main directory from opentui-rs to cortex-tui-framework - Renamed all 8 subcrates: opentui-* to cortex-tui-* - Updated all Cargo.toml package names and dependency paths - Updated all Rust use statements (opentui_* to cortex_tui_*) - Updated documentation and comments (OpenTUI to Cortex TUI) * refactor: update workspace and src crates to use cortex-tui-framework * chore: update all dependencies to latest compatible versions * chore: remove redundant nested Cargo.lock
1 parent dc3e6a2 commit 2cb9f0c

76 files changed

Lines changed: 395 additions & 1160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 128 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ members = [
9292
# CLI - Auto-Update
9393
"src/cortex-update",
9494

95-
# CLI - OpenTUI Framework
96-
"opentui-rs",
97-
"opentui-rs/crates/opentui-core",
98-
"opentui-rs/crates/opentui-buffer",
99-
"opentui-rs/crates/opentui-terminal",
100-
"opentui-rs/crates/opentui-layout",
101-
"opentui-rs/crates/opentui-widgets",
102-
"opentui-rs/crates/opentui-input",
103-
"opentui-rs/crates/opentui-text",
104-
"opentui-rs/crates/opentui-syntax",
95+
# CLI - Cortex TUI Framework
96+
"cortex-tui-framework",
97+
"cortex-tui-framework/crates/cortex-tui-core",
98+
"cortex-tui-framework/crates/cortex-tui-buffer",
99+
"cortex-tui-framework/crates/cortex-tui-terminal",
100+
"cortex-tui-framework/crates/cortex-tui-layout",
101+
"cortex-tui-framework/crates/cortex-tui-widgets",
102+
"cortex-tui-framework/crates/cortex-tui-input",
103+
"cortex-tui-framework/crates/cortex-tui-text",
104+
"cortex-tui-framework/crates/cortex-tui-syntax",
105105

106106
# ==========================================================================
107107
# Desktop Application (GUI) - Tauri
@@ -236,16 +236,16 @@ cortex-shell-snapshot = { path = "src/cortex-shell-snapshot" }
236236
# Integrations
237237
cortex-slack = { path = "src/cortex-slack" }
238238

239-
# OpenTUI crates
240-
opentui = { path = "opentui-rs" }
241-
opentui-core = { path = "opentui-rs/crates/opentui-core" }
242-
opentui-buffer = { path = "opentui-rs/crates/opentui-buffer" }
243-
opentui-terminal = { path = "opentui-rs/crates/opentui-terminal" }
244-
opentui-layout = { path = "opentui-rs/crates/opentui-layout" }
245-
opentui-widgets = { path = "opentui-rs/crates/opentui-widgets" }
246-
opentui-input = { path = "opentui-rs/crates/opentui-input" }
247-
opentui-text = { path = "opentui-rs/crates/opentui-text" }
248-
opentui-syntax = { path = "opentui-rs/crates/opentui-syntax" }
239+
# Cortex TUI Framework crates
240+
cortex-tui-framework = { path = "cortex-tui-framework" }
241+
cortex-tui-core = { path = "cortex-tui-framework/crates/cortex-tui-core" }
242+
cortex-tui-buffer = { path = "cortex-tui-framework/crates/cortex-tui-buffer" }
243+
cortex-tui-terminal = { path = "cortex-tui-framework/crates/cortex-tui-terminal" }
244+
cortex-tui-layout = { path = "cortex-tui-framework/crates/cortex-tui-layout" }
245+
cortex-tui-widgets = { path = "cortex-tui-framework/crates/cortex-tui-widgets" }
246+
cortex-tui-input = { path = "cortex-tui-framework/crates/cortex-tui-input" }
247+
cortex-tui-text = { path = "cortex-tui-framework/crates/cortex-tui-text" }
248+
cortex-tui-syntax = { path = "cortex-tui-framework/crates/cortex-tui-syntax" }
249249

250250
# CLI - Async & concurrency
251251
tokio-stream = "0.1"

cortex-tui-framework/Cargo.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[package]
2+
name = "cortex-tui-framework"
3+
version = "0.1.0"
4+
edition = "2021"
5+
license = "MIT"
6+
description = "A high-performance terminal UI framework for Rust"
7+
repository = "https://github.com/example/cortex-tui-framework"
8+
authors = ["Cortex TUI Contributors"]
9+
10+
[dependencies]
11+
cortex-tui-core = { path = "crates/cortex-tui-core" }
12+
cortex-tui-buffer = { path = "crates/cortex-tui-buffer" }
13+
cortex-tui-terminal = { path = "crates/cortex-tui-terminal" }
14+
cortex-tui-layout = { path = "crates/cortex-tui-layout" }
15+
cortex-tui-widgets = { path = "crates/cortex-tui-widgets" }
16+
cortex-tui-input = { path = "crates/cortex-tui-input" }
17+
cortex-tui-text = { path = "crates/cortex-tui-text" }
18+
cortex-tui-syntax = { path = "crates/cortex-tui-syntax" }
19+
20+
# Part of parent orion workspace - no local [workspace] section
21+
22+
[profile.release]
23+
lto = true
24+
codegen-units = 1
25+
opt-level = 3
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "cortex-tui-buffer"
3+
version = "0.1.0"
4+
edition = "2021"
5+
license = "MIT"
6+
description = "Double-buffered terminal rendering for Cortex TUI"
7+
8+
[dependencies]
9+
cortex-tui-core = { path = "../cortex-tui-core" }
10+
smallvec = { workspace = true }

opentui-rs/crates/opentui-buffer/src/buffer.rs renamed to cortex-tui-framework/crates/cortex-tui-buffer/src/buffer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
use smallvec::SmallVec;
1010

11-
use opentui_core::{Color, Rect, Style};
11+
use cortex_tui_core::{Color, Rect, Style};
1212

1313
use crate::Cell;
1414

@@ -32,8 +32,8 @@ use crate::Cell;
3232
/// # Examples
3333
///
3434
/// ```
35-
/// use opentui_buffer::Buffer;
36-
/// use opentui_core::{Color, Rect, Style};
35+
/// use cortex_tui_buffer::Buffer;
36+
/// use cortex_tui_core::{Color, Rect, Style};
3737
///
3838
/// let mut buffer = Buffer::new(80, 24);
3939
///
@@ -633,7 +633,7 @@ impl Clone for Buffer {
633633
#[cfg(test)]
634634
mod tests {
635635
use super::*;
636-
use opentui_core::TextAttributes;
636+
use cortex_tui_core::TextAttributes;
637637

638638
#[test]
639639
fn test_buffer_creation() {

opentui-rs/crates/opentui-buffer/src/cell.rs renamed to cortex-tui-framework/crates/cortex-tui-buffer/src/cell.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! A [`Cell`] represents a single character position in a terminal buffer,
44
//! containing a character, colors, attributes, and display width information.
55
6-
use opentui_core::{Color, Style, TextAttributes};
6+
use cortex_tui_core::{Color, Style, TextAttributes};
77

88
/// A single cell in the terminal buffer.
99
///
@@ -22,8 +22,8 @@ use opentui_core::{Color, Style, TextAttributes};
2222
/// # Examples
2323
///
2424
/// ```
25-
/// use opentui_buffer::Cell;
26-
/// use opentui_core::{Color, TextAttributes};
25+
/// use cortex_tui_buffer::Cell;
26+
/// use cortex_tui_core::{Color, TextAttributes};
2727
///
2828
/// let cell = Cell::new('A')
2929
/// .with_fg(Color::WHITE)

opentui-rs/crates/opentui-buffer/src/diff.rs renamed to cortex-tui-framework/crates/cortex-tui-buffer/src/diff.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Default for DiffOptions {
186186
/// # Examples
187187
///
188188
/// ```
189-
/// use opentui_buffer::{Buffer, diff};
189+
/// use cortex_tui_buffer::{Buffer, diff};
190190
///
191191
/// let current = Buffer::new(80, 24);
192192
/// let mut next = Buffer::new(80, 24);
@@ -341,7 +341,7 @@ pub fn apply(diff: &BufferDiff, buffer: &mut Buffer) {
341341
#[cfg(test)]
342342
mod tests {
343343
use super::*;
344-
use opentui_core::Color;
344+
use cortex_tui_core::Color;
345345

346346
#[test]
347347
fn test_empty_diff() {

opentui-rs/crates/opentui-buffer/src/double_buffer.rs renamed to cortex-tui-framework/crates/cortex-tui-buffer/src/double_buffer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
use crate::{diff, Buffer, BufferDiff, Cell, DiffOptions};
99

10-
use opentui_core::Color;
10+
use cortex_tui_core::Color;
1111

1212
/// Double-buffered terminal rendering.
1313
///
@@ -21,8 +21,8 @@ use opentui_core::Color;
2121
/// # Examples
2222
///
2323
/// ```
24-
/// use opentui_buffer::{DoubleBuffer, diff::DiffOptions};
25-
/// use opentui_core::{Color, Style};
24+
/// use cortex_tui_buffer::{DoubleBuffer, diff::DiffOptions};
25+
/// use cortex_tui_core::{Color, Style};
2626
///
2727
/// let mut db = DoubleBuffer::new(80, 24);
2828
///

opentui-rs/crates/opentui-buffer/src/grapheme.rs renamed to cortex-tui-framework/crates/cortex-tui-buffer/src/grapheme.rs

File renamed without changes.

0 commit comments

Comments
 (0)