diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..d47f983 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,11 @@ +[target.x86_64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] + +[target.aarch64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target diff --git a/Cargo.toml b/Cargo.toml index 114dd41..855426b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,4 @@ lua54 = ["mlua/lua54"] lua53 = ["mlua/lua53"] lua52 = ["mlua/lua52"] lua51 = ["mlua/lua51"] +luajit = ["mlua/luajit"] diff --git a/tiktoken.lua-0.2.0.rockspec b/tiktoken_core-0.2.1-1.rockspec similarity index 93% rename from tiktoken.lua-0.2.0.rockspec rename to tiktoken_core-0.2.1-1.rockspec index 04444da..78df676 100644 --- a/tiktoken.lua-0.2.0.rockspec +++ b/tiktoken_core-0.2.1-1.rockspec @@ -1,9 +1,9 @@ package = "tiktoken_core" -version = "0.2.0" +version = "0.2.1-1" source = { url = "git+https://github.com/gptlang/lua-tiktoken", - tag = "0.2.0", + tag = "0.2.1", } description = {