-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: make component formatting more standard
- Reformat everything to 4 spaces and 100 characters per line - Remove the rust-toolchain.toml file - Remove the .rustfmt.toml file which had many unstable options - hard code the crossterm_io to use stdout instead of making this an option. Users can change this easily if they want to use stderr, and not prompting for it simplifies the template
- Loading branch information
Showing
17 changed files
with
1,193 additions
and
1,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
[values] | ||
gh-username = "ratatui" | ||
project-description = "Example of ratatui template" | ||
msrv = "nightly" | ||
use_gitserver = false | ||
crossterm_io = "stderr" | ||
use_rustfmt = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
[values] | ||
gh-username = "kdheepak" | ||
project-description = "Example of ratatui template" | ||
msrv = "stable" | ||
use_gitserver = false | ||
crossterm_io = "stderr" | ||
use_rustfmt = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
vergen::EmitBuilder::builder().all_build().all_git().emit()?; | ||
Ok(()) | ||
vergen::EmitBuilder::builder() | ||
.all_build() | ||
.all_git() | ||
.emit()?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
use std::{fmt, string::ToString}; | ||
|
||
use serde::{ | ||
de::{self, Deserializer, Visitor}, | ||
Deserialize, Serialize, | ||
de::{self, Deserializer, Visitor}, | ||
Deserialize, Serialize, | ||
}; | ||
use strum::Display; | ||
|
||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Display, Deserialize)] | ||
pub enum Action { | ||
Tick, | ||
Render, | ||
Resize(u16, u16), | ||
Suspend, | ||
Resume, | ||
Quit, | ||
ClearScreen, | ||
Error(String), | ||
Help, | ||
Tick, | ||
Render, | ||
Resize(u16, u16), | ||
Suspend, | ||
Resume, | ||
Quit, | ||
ClearScreen, | ||
Error(String), | ||
Help, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.