libpep 0.9.1

Library for polymorphic encryption and pseudonymization
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 = "libpep"
version = "0.9.1"
authors = [
    "Bernard van Gastel <bvgastel@bitpowder.com>",
    "Job Doesburg <job@jobdoesburg.nl>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for polymorphic encryption and pseudonymization"
homepage = "https://github.com/NOLAI/libpep"
documentation = "https://docs.rs/libpep"
readme = "README.md"
keywords = [
    "crypto",
    "pep",
    "pseudonymization",
]
categories = [
    "cryptography",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/NOLAI/libpep"

[package.metadata.deb]
name = "peppy"
depends = ""
assets = [
    [
    "peppy.1",
    "usr/man/man1/",
    "444",
],
    [
    "target/release/peppy",
    "usr/bin/peppy",
    "555",
],
]

[package.metadata.freebsd]
assets = [
    [
    "peppy.1",
    "man/man1/",
    "444",
],
    [
    "target/release/peppy",
    "bin/peppy",
    "555",
],
]

[package.metadata.docs.rs]
features = [
    "offline",
    "batch",
    "long",
    "serde",
    "elgamal3",
    "insecure",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
batch = []
build-binary = [
    "buildinfy",
    "commandy",
    "commandy_macros",
    "rand",
]
default = [
    "build-binary",
    "long",
    "offline",
    "batch",
    "serde",
    "json",
]
elgamal3 = []
global-pseudonyms = ["offline"]
insecure = []
json = [
    "long",
    "serde",
    "dep:serde_json",
]
legacy = [
    "elgamal3",
    "offline",
    "global-pseudonyms",
]
long = []
offline = []
python = [
    "pyo3",
    "rand",
]
serde = ["dep:serde"]
wasm = [
    "wasm-bindgen",
    "serde-wasm-bindgen",
    "js-sys",
    "getrandom",
    "rand",
]

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

[[bin]]
name = "peppy"
path = "src/bin/peppy.rs"
required-features = ["build-binary"]

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

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

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

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

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

[[bench]]
name = "base"
path = "benches/base.rs"
harness = false

[[bench]]
name = "distributed"
path = "benches/distributed.rs"
harness = false

[[bench]]
name = "energy_base"
path = "benches/energy_base.rs"
harness = false

[[bench]]
name = "energy_distributed"
path = "benches/energy_distributed.rs"
harness = false

[[bench]]
name = "quick"
path = "benches/quick.rs"
harness = false

[dependencies.base64]
version = "^0.22"

[dependencies.buildinfy]
version = "^0.1"
optional = true

[dependencies.commandy]
version = "^0.2"
optional = true

[dependencies.commandy_macros]
version = "^0.2"
optional = true

[dependencies.curve25519-dalek]
version = "=5.0.0-pre.4"
features = [
    "rand_core",
    "lizard",
]

[dependencies.derive_more]
version = "^2.0"
features = [
    "deref",
    "from",
    "into",
]

[dependencies.getrandom]
version = "0.4.0-rc.0"
features = ["wasm_js"]
optional = true

[dependencies.hex]
version = "^0.4"

[dependencies.hmac]
version = "^0.13.0-rc.3"

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

[dependencies.pyo3]
version = "0.27"
features = ["extension-module"]
optional = true

[dependencies.rand]
version = "=0.10.0-rc.7"
optional = true

[dependencies.rand_core]
version = "=0.10.0-rc-5"

[dependencies.serde]
version = "^1.0"
features = ["derive"]
optional = true

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

[dependencies.serde_json]
version = "^1.0"
optional = true

[dependencies.sha2]
version = "^0.11.0-rc.3"

[dependencies.thiserror]
version = "2.0.18"

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

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

[dev-dependencies.energy-bench]
version = "^0.1"

[dev-dependencies.rand]
version = "0.10.0-rc.7"

[dev-dependencies.serde_json]
version = "^1.0"

[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "deny"