about summary refs log tree commit diff
path: root/tvix/eval/Cargo.lock
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-01T12·52+0300
committertazjin <tazjin@tvl.su>2022-09-07T19·08+0000
commit39e960daa67d3cebb033f0490e570dbbcd9dffa0 (patch)
tree4bfc1a6c4b3981add15df151800d6eeba2d798ad /tvix/eval/Cargo.lock
parentf8919dbcd6137f1d4656827e1b3cefe58cee119b (diff)
chore(tvix/eval): add codemap dependency r/4707
This will be used to track source spans when emitting bytecode.

The codemap is a data structure which tracks *all* the source files
visited by an evaluation, and makes it possible to represent locations
across all of the files using a simple span (i.e. pair of offsets).

When reporting errors, this even contains enough information to
reconstruct the rnix AST to create fancier reporting in certain cases
if desired.

Change-Id: I4ae98620b9b150fb5a389bd7f1e12670e3192c62
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6374
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/Cargo.lock')
-rw-r--r--tvix/eval/Cargo.lock7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/eval/Cargo.lock b/tvix/eval/Cargo.lock
index 4732d1b00220..c20999ab0efa 100644
--- a/tvix/eval/Cargo.lock
+++ b/tvix/eval/Cargo.lock
@@ -84,6 +84,12 @@ dependencies = [
 ]
 
 [[package]]
+name = "codemap"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e769b5c8c8283982a987c6e948e540254f1058d5a74b8794914d4ef5fc2a24"
+
+[[package]]
 name = "countme"
 version = "3.0.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -872,6 +878,7 @@ dependencies = [
 name = "tvix-eval"
 version = "0.1.0"
 dependencies = [
+ "codemap",
  "criterion",
  "dirs",
  "itertools",