From 8c32990a440e6be7955c0ead29e44d65005dd3eb Mon Sep 17 00:00:00 2001 From: Daulet Zhanguzin Date: Thu, 7 Nov 2024 13:28:54 -0800 Subject: [PATCH] fix: update example README --- example/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/example/README.md b/example/README.md index 8dfec5a..00c5061 100644 --- a/example/README.md +++ b/example/README.md @@ -1,8 +1,11 @@ # Example +To run the example you need to obtain the built rust library. ``` -# Keep this version in sync with go module release -curl -fsSL https://github.com/daulet/tokenizers/releases/download/v0.9.0/libtokenizers.darwin-aarch64.tar.gz | tar xvz +# On M1+ Mac (note arch) +curl -fsSL https://github.com/daulet/tokenizers/releases/download/v1.20.2/libtokenizers.darwin-aarch64.tar.gz | tar xvz + # change -L argument to where you've placed the library download above go run -ldflags="-extldflags '-L$(pwd)'" main.go -``` \ No newline at end of file +``` +or `make build` from the parent directory and `go run -ldflags="-extldflags '-L..'" main.go` \ No newline at end of file