Skip to content

Commit

Permalink
0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Colonial-Dev committed Sep 13, 2024
1 parent f9bd01a commit 5528f3d
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 171 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- The `theme` and `html` features are no longer mutually dependent.
- (Improvement) - a new `Terminal` formatter (using the `termcolor` crate) has been added. (@guilhermeprokisch)
- Updated `tree-sitter` to `0.23.0`. (@leandrocp)
- Replace `once_cell` dependency with `std::sync::LazyLock`.
- Update `ahash` and `toml` dependencies.
- Added languages:
- Fish (shell)
- Julia
Expand Down
13 changes: 3 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "inkjet"
version = "0.10.5"
version = "0.11.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Colonial-Dev/inkjet/"
Expand Down Expand Up @@ -28,7 +28,6 @@ development = ["dep:syn", "dep:proc-macro2", "dep:quote", "dep:prettyplease", "d
all_languages = [
"language-ada",
"language-asm",
"language-astro",
"language-awk",
"language-bash",
"language-bibtex",
Expand All @@ -38,7 +37,6 @@ all_languages = [
"language-capnp",
"language-clojure",
"language-c-sharp",
"language-commonlisp",
"language-cpp",
"language-css",
"language-cue",
Expand All @@ -62,7 +60,6 @@ all_languages = [
"language-hcl",
"language-heex",
"language-html",
"language-iex",
"language-ini",
"language-java",
"language-javascript",
Expand Down Expand Up @@ -112,7 +109,6 @@ all_languages = [

language-ada = []
language-asm = []
language-astro = []
language-awk = []
language-bash = []
language-bibtex = []
Expand All @@ -122,7 +118,6 @@ language-c = []
language-capnp = []
language-clojure = []
language-c-sharp = []
language-commonlisp = []
language-cpp = []
language-css = []
language-cue = []
Expand All @@ -146,7 +141,6 @@ language-haskell = []
language-hcl = []
language-heex = []
language-html = []
language-iex = []
language-ini = []
language-java = []
language-javascript = []
Expand Down Expand Up @@ -194,14 +188,13 @@ language-yaml = []
language-zig = []

[dependencies]
once_cell = "1.18.0"
thiserror = "1.0.44"
tree-sitter = "0.23.0"
tree-sitter-highlight = "0.23.0"

# Theme API
ahash = { version = "0.8.3", optional = true }
toml = { version = "0.7", optional = true }
ahash = { version = "0.8.11", optional = true }
toml = { version = "0.8", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }

# HTML formatters
Expand Down
4 changes: 2 additions & 2 deletions build/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub fn language_module_def(lang: &Language) -> TokenStream {
quote::quote! {
#[cfg(feature = #feature)]
pub mod #name {
use once_cell::sync::Lazy;
use std::sync::LazyLock;
use tree_sitter::Language;
use tree_sitter_highlight::HighlightConfiguration;

Expand All @@ -181,7 +181,7 @@ pub fn language_module_def(lang: &Language) -> TokenStream {
pub fn #ts_ffi() -> Language;
}

pub static CONFIG: Lazy<HighlightConfiguration> = Lazy::new(|| {
pub static CONFIG: LazyLock<HighlightConfiguration> = LazyLock::new(|| {
let mut config = HighlightConfiguration::new(
unsafe { #ts_ffi() },
#hl_config_name,
Expand Down
Loading

0 comments on commit 5528f3d

Please sign in to comment.