Skip to content

Commit

Permalink
Merge pull request #186 from epage/template
Browse files Browse the repository at this point in the history
chore: Update from _rust/main template
  • Loading branch information
epage authored Apr 1, 2024
2 parents 7b9076b + 196d3b7 commit ed1a598
Show file tree
Hide file tree
Showing 23 changed files with 18 additions and 9 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ include = [
"examples/**/*"
]

[workspace.dependencies]

[workspace.lints.rust]
missing_docs = "warn"
rust_2018_idioms = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
Expand Down
1 change: 0 additions & 1 deletion crates/anstream/benches/stream.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![allow(clippy::unwrap_used)]

use std::io::Write as _;
Expand Down
1 change: 0 additions & 1 deletion crates/anstream/benches/strip.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
#![allow(clippy::unwrap_used)]

#[derive(Default)]
Expand Down
2 changes: 0 additions & 2 deletions crates/anstream/benches/wincon.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(missing_docs)]

#[divan::bench(args = DATA)]
fn nop(data: &Data) -> Vec<(anstyle::Style, String)> {
let mut state = anstream::adapter::WinconBytes::new();
Expand Down
1 change: 1 addition & 0 deletions crates/anstream/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
//! And this will correctly handle piping to a file, etc
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-ansi-term/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Convert between [`ansi_term`](https://lib.rs/ansi_term) and generic styling types
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-crossterm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Convert between [`crossterm`](https://lib.rs/crossterm) and [generic styling types][anstyle]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-git/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//! ```
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-lossy/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Lossy conversion between ANSI Color Codes
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-ls/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//! ```
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-owo-colors/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Convert between [owo-colors](https://lib.rs/owo-colors) and generic styling types
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 0 additions & 1 deletion crates/anstyle-parse/benches/parse.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(missing_docs)]
use std::hint::black_box;

use anstyle_parse::DefaultCharAccumulator;
Expand Down
2 changes: 1 addition & 1 deletion crates/anstyle-parse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
//! all states.
//!
//! [Paul Williams' ANSI parser state machine]: https://vt100.net/emu/dec_ansi_parser
#![allow(missing_docs)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![allow(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-query/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Low level terminal capability lookups
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-roff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! roff output.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-svg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//! ![demo of supported styles](https://raw.githubusercontent.com/rust-cli/anstyle/main/crates/anstyle-svg/tests/rainbow.svg "Example output")
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-syntect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! [generic styling types][anstyle::Style]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-termcolor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Convert between [termcolor](https://lib.rs/termcolor) and [generic styling types][anstyle]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-wincon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//! - More focused, smaller
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-yansi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Convert between [yansi](https://lib.rs/yansi) and generic styling types
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/anstyle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/colorchoice-clap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//! ```
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down
1 change: 1 addition & 0 deletions crates/colorchoice/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![cfg_attr(not(test), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

Expand Down

0 comments on commit ed1a598

Please sign in to comment.