Skip to content

Commit

Permalink
release, bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloso committed Jan 14, 2023
1 parent a263c49 commit 1cc19e4
Show file tree
Hide file tree
Showing 9 changed files with 192 additions and 134 deletions.
265 changes: 168 additions & 97 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pomsky = { version = "0.8.0", path = "../pomsky-lib" }
pomsky = { version = "0.9.0", path = "../pomsky-lib" }
criterion = { git = "https://github.com/bheisler/criterion.rs", branch = "version-0.4" }
melody_compiler = "0.18.1"

Expand Down
6 changes: 3 additions & 3 deletions pomsky-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky-bin"
description = "Compile pomsky expressions, a new regular expression language"
version = "0.8.0"
version = "0.9.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -21,7 +21,7 @@ path = "src/main.rs"
[dependencies]
atty = "0.2.14"
lexopt = "0.2.1"
supports-color = "1.3.0"
supports-color = "2.0.0"
helptext = { version = "0.1.0", path = "../helptext" }
serde_json = "1.0.91"
serde = { version = "1.0.152", features = ["derive"] }
Expand All @@ -31,7 +31,7 @@ version = "5.3.1"
features = ["fancy-no-backtrace"]

[dependencies.pomsky]
version = "0.8.1"
version = "0.9.0"
path = "../pomsky-lib"
features = ["dbg", "miette", "suggestions"]

Expand Down
35 changes: 11 additions & 24 deletions pomsky-bin/src/args/help.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use helptext::{sections, Help};
use supports_color::Stream;

const USAGE: Help = Help(sections![
"USAGE" {
Expand Down Expand Up @@ -123,36 +124,22 @@ Currently, the following warnings can be disabled:"]
]);

pub(crate) fn print_short_usage_and_help_err() {
let _ = USAGE.write(
&mut std::io::stderr().lock(),
false,
matches!(
supports_color::on_cached(atty::Stream::Stderr),
Some(supports_color::ColorLevel { has_basic: true, .. })
),
);
let _ = USAGE.write(&mut std::io::stderr().lock(), false, is_colored(Stream::Stderr));
}

pub(crate) fn print_help() {
let _ = HELP.write(
&mut std::io::stdout().lock(),
false,
matches!(
supports_color::on_cached(atty::Stream::Stdout),
Some(supports_color::ColorLevel { has_basic: true, .. })
),
);
let _ = HELP.write(&mut std::io::stdout().lock(), false, is_colored(Stream::Stdout));
}

pub(crate) fn print_long_help() {
let _ = HELP.write(
&mut std::io::stdout().lock(),
true,
matches!(
supports_color::on_cached(atty::Stream::Stdout),
Some(supports_color::ColorLevel { has_basic: true, .. })
),
);
let _ = HELP.write(&mut std::io::stdout().lock(), true, is_colored(Stream::Stdout));
}

fn is_colored(stream: Stream) -> bool {
matches!(
supports_color::on_cached(stream),
Some(supports_color::ColorLevel { has_basic: true, .. })
)
}

pub(crate) fn print_version() {
Expand Down
2 changes: 1 addition & 1 deletion pomsky-bin/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ macro_rules! efprintln {

pub(crate) fn efwriteln(segments: &[helptext::Segment]) {
let supports_color = matches!(
supports_color::on_cached(atty::Stream::Stderr),
supports_color::on_cached(supports_color::Stream::Stderr),
Some(supports_color::ColorLevel { has_basic: true, .. })
);

Expand Down
6 changes: 3 additions & 3 deletions pomsky-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky"
description = "A new regular expression language"
version = "0.8.1"
version = "0.9.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -21,7 +21,7 @@ dbg = ["pomsky-syntax/dbg"]
suggestions = ["pomsky-syntax/suggestions"]

[dependencies]
pomsky-syntax = { version = "0.8.0", path = "../pomsky-syntax" }
pomsky-syntax = { version = "0.9.0", path = "../pomsky-syntax" }
arbitrary = { version = "1.1.3", features = ["derive"], optional = true }
miette = { version = "5.3.1", features = ["fancy"], optional = true }

Expand All @@ -31,7 +31,7 @@ tokio = { version = "1.24.1", features = ["rt-multi-thread"] }
atty = "0.2.14"
once_cell = "1.14.0"
regex = "1.7.0"
regex-test = { path = "../regex-test", features = ["async"], default-features = false}
regex-test = { path = "../regex-test", features = ["async"], default-features = false }

[[test]]
name = "it"
Expand Down
4 changes: 2 additions & 2 deletions pomsky-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky-macro"
description = "Macro for converting pomsky expressions to regexes"
version = "0.8.0"
version = "0.9.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -19,4 +19,4 @@ default = []
diagnostics = []

[dependencies]
pomsky = { version = "0.8.1", path = "../pomsky-lib" }
pomsky = { version = "0.9.0", path = "../pomsky-lib" }
2 changes: 1 addition & 1 deletion pomsky-syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky-syntax"
description = "Parser for pomsky, a new regular expression language"
version = "0.8.0"
version = "0.9.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions pomsky-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = ["."]
name = "pomsky-wasm"
description = "A portable, modern regular expression language"
homepage = "https://pomsky-lang.org"
version = "0.8.0"
version = "0.9.0"
authors = ["Ludwig Stecher <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand All @@ -23,7 +23,7 @@ wasm-bindgen = "0.2.82"

console_error_panic_hook = { version = "0.1.7", optional = true }

pomsky = { version = "0.8.1", features = ["miette"] }
pomsky = { version = "0.9.0", features = ["miette"] }

miette = { version = "5.3.0", features = ["fancy"] }

Expand Down

0 comments on commit 1cc19e4

Please sign in to comment.