645d0c06e5
Add a single new proc macro to a new proc-macro crate, `tvix-eval-proc-macros` for defining an inline module containing nix builtins, and automatically generating a function within that module which returns a list of those builtins as `tvix_eval::value::Builtin`. Change-Id: Ie4afae438914d2af93d15637151a49b4c68aa352 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7198 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: Adam Joseph <adam@westernsemico.com> Tested-by: BuildkiteCI
16 lines
359 B
TOML
16 lines
359 B
TOML
[package]
|
|
name = "tvix-eval-builtin-macros"
|
|
version = "0.0.1"
|
|
authors = [ "Griffin Smith <root@gws.fyi>" ]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
syn = { version = "1.0.57", features = ["full", "parsing", "printing", "visit", "visit-mut", "extra-traits"] }
|
|
quote = "1.0.8"
|
|
proc-macro2 = "1"
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dev-dependencies]
|
|
tvix-eval = { path = "../" }
|