[package]
edition = "2021"
rust-version = "1.80"
name = "cryptotensors"
version = "0.2.3"
build = false
exclude = [
"rust-toolchain",
"target/*",
"Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
CryptoTensors is an extension of safetensors that adds encryption, signing,
and access control (Rego-based policy engine) while maintaining full backward
compatibility with the safetensors format. It provides functions to read and write safetensors
which aim to be safer than their PyTorch counterpart.
"""
homepage = "https://github.com/aiyah-meloken/cryptotensors"
documentation = "https://docs.rs/cryptotensors/"
readme = "README.md"
keywords = [
"safetensors",
"Pytorch",
"cryptotensors",
"encryption",
"security",
]
license = "Apache-2.0"
repository = "https://github.com/aiyah-meloken/cryptotensors"
[features]
alloc = []
default = [
"std",
"provider-env",
"provider-file",
]
provider-env = []
provider-file = []
std = [
"serde/default",
"serde_json/default",
]
[lib]
name = "cryptotensors"
path = "src/lib.rs"
[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
harness = false
[dependencies.base64]
version = "0.22"
[dependencies.hashbrown]
version = "0.16"
features = ["serde"]
[dependencies.libloading]
version = "0.8"
[dependencies.once_cell]
version = "1.7"
[dependencies.rand]
version = "0.8"
[dependencies.rayon]
version = "1.11.0"
[dependencies.regorus]
version = "0.4"
[dependencies.ring]
version = "0.17"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"alloc",
]
default-features = false
[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false
[dependencies.thiserror]
version = "2.0"
[dependencies.zeroize]
version = "1.7"
[dev-dependencies.criterion]
version = "0.6"
[dev-dependencies.memmap2]
version = "0.9"
[dev-dependencies.proptest]
version = "1.7"
[dev-dependencies.tempfile]
version = "3.10"