pocket-encoder 0.1.1

A bundled, offline sentence transformer with native Rust CPU inference
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 = "2024"
rust-version = "1.88"
name = "pocket-encoder"
version = "0.1.1"
build = false
include = [
    "/src/**",
    "/assets/**",
    "/examples/**",
    "/tests/**",
    "/README.md",
    "/LICENSE",
    "/NOTICE",
    "/Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A bundled, offline sentence transformer with native Rust CPU inference"
readme = "README.md"
keywords = [
    "embeddings",
    "semantic-search",
    "offline",
    "candle",
    "encoder",
]
categories = [
    "text-processing",
    "science",
]
license = "MIT AND Apache-2.0"
repository = "https://github.com/Gonzih/clap-how-to"

[features]
search = []

[lib]
name = "pocket_encoder"
path = "src/lib.rs"

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

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

[[example]]
name = "search"
path = "examples/search.rs"
required-features = ["search"]

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

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

[dependencies.candle-core]
version = "=0.11.0"
default-features = false

[dependencies.candle-nn]
version = "=0.11.0"
default-features = false

[dependencies.candle-transformers]
version = "=0.11.0"
default-features = false

[dependencies.half]
version = "2.7"

[dependencies.safetensors]
version = "0.7"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.22"
features = ["fancy-regex"]
default-features = false

[dev-dependencies.sha2]
version = "0.11"