wasmicro 0.3.1

Tiny transformer inference for the web. BERT, GPT-2 and T5 in a 199 KB WASM bundle.
Documentation
# 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 = "2021"
name = "wasmicro"
version = "0.3.1"
authors = ["Xzdes"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tiny transformer inference for the web. BERT, GPT-2 and T5 in a 199 KB WASM bundle."
homepage = "https://github.com/Xzdes/wasmicro"
documentation = "https://docs.rs/wasmicro"
readme = "README.md"
keywords = [
    "wasm",
    "inference",
    "transformer",
    "embeddings",
    "llm",
]
categories = [
    "wasm",
    "science",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Xzdes/wasmicro"

[features]
default = []
f16 = ["dep:half"]
simd = []
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
]
wasm-debug = [
    "dep:console_error_panic_hook",
    "wasm",
]

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

[[example]]
name = "load_safetensors"
path = "examples/load_safetensors.rs"

[[test]]
name = "bert_roundtrip"
path = "tests/bert_roundtrip.rs"

[[test]]
name = "public_api"
path = "tests/public_api.rs"

[dependencies.bytemuck]
version = "1.18"

[dependencies.half]
version = "2.4"
optional = true

[dependencies.js-sys]
version = "0.3.72"
optional = true

[dependencies.wasm-bindgen]
version = "0.2.95"
optional = true

[dev-dependencies.criterion]
version = "0.5"

[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1.7"
optional = true

[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"