git.delta.rocks / jrsonnet / refs/commits / b44186aaaf3a

difftreelog

chore(slop) cargo metadata

wytvqwnwYaroslav Bolyukin2026-05-05parent: #50afc8a.patch.diff
in: master

17 files changed

modifiedcmds/jrsonnet-deps/Cargo.tomldiffbeforeafterboth
--- a/cmds/jrsonnet-deps/Cargo.toml
+++ b/cmds/jrsonnet-deps/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-deps"
-description = "List dependencies of a jsonnet file"
+description = "Command-line tool that lists imports of a jsonnet file"
+keywords = ["jsonnet", "dependencies", "cli"]
+categories = ["command-line-utilities"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcmds/jrsonnet-fmt/Cargo.tomldiffbeforeafterboth
--- a/cmds/jrsonnet-fmt/Cargo.toml
+++ b/cmds/jrsonnet-fmt/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-fmt"
-description = "Jrsonnet code formatter CLI"
+description = "Command-line jsonnet code formatter"
+keywords = ["jsonnet", "formatter", "cli"]
+categories = ["command-line-utilities", "development-tools"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcmds/jrsonnet/Cargo.tomldiffbeforeafterboth
--- a/cmds/jrsonnet/Cargo.toml
+++ b/cmds/jrsonnet/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet"
-description = "Rust jsonnet implementation"
+description = "Rust implementation of the jsonnet command-line interpreter"
+keywords = ["jsonnet", "json", "config", "cli"]
+categories = ["command-line-utilities", "config", "template-engine"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-cli/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-cli/Cargo.toml
+++ b/crates/jrsonnet-cli/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-cli"
-description = "Utilities for building jrsonnet CLIs"
+description = "Reusable clap-based building blocks for jrsonnet command-line tools"
+keywords = ["jsonnet", "cli", "clap"]
+categories = ["command-line-interface"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-evaluator/Cargo.tomldiffbeforeafterboth
before · crates/jrsonnet-evaluator/Cargo.toml
1[package]2name = "jrsonnet-evaluator"3description = "jsonnet interpreter"4authors.workspace = true5edition.workspace = true6license.workspace = true7repository.workspace = true8version.workspace = true910build = "build.rs"1112[lints]13workspace = true1415[features]16default = ["explaining-traces", "ir-parser", "wasm-bindgen"]17# Rustc-like trace visualization18explaining-traces = ["hi-doc"]19# Allows library authors to throw custom errors20anyhow-error = ["anyhow"]21# Use hand-written recursive descent parser22ir-parser = ["dep:jrsonnet-ir-parser"]23# Use PEG parser24peg-parser = ["dep:jrsonnet-peg-parser"]2526# Allows to preserve field order in objects27exp-preserve-order = []28# Implements field destructuring29exp-destruct = [30  "jrsonnet-peg-parser?/exp-destruct",31  "jrsonnet-ir-parser?/exp-destruct",32]33# Iteration over objects yields [key, value] elements34exp-object-iteration = []35# Bigint type36exp-bigint = ["num-bigint", "jrsonnet-types/exp-bigint"]37# obj?.field, obj?.['field']38exp-null-coaelse = [39  "jrsonnet-peg-parser?/exp-null-coaelse",40  "jrsonnet-ir-parser?/exp-null-coaelse",41]42wasm-bindgen = ["dep:wasm-bindgen"]4344[dependencies]45jrsonnet-interner.workspace = true46jrsonnet-ir.workspace = true47jrsonnet-peg-parser = { workspace = true, optional = true }48jrsonnet-ir-parser = { workspace = true, optional = true }49jrsonnet-types.workspace = true50jrsonnet-macros.workspace = true51jrsonnet-gcmodule.workspace = true5253pathdiff.workspace = true54static_assertions.workspace = true5556rustc-hash.workspace = true5758thiserror.workspace = true59# Friendly errors60strsim.workspace = true6162serde.workspace = true6364anyhow = { workspace = true, optional = true }65# Better explaining traces66hi-doc = { workspace = true, optional = true }67# Bigint68num-bigint = { workspace = true, features = ["serde"], optional = true }6970stacker.workspace = true71educe = { workspace = true, features = [72  "Clone",73  "Debug",74  "Eq",75  "Hash",76  "PartialEq",77] }78smallvec.workspace = true79drop_bomb.workspace = true80wasm-bindgen = { workspace = true, optional = true }8182[build-dependencies]83rustversion.workspace = true8485[dev-dependencies]86insta.workspace = true87strip-ansi-escapes.workspace = true
after · crates/jrsonnet-evaluator/Cargo.toml
1[package]2name = "jrsonnet-evaluator"3description = "Rust implementation of the jsonnet language interpreter"4keywords = ["jsonnet", "interpreter", "config"]5categories = ["compilers", "template-engine", "config"]6readme = "README.adoc"7authors.workspace = true8edition.workspace = true9license.workspace = true10repository.workspace = true11version.workspace = true1213build = "build.rs"1415[lints]16workspace = true1718[features]19default = ["explaining-traces", "ir-parser", "wasm-bindgen"]20# Rustc-like trace visualization21explaining-traces = ["hi-doc"]22# Allows library authors to throw custom errors23anyhow-error = ["anyhow"]24# Use hand-written recursive descent parser25ir-parser = ["dep:jrsonnet-ir-parser"]26# Use PEG parser27peg-parser = ["dep:jrsonnet-peg-parser"]2829# Allows to preserve field order in objects30exp-preserve-order = []31# Implements field destructuring32exp-destruct = [33  "jrsonnet-peg-parser?/exp-destruct",34  "jrsonnet-ir-parser?/exp-destruct",35]36# Iteration over objects yields [key, value] elements37exp-object-iteration = []38# Bigint type39exp-bigint = ["num-bigint", "jrsonnet-types/exp-bigint"]40# obj?.field, obj?.['field']41exp-null-coaelse = [42  "jrsonnet-peg-parser?/exp-null-coaelse",43  "jrsonnet-ir-parser?/exp-null-coaelse",44]45wasm-bindgen = ["dep:wasm-bindgen"]4647[dependencies]48jrsonnet-interner.workspace = true49jrsonnet-ir.workspace = true50jrsonnet-peg-parser = { workspace = true, optional = true }51jrsonnet-ir-parser = { workspace = true, optional = true }52jrsonnet-types.workspace = true53jrsonnet-macros.workspace = true54jrsonnet-gcmodule.workspace = true5556pathdiff.workspace = true57static_assertions.workspace = true5859rustc-hash.workspace = true6061thiserror.workspace = true62# Friendly errors63strsim.workspace = true6465serde.workspace = true6667anyhow = { workspace = true, optional = true }68# Better explaining traces69hi-doc = { workspace = true, optional = true }70# Bigint71num-bigint = { workspace = true, features = ["serde"], optional = true }7273stacker.workspace = true74educe = { workspace = true, features = [75  "Clone",76  "Debug",77  "Eq",78  "Hash",79  "PartialEq",80] }81smallvec.workspace = true82drop_bomb.workspace = true83wasm-bindgen = { workspace = true, optional = true }8485[build-dependencies]86rustversion.workspace = true8788[dev-dependencies]89insta.workspace = true90strip-ansi-escapes.workspace = true
modifiedcrates/jrsonnet-evaluator/src/import.rsdiffbeforeafterboth
--- a/crates/jrsonnet-evaluator/src/import.rs
+++ b/crates/jrsonnet-evaluator/src/import.rs
@@ -9,7 +9,6 @@
 
 use fs::File;
 use jrsonnet_gcmodule::Acyclic;
-use jrsonnet_interner::IBytes;
 use jrsonnet_ir::{
 	IStr, SourceDefaultIgnoreJpath, SourceDirectory, SourceFifo, SourceFile, SourcePath,
 };
@@ -160,10 +159,14 @@
 			path.canonicalize().map_err(|e| ImportIo(e.to_string()))?,
 		))));
 	}
-	let ty = meta.file_type();
 	#[cfg(unix)]
 	{
 		use std::os::unix::fs::FileTypeExt;
+
+		use jrsonnet_interner::IBytes;
+
+		let ty = meta.file_type();
+
 		if ty.is_fifo() {
 			let file = fs::read(path).map_err(|e| ImportIo(format!("FIFO read failed: {e}")))?;
 			return Ok(Some(SourcePath::new(SourceFifo(
modifiedcrates/jrsonnet-formatter/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-formatter/Cargo.toml
+++ b/crates/jrsonnet-formatter/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-formatter"
-description = "Jrsonnet code formatter"
+description = "Jsonnet source code formatter library"
+keywords = ["jsonnet", "formatter"]
+categories = ["development-tools"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-interner/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-interner/Cargo.toml
+++ b/crates/jrsonnet-interner/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-interner"
-description = "Jrsonnet string interning"
+description = "String interner used by jrsonnet"
+keywords = ["jsonnet", "interner", "string"]
+categories = ["data-structures", "memory-management"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-ir-parser/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-ir-parser/Cargo.toml
+++ b/crates/jrsonnet-ir-parser/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-ir-parser"
-description = "Jrsonnet hand-rolled parser which parses source directly into IR"
+description = "Hand-rolled recursive-descent parser that produces jrsonnet IR directly"
+keywords = ["jsonnet", "parser"]
+categories = ["parser-implementations"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-ir/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-ir/Cargo.toml
+++ b/crates/jrsonnet-ir/Cargo.toml
@@ -1,6 +1,9 @@
 [package]
 name = "jrsonnet-ir"
-description = "jsonnet language parser and AST"
+description = "Intermediate representation for the jsonnet language used by jrsonnet"
+keywords = ["jsonnet", "ir", "ast"]
+categories = ["compilers"]
+readme = "README.adoc"
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-lexer/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-lexer/Cargo.toml
+++ b/crates/jrsonnet-lexer/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-lexer"
-description = "Jrsonnet lexer shared between rowan and hand-rolled parser"
+description = "Jsonnet lexer shared between the rowan-based and hand-rolled jrsonnet parsers"
+keywords = ["jsonnet", "lexer"]
+categories = ["parser-implementations"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-macros/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-macros/Cargo.toml
+++ b/crates/jrsonnet-macros/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-macros"
-description = "Macros to reduce boilerplate in jrsonnet-evaluator usage"
+description = "Procedural macros to reduce boilerplate in jrsonnet-evaluator usage"
+keywords = ["jsonnet", "macros"]
+categories = ["development-tools::procedural-macro-helpers"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-peg-parser/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-peg-parser/Cargo.toml
+++ b/crates/jrsonnet-peg-parser/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-peg-parser"
-description = "Legacy peg-based parser for jrsonnet"
+description = "Legacy PEG-based parser producing jrsonnet IR"
+keywords = ["jsonnet", "parser", "peg"]
+categories = ["parser-implementations"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-rowan-parser/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-rowan-parser/Cargo.toml
+++ b/crates/jrsonnet-rowan-parser/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-rowan-parser"
-description = "Rowan-based CST for jrsonnet"
+description = "Rowan-based concrete syntax tree parser for jsonnet, suitable for tooling and LSP"
+keywords = ["jsonnet", "parser", "rowan", "cst"]
+categories = ["parser-implementations"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-rowan-parser/src/ast.rsdiffbeforeafterboth
--- a/crates/jrsonnet-rowan-parser/src/ast.rs
+++ b/crates/jrsonnet-rowan-parser/src/ast.rs
@@ -77,9 +77,6 @@
 
 	use super::{AstChildren, AstNode, AstToken, SyntaxKind, SyntaxNode, SyntaxToken};
 
-	pub fn child<N: AstNode>(parent: &SyntaxNode) -> Option<N> {
-		parent.children().find_map(N::cast)
-	}
 	pub fn token_child<N: AstToken>(parent: &SyntaxNode) -> Option<N> {
 		parent.children_with_tokens().find_map(|n| match n {
 			rowan::NodeOrToken::Node(_) => None,
modifiedcrates/jrsonnet-stdlib/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-stdlib/Cargo.toml
+++ b/crates/jrsonnet-stdlib/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-stdlib"
-description = "jsonnet standard library packaged as crate"
+description = "Jsonnet standard library implementation for jrsonnet"
+keywords = ["jsonnet", "stdlib"]
+categories = ["template-engine"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true
modifiedcrates/jrsonnet-types/Cargo.tomldiffbeforeafterboth
--- a/crates/jrsonnet-types/Cargo.toml
+++ b/crates/jrsonnet-types/Cargo.toml
@@ -1,6 +1,8 @@
 [package]
 name = "jrsonnet-types"
-description = "Jrsonnet type system definition"
+description = "Type system definitions used by jrsonnet"
+keywords = ["jsonnet", "types"]
+categories = ["data-structures"]
 authors.workspace = true
 edition.workspace = true
 license.workspace = true