about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-12-12T11·29-0800
committerclbot <clbot@tvl.fyi>2023-12-12T17·35+0000
commit25dd1458b9377fd0fbebfe04cf2ce9310973c41b (patch)
treef9776305fd4f1e47675c54d0062c07bcea12ee06 /tvix
parent8c8409c0d276581e17a52154b2f6429230c374eb (diff)
feat(tvix/eval): builtins.hashString: add placeholder r/7200
This adds an unimplemented placeholder for builtins.hashString.

Change-Id: Ibc770103acf5dbc3ea7589ab5ca23fe6e07bd91a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10311
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: Adam Joseph <adam@westernsemico.com>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/builtins/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 8ae0ae02d6ad..295d94b73523 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -518,6 +518,18 @@ mod pure_builtins {
         )))
     }
 
+    #[builtin("hashString")]
+    #[allow(non_snake_case)]
+    async fn builtin_hashString(
+        co: GenCo,
+        _algo: Value,
+        _string: Value,
+    ) -> Result<Value, ErrorKind> {
+        Ok(Value::Catchable(CatchableErrorKind::UnimplementedFeature(
+            "hashString".to_string(),
+        )))
+    }
+
     #[builtin("head")]
     async fn builtin_head(co: GenCo, list: Value) -> Result<Value, ErrorKind> {
         match list.to_list()?.get(0) {