Skip to content

Commit

Permalink
Bump cursive-core to 0.4.2 and cursive to 0.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Aug 3, 2024
1 parent 4faf55c commit 64540d6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cursive-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "cursive_core"
readme = "README.md"
repository = "https://github.com/gyscos/cursive"
version = "0.4.1"
version = "0.4.2"
edition = "2021"
rust-version = "1.61"
include = ["src/**/*", "LICENSE", "README.md"]
Expand Down
12 changes: 6 additions & 6 deletions cursive-core/src/style/effect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ use enum_map::{Enum, EnumMap};
use enumset::{EnumSet, EnumSetType};
use std::str::FromStr;

/// A concrete set of effects to enable.
///
/// Every missing effect should be disabled.
pub type ConcreteEffects = EnumSet<Effect>;

/// Text effect
#[allow(clippy::derived_hash_with_manual_eq)] // We do derive it through EnumSetType
#[derive(EnumSetType, Enum, Debug, Hash)]
Expand Down Expand Up @@ -170,11 +175,6 @@ impl std::ops::IndexMut<Effect> for Effects {
}
}

/// A concrete set of effects to enable.
///
/// Every missing effect should be disabled.
pub type ConcreteEffects = EnumSet<Effect>;

/// Describes what to do with an effect.
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
pub enum EffectStatus {
Expand All @@ -187,7 +187,7 @@ pub enum EffectStatus {
/// Keep the same effect status as the parent.
InheritParent,

/// Use the opposite state from the parent.
/// Use the opposite state from the parent (XOR).
OppositeParent,
}

Expand Down
6 changes: 5 additions & 1 deletion cursive-core/src/style/style_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ use enumset::EnumSet;
/// Combine a color and effects.
///
/// Represents any transformation that can be applied to text.
///
/// This is a "abstract" style, which can depend on the current theme, or on the previously active
/// style.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub struct Style {
/// Effects to apply.
Expand All @@ -21,7 +24,8 @@ pub struct Style {

/// Combine a concrete color and effects.
///
/// This is a rendered version of `Style` or `StyleType`, which does not depend on the current theme.
/// This is a rendered version of `Style` or `StyleType`, which does not depend on the current
/// theme or the previously active style.
#[derive(Clone, Copy, Default, Debug, PartialEq, Eq, Hash)]
pub struct ConcreteStyle {
/// Effect to apply.
Expand Down
11 changes: 9 additions & 2 deletions cursive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ license = "MIT"
name = "cursive"
readme = "README.md"
repository = "https://github.com/gyscos/cursive"
version = "0.21.0"
version = "0.21.1"
include = ["src/**/*", "LICENSE", "README.md"]

[package.metadata.docs.rs]
all-features = true
features = [
"doc-cfg",
"ansi", "toml", "markdown",
"builder",
"termion-backend",
"crossterm-backend",
"pancurses-backend",
]

[dependencies]
cursive_core = { path = "../cursive-core", version= "0.4.0"}
Expand Down

0 comments on commit 64540d6

Please sign in to comment.