diff --git a/Cargo.toml b/Cargo.toml index 9e219096..9f7d9c56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/crates/anstream/benches/stream.rs b/crates/anstream/benches/stream.rs index a6a2b53d..3d6203e9 100644 --- a/crates/anstream/benches/stream.rs +++ b/crates/anstream/benches/stream.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] #![allow(clippy::unwrap_used)] use std::io::Write as _; diff --git a/crates/anstream/benches/strip.rs b/crates/anstream/benches/strip.rs index de30faa7..21ff89dd 100644 --- a/crates/anstream/benches/strip.rs +++ b/crates/anstream/benches/strip.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] #![allow(clippy::unwrap_used)] #[derive(Default)] diff --git a/crates/anstream/benches/wincon.rs b/crates/anstream/benches/wincon.rs index 5f41bbda..707e8f81 100644 --- a/crates/anstream/benches/wincon.rs +++ b/crates/anstream/benches/wincon.rs @@ -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(); diff --git a/crates/anstream/src/lib.rs b/crates/anstream/src/lib.rs index c3400d71..a496dae0 100644 --- a/crates/anstream/src/lib.rs +++ b/crates/anstream/src/lib.rs @@ -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)] diff --git a/crates/anstyle-ansi-term/src/lib.rs b/crates/anstyle-ansi-term/src/lib.rs index 2f2d1513..f3d0bbab 100644 --- a/crates/anstyle-ansi-term/src/lib.rs +++ b/crates/anstyle-ansi-term/src/lib.rs @@ -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)] diff --git a/crates/anstyle-crossterm/src/lib.rs b/crates/anstyle-crossterm/src/lib.rs index d3305598..ba844447 100644 --- a/crates/anstyle-crossterm/src/lib.rs +++ b/crates/anstyle-crossterm/src/lib.rs @@ -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)] diff --git a/crates/anstyle-git/src/lib.rs b/crates/anstyle-git/src/lib.rs index ef13479c..fb602557 100644 --- a/crates/anstyle-git/src/lib.rs +++ b/crates/anstyle-git/src/lib.rs @@ -12,6 +12,7 @@ //! ``` #![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![warn(missing_docs)] #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] diff --git a/crates/anstyle-lossy/src/lib.rs b/crates/anstyle-lossy/src/lib.rs index f9bd6bd4..e0e868e1 100644 --- a/crates/anstyle-lossy/src/lib.rs +++ b/crates/anstyle-lossy/src/lib.rs @@ -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)] diff --git a/crates/anstyle-ls/src/lib.rs b/crates/anstyle-ls/src/lib.rs index ff2f9eb0..d185368f 100644 --- a/crates/anstyle-ls/src/lib.rs +++ b/crates/anstyle-ls/src/lib.rs @@ -9,6 +9,7 @@ //! ``` #![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![warn(missing_docs)] #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] diff --git a/crates/anstyle-owo-colors/src/lib.rs b/crates/anstyle-owo-colors/src/lib.rs index e080891a..4e9625f1 100644 --- a/crates/anstyle-owo-colors/src/lib.rs +++ b/crates/anstyle-owo-colors/src/lib.rs @@ -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)] diff --git a/crates/anstyle-parse/benches/parse.rs b/crates/anstyle-parse/benches/parse.rs index 3cb44580..92d7f668 100644 --- a/crates/anstyle-parse/benches/parse.rs +++ b/crates/anstyle-parse/benches/parse.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use std::hint::black_box; use anstyle_parse::DefaultCharAccumulator; diff --git a/crates/anstyle-parse/src/lib.rs b/crates/anstyle-parse/src/lib.rs index 76c6cd6b..117a1842 100644 --- a/crates/anstyle-parse/src/lib.rs +++ b/crates/anstyle-parse/src/lib.rs @@ -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)] diff --git a/crates/anstyle-query/src/lib.rs b/crates/anstyle-query/src/lib.rs index 6b44d674..cee820d5 100644 --- a/crates/anstyle-query/src/lib.rs +++ b/crates/anstyle-query/src/lib.rs @@ -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)] diff --git a/crates/anstyle-roff/src/lib.rs b/crates/anstyle-roff/src/lib.rs index 7a43ae7d..803b78f8 100644 --- a/crates/anstyle-roff/src/lib.rs +++ b/crates/anstyle-roff/src/lib.rs @@ -3,6 +3,7 @@ //! roff output. #![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![warn(missing_docs)] #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] diff --git a/crates/anstyle-svg/src/lib.rs b/crates/anstyle-svg/src/lib.rs index edf00a7a..12b7f097 100644 --- a/crates/anstyle-svg/src/lib.rs +++ b/crates/anstyle-svg/src/lib.rs @@ -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)] diff --git a/crates/anstyle-syntect/src/lib.rs b/crates/anstyle-syntect/src/lib.rs index d3baae75..083209a8 100644 --- a/crates/anstyle-syntect/src/lib.rs +++ b/crates/anstyle-syntect/src/lib.rs @@ -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)] diff --git a/crates/anstyle-termcolor/src/lib.rs b/crates/anstyle-termcolor/src/lib.rs index baa63b51..e6b8c4b9 100644 --- a/crates/anstyle-termcolor/src/lib.rs +++ b/crates/anstyle-termcolor/src/lib.rs @@ -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)] diff --git a/crates/anstyle-wincon/src/lib.rs b/crates/anstyle-wincon/src/lib.rs index 1427f0f8..52327b14 100644 --- a/crates/anstyle-wincon/src/lib.rs +++ b/crates/anstyle-wincon/src/lib.rs @@ -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)] diff --git a/crates/anstyle-yansi/src/lib.rs b/crates/anstyle-yansi/src/lib.rs index 84e8cc7f..2b0d254a 100644 --- a/crates/anstyle-yansi/src/lib.rs +++ b/crates/anstyle-yansi/src/lib.rs @@ -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)] diff --git a/crates/anstyle/src/lib.rs b/crates/anstyle/src/lib.rs index e1d4946d..3ce6a842 100644 --- a/crates/anstyle/src/lib.rs +++ b/crates/anstyle/src/lib.rs @@ -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)] diff --git a/crates/colorchoice-clap/src/lib.rs b/crates/colorchoice-clap/src/lib.rs index 49532b24..8ba9ffa7 100644 --- a/crates/colorchoice-clap/src/lib.rs +++ b/crates/colorchoice-clap/src/lib.rs @@ -24,6 +24,7 @@ //! ``` #![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![warn(missing_docs)] #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] diff --git a/crates/colorchoice/src/lib.rs b/crates/colorchoice/src/lib.rs index 82bdd337..76120efa 100644 --- a/crates/colorchoice/src/lib.rs +++ b/crates/colorchoice/src/lib.rs @@ -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)]