Skip to content

Commit df2db86

Browse files
authored
Bump edition to 2024 (#96)
1 parent ae7fa48 commit df2db86

File tree

26 files changed

+459
-300
lines changed

26 files changed

+459
-300
lines changed

Cargo.lock

+434-275
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component-generated/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "component-generated"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
description = "An example generated using the component template"
66
authors = ["Orhun Parmaksız <[email protected]>"]
77
build = "build.rs"

component-generated/src/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use tracing::{debug, info};
77

88
use crate::{
99
action::Action,
10-
components::{fps::FpsCounter, home::Home, Component},
10+
components::{Component, fps::FpsCounter, home::Home},
1111
config::Config,
1212
tui::{Event, Tui},
1313
};

component-generated/src/components.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use color_eyre::Result;
22
use crossterm::event::{KeyEvent, MouseEvent};
33
use ratatui::{
4-
layout::{Rect, Size},
54
Frame,
5+
layout::{Rect, Size},
66
};
77
use tokio::sync::mpsc::UnboundedSender;
88

component-generated/src/components/fps.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use std::time::Instant;
22

33
use color_eyre::Result;
44
use ratatui::{
5+
Frame,
56
layout::{Constraint, Layout, Rect},
67
style::{Style, Stylize},
78
text::Span,
89
widgets::Paragraph,
9-
Frame,
1010
};
1111

1212
use super::Component;

component-generated/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use derive_deref::{Deref, DerefMut};
88
use directories::ProjectDirs;
99
use lazy_static::lazy_static;
1010
use ratatui::style::{Color, Modifier, Style};
11-
use serde::{de::Deserializer, Deserialize};
11+
use serde::{Deserialize, de::Deserializer};
1212
use tracing::error;
1313

1414
use crate::{action::Action, app::Mode};

component-generated/src/logging.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use color_eyre::Result;
22
use tracing_error::ErrorLayer;
3-
use tracing_subscriber::{fmt, prelude::*, EnvFilter};
3+
use tracing_subscriber::{EnvFilter, fmt, prelude::*};
44

55
use crate::config;
66

component-generated/src/tui.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![allow(dead_code)] // Remove this once you start using the code
22

33
use std::{
4-
io::{stdout, Stdout},
4+
io::{Stdout, stdout},
55
ops::{Deref, DerefMut},
66
time::Duration,
77
};

component/template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "{{project-name | kebab_case}}"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
description = "{{project-description}}"
66
authors = ["{{authors}}"]
77
build = "build.rs"

component/template/src/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use tracing::{debug, info};
77

88
use crate::{
99
action::Action,
10-
components::{fps::FpsCounter, home::Home, Component},
10+
components::{Component, fps::FpsCounter, home::Home},
1111
config::Config,
1212
tui::{Event, Tui},
1313
};

component/template/src/components.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use color_eyre::Result;
22
use crossterm::event::{KeyEvent, MouseEvent};
33
use ratatui::{
4-
layout::{Rect, Size},
54
Frame,
5+
layout::{Rect, Size},
66
};
77
use tokio::sync::mpsc::UnboundedSender;
88

component/template/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use derive_deref::{Deref, DerefMut};
88
use directories::ProjectDirs;
99
use lazy_static::lazy_static;
1010
use ratatui::style::{Color, Modifier, Style};
11-
use serde::{de::Deserializer, Deserialize};
11+
use serde::{Deserialize, de::Deserializer};
1212
use tracing::error;
1313

1414
use crate::{action::Action, app::Mode};

component/template/src/logging.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use color_eyre::Result;
22
use tracing_error::ErrorLayer;
3-
use tracing_subscriber::{fmt, prelude::*, EnvFilter};
3+
use tracing_subscriber::{EnvFilter, fmt, prelude::*};
44

55
use crate::config;
66

component/template/src/tui.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![allow(dead_code)] // Remove this once you start using the code
22

33
use std::{
4-
io::{stdout, Stdout},
4+
io::{Stdout, stdout},
55
ops::{Deref, DerefMut},
66
time::Duration,
77
};

event-driven-async/template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{project-name}}"
33
version = "0.1.0"
44
authors = ["{{authors}}"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
crossterm = { version = "0.28.1", features = ["event-stream"] }

event-driven/template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{project-name}}"
33
version = "0.1.0"
44
authors = ["{{authors}}"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
crossterm = "0.28.1"

hello-world-generated/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "hello-world-generated"
33
version = "0.1.0"
44
authors = ["Orhun Parmaksız <[email protected]>"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
color-eyre = "0.6.3"

hello-world/template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{project-name}}"
33
version = "0.1.0"
44
authors = ["{{authors}}"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
color-eyre = "0.6.3"

simple-async-generated/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "simple-async-generated"
33
version = "0.1.0"
44
authors = ["Orhun Parmaksız <[email protected]>"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
color-eyre = "0.6.3"

simple-async-generated/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ use color_eyre::Result;
22
use crossterm::event::{Event, EventStream, KeyCode, KeyEvent, KeyEventKind, KeyModifiers};
33
use futures::{FutureExt, StreamExt};
44
use ratatui::{
5+
DefaultTerminal, Frame,
56
style::Stylize,
67
text::Line,
78
widgets::{Block, Paragraph},
8-
DefaultTerminal, Frame,
99
};
1010

1111
#[tokio::main]

simple-async/template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{project-name}}"
33
version = "0.1.0"
44
authors = ["{{authors}}"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
color-eyre = "0.6.3"

simple-async/template/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ use color_eyre::Result;
22
use crossterm::event::{Event, EventStream, KeyCode, KeyEvent, KeyEventKind, KeyModifiers};
33
use futures::{FutureExt, StreamExt};
44
use ratatui::{
5+
DefaultTerminal, Frame,
56
style::Stylize,
67
text::Line,
78
widgets::{Block, Paragraph},
8-
DefaultTerminal, Frame,
99
};
1010

1111
#[tokio::main]

simple-generated/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "simple-generated"
33
version = "0.1.0"
44
authors = ["Orhun Parmaksız <[email protected]>"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
crossterm = "0.28.1"

simple-generated/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use color_eyre::Result;
22
use crossterm::event::{self, Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers};
33
use ratatui::{
4+
DefaultTerminal, Frame,
45
style::Stylize,
56
text::Line,
67
widgets::{Block, Paragraph},
7-
DefaultTerminal, Frame,
88
};
99

1010
fn main() -> color_eyre::Result<()> {

simple/template/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{project-name}}"
33
version = "0.1.0"
44
authors = ["{{authors}}"]
55
license = "MIT"
6-
edition = "2021"
6+
edition = "2024"
77

88
[dependencies]
99
crossterm = "0.28.1"

simple/template/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use color_eyre::Result;
22
use crossterm::event::{self, Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers};
33
use ratatui::{
4+
DefaultTerminal, Frame,
45
style::Stylize,
56
text::Line,
67
widgets::{Block, Paragraph},
7-
DefaultTerminal, Frame,
88
};
99

1010
fn main() -> color_eyre::Result<()> {

0 commit comments

Comments
 (0)