Play around with options for controlling exported names

This commit is contained in:
Greg Shuflin committed 2026-07-01 17:49:36 -07:00
1 parent 3946da000f
commit 557454b340
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
def hello := "world"
@[export mycustomstring]
def myCustomString := "KJLKJLKJLKJLKJLJLKLKJ"
structure AST where
+2 -1
View File
@@ -4,7 +4,8 @@ _default:
[doc: "Build a Lean shared library with the \"shared\" facet"]
build-shared-lib:
lake build LeanFfiExperiment:shared
#lake build LeanFfiExperiment:shared
lake build LeanFfiExperiment
[doc: "Build the rust executable"]
+2
View File
@@ -4,6 +4,8 @@ defaultTargets = ["lean-ffi-experiment"]
[[lean_lib]]
name = "LeanFfiExperiment"
defaultFacets = ["shared"]
libName = "ffiexperiment"
[[lean_exe]]
name = "lean-ffi-experiment"