# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tiktoken-wasm"
version = "3.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WASM bindings for the tiktoken BPE tokenizer"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/goliajp/rust-tiktoken"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Os",
    "--enable-bulk-memory",
]

[lib]
name = "tiktoken_wasm"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[dependencies.tiktoken]
version = "3.5.1"

[dependencies.wasm-bindgen]
version = "^0.2"

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
panic = "abort"
strip = true
