From 8afb675ae56124651bc7e98cd89869f8befc4726 Mon Sep 17 00:00:00 2001 From: Astrale Date: Thu, 31 Aug 2023 11:33:47 +0200 Subject: [PATCH] Release: 0.2.1#1817538 --- CHANGELOG.md | 7 ++++++- Cargo.lock | 18 +++++++++--------- Cargo.toml | 4 ++-- src/main.rs | 2 +- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 281266c..626a2dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Latest -- adds conditional formatting +# Release 0.2.1#1817538 +- adds conditional formatting, nested if else etc +- fix a bug where push_raw_indent was trimming lines +- improve behavior of formatting arguments in a breaking manner +- Some cleanups, nitpicks etc. + # Release 0.2.0 Features: diff --git a/Cargo.lock b/Cargo.lock index 3846353..5cc5d75 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "aho-corasick" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6748e8def348ed4d14996fa801f4122cd763fff530258cdc03f64b25f89d3a5a" +checksum = "0c378d78423fdad8089616f827526ee33c19f2fddbd5de1629152c9593ba4783" dependencies = [ "memchr", ] @@ -24,9 +24,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.6.0" +version = "1.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05" +checksum = "4c2f7349907b712260e64b0afe2f84692af14a454be26187d9df565c7f69266a" dependencies = [ "memchr", "serde", @@ -122,7 +122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" dependencies = [ "aho-corasick", - "bstr 1.6.0", + "bstr 1.6.2", "fnv", "log", "regex", @@ -198,9 +198,9 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "memchr" -version = "2.6.0" +version = "2.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76fc44e2588d5b436dbc3c6cf62aef290f90dab6235744a93dfe1cc18f451e2c" +checksum = "5486aed0026218e61b8a01d5fbd5a0a134649abb71a0e53b7bc088529dced86e" [[package]] name = "nu-ansi-term" @@ -504,7 +504,7 @@ dependencies = [ [[package]] name = "typstfmt" -version = "0.2.0" +version = "0.2.1" dependencies = [ "lexopt", "typstfmt_lib", @@ -512,7 +512,7 @@ dependencies = [ [[package]] name = "typstfmt_lib" -version = "0.2.0" +version = "0.2.1" dependencies = [ "globmatch", "insta", diff --git a/Cargo.toml b/Cargo.toml index ad0ca4e..72fba29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,11 +3,11 @@ members = ["lib"] resolver = "2" [workspace.package] -version = "0.2.0" +version = "0.2.1" edition = "2021" authors = ["Astrale "] rust-version = "1.56" -description = "A soon to be formatter for the typst lang" +description = "A formatter for Typst-lang with a future!" readme = "README.md" repository = "https://github.com/astrale-sharp/typstfmt" license = "MIT OR Apache-2.0" diff --git a/src/main.rs b/src/main.rs index 6e352a3..e0d1cea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use std::{ use lexopt::prelude::*; use typstfmt_lib::{format, Config}; -const VERSION: &str = "0.2.0#578fabc"; +const VERSION: &str = "0.2.1#1817538"; const CONFIG_PATH: &str = "typstfmt-config.toml"; const HELP: &str = r#"Format Typst code