Skip to content

Commit

Permalink
Merge pull request #121 from attila-lin/dev/dep
Browse files Browse the repository at this point in the history
chore: bump `supports-color` and rust-version to `1.70`
  • Loading branch information
jam1garner committed May 2, 2024
2 parents 0f32923 + e46d87a commit 74a37f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "owo-colors"
version = "4.0.0"
rust-version = "1.56"
rust-version = "1.70"
authors = ["jam1garner <8260240+jam1garner@users.noreply.github.com>"]
edition = "2018"
edition = "2021"
documentation = "https://docs.rs/owo-colors"
repository = "https://github.com/jam1garner/owo-colors"
description = "Zero-allocation terminal colors that'll make people go owo"
Expand All @@ -29,4 +29,4 @@ supports-colors = ["supports-color"]
alloc = []

[dependencies]
supports-color = { version = "2.0", optional = true }
supports-color = { version = "3.0.0", optional = true }
16 changes: 6 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
//! ```rust
//! use owo_colors::OwoColorize;
//!
//! fn main() {
//! // Foreground colors
//! println!("My number is {:#x}!", 10.green());
//! // Background colors
//! println!("My number is not {}!", 4.on_red());
//! }
//! // Foreground colors
//! println!("My number is {:#x}!", 10.green());
//! // Background colors
//! println!("My number is not {}!", 4.on_red());
//! ```
//!
//! ## Generically color
Expand All @@ -25,10 +23,8 @@
//! use owo_colors::OwoColorize;
//! use owo_colors::colors::*;
//!
//! fn main() {
//! // Generically color
//! println!("My number might be {}!", 4.fg::<Black>().bg::<Yellow>());
//! }
//! // Generically color
//! println!("My number might be {}!", 4.fg::<Black>().bg::<Yellow>());
//! ```
//!
//! ## Stylize
Expand Down

0 comments on commit 74a37f1

Please sign in to comment.