Skip to content

Commit 84523e4

Browse files
committed
Rust codegen: Add explicit exports to refs
1 parent 3dbd6ab commit 84523e4

File tree

1 file changed

+18
-2
lines changed
  • lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print

1 file changed

+18
-2
lines changed

lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print/Refs.hs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
module LambdaBuffers.Codegen.Rust.Print.Refs where
1+
module LambdaBuffers.Codegen.Rust.Print.Refs (
2+
caseIntERef,
3+
bigInt,
4+
vecAsSlice,
5+
vecMacro,
6+
boxNew,
7+
phantomData,
8+
debugTrait,
9+
fromU32Trait,
10+
fromStrTrait,
11+
cloneTrait,
12+
partialEqTrait,
13+
eqTrait,
14+
isPlutusDataTrait,
15+
jsonTrait,
16+
)
17+
where
218

319
import LambdaBuffers.Codegen.Rust.Print.Syntax qualified as R
420

@@ -9,7 +25,7 @@ bigInt :: R.QValName
925
bigInt = R.qForeignRef R.MkValueName "num-bigint" [] "BigInt"
1026

1127
vecAsSlice :: R.QValName
12-
vecAsSlice = R.qForeignRef R.MkValueName "lbr-prelude" ["lamval"] "case_int"
28+
vecAsSlice = R.qForeignRef R.MkValueName "std" ["vec", "Vec"] "as_slice"
1329

1430
vecMacro :: R.QValName
1531
vecMacro = R.qForeignRef R.MkValueName "std" [] "vec!"

0 commit comments

Comments
 (0)