summaryrefslogtreecommitdiff
path: root/etc/defaults/rust/TARGETS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-26 09:00:43 +0200
committerGitHub <noreply@github.com>2024-06-26 09:00:43 +0200
commit7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef (patch)
tree3b1bfe9958b324b5bd0768b48bfa76aaaa3eecc7 /etc/defaults/rust/TARGETS
parentafcdb1184799526f20954e475af990254d772cd4 (diff)
parente65cf1d265210738a9b3c0b811fbfeffa0741c39 (diff)
downloadhello-nix-7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef.tar.gz
Merge pull request #2 from aehlig/import-rules
Import rust rules and add a minimal example
Diffstat (limited to 'etc/defaults/rust/TARGETS')
-rw-r--r--etc/defaults/rust/TARGETS43
1 files changed, 43 insertions, 0 deletions
diff --git a/etc/defaults/rust/TARGETS b/etc/defaults/rust/TARGETS
new file mode 100644
index 0000000..fbd1a69
--- /dev/null
+++ b/etc/defaults/rust/TARGETS
@@ -0,0 +1,43 @@
+{ "defaults":
+ { "type": "configure"
+ , "target": "defaults (unconfigured)"
+ , "arguments_config": ["TOOLCHAIN_CONFIG"]
+ , "config":
+ { "type": "let*"
+ , "bindings":
+ [ [ "toolchain"
+ , { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": "RUST"
+ , "default": {"type": "empty_map"}
+ }
+ ]
+ , [ "RUSTC"
+ , { "type": "lookup"
+ , "map": {"type": "var", "name": "toolchain"}
+ , "key": "RUSTC"
+ , "default": "rustc"
+ }
+ ]
+ , [ "PATH"
+ , { "type": "lookup"
+ , "map": {"type": "var", "name": "toolchain"}
+ , "key": "PATH"
+ , "default": []
+ }
+ ]
+ ]
+ , "body": {"type": "env", "vars": ["RUSTC", "PATH"]}
+ }
+ }
+, "defaults (unconfigured)":
+ { "type": "defaults"
+ , "arguments_config": ["RUSTC", "PATH"]
+ , "RUSTC": [{"type": "var", "name": "RUSTC"}]
+ , "PATH": {"type": "var", "name": "PATH"}
+ }
+}