Dogfood dict unpack syntax in Cargo.rcl files

This does look more pleasant, yay! I do notice that I find '...' tedious
to write though, and maybe a bit too verbose. Maybe I want to change
that to '..' after all, even for dicts. But we can do that later, let's
see how this goes.
This commit is contained in:
Ruud van Asseldonk 2025-10-07 22:42:56 +02:00
parent 730b5478d3
commit 036dead934
4 changed files with 34 additions and 35 deletions

View file

@ -1,14 +1,13 @@
let root = import "//Cargo.rcl";
{
package =
root.package
| {
name = "rcl-fuzz",
description = "Fuzz targets and helpers for testing RCL.",
publish = false,
metadata = { cargo-fuzz = true },
},
package = {
...root.package,
name = "rcl-fuzz",
description = "Fuzz targets and helpers for testing RCL.",
publish = false,
metadata = { cargo-fuzz = true },
},
dependencies = {
arbitrary = { version = "1.3.0", features = ["derive"] },

View file

@ -1,27 +1,29 @@
let root = import "//Cargo.rcl";
{
package =
root.package
| {
name = "tree-sitter-rcl",
description = "RCL grammar for the tree-sitter parsing library.",
keywords = ["incremental", "parsing", "rcl"],
categories = ["parsing", "text-editors"],
build = "bindings/rust/build.rs",
include = [
"bindings/rust/*",
"grammar.js",
"queries/*",
"src/*",
],
},
package = {
...root.package,
name = "tree-sitter-rcl",
description = "RCL grammar for the tree-sitter parsing library.",
keywords = ["incremental", "parsing", "rcl"],
categories = ["parsing", "text-editors"],
build = "bindings/rust/build.rs",
include = [
"bindings/rust/*",
"grammar.js",
"queries/*",
"src/*",
],
},
lib = {
path = "bindings/rust/lib.rs",
},
dependencies = {
tree-sitter = "0.20.10",
},
build-dependencies = {
cc = "1.0",
},

View file

@ -1,12 +1,11 @@
let root = import "//Cargo.rcl";
{
package =
root.package
| {
name = "pyrcl",
description = "Python bindings to the RCL configuration language.",
},
package = {
...root.package,
name = "pyrcl",
description = "Python bindings to the RCL configuration language.",
},
lib = {
crate-type = ["cdylib"],

View file

@ -1,12 +1,11 @@
let root = import "//Cargo.rcl";
{
package =
root.package
| {
name = "rcl-wasm",
description = "WASM entry points for RCL functionality.",
},
package = {
...root.package,
name = "rcl-wasm",
description = "WASM entry points for RCL functionality.",
},
lib = { crate-type = ["cdylib"] },