# 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 = "fheanor"
version = "0.11.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library that provides fast implementations of rings commonly used in homomorphic encryption, built on feanor-math."
homepage = "https://github.com/FeanorTheElf/fheanor"
readme = "Readme.md"
keywords = [
    "cryptography",
    "encryption",
    "fhe",
    "homomorphic",
]
license = "MIT"
repository = "https://github.com/FeanorTheElf/fheanor"

[features]
generic_tests = []
use_hexl = ["dep:feanor-math-hexl"]

[lib]
name = "fheanor"
crate-type = ["rlib"]
path = "src/lib.rs"
bench = true

[[example]]
name = "bfv_basics"
path = "examples/bfv_basics/main.rs"

[[example]]
name = "bfv_impl_v1"
path = "examples/bfv_impl_v1/main.rs"

[[example]]
name = "bfv_impl_v2"
path = "examples/bfv_impl_v2/main.rs"

[[example]]
name = "bgv_basics"
path = "examples/bgv_basics/main.rs"

[[example]]
name = "clpx_basics"
path = "examples/clpx_basics/main.rs"

[dependencies.append-only-vec]
version = "0.1.8"

[dependencies.backtrace]
version = "0.3.75"

[dependencies.feanor-math]
version = "3.5.17"
features = [
    "generic_tests",
    "unstable-enable",
]

[dependencies.feanor-math-hexl]
version = "0.2.6"
optional = true

[dependencies.feanor-mempool]
version = "2.1.0"

[dependencies.feanor-serde]
version = "0.1.5"

[dependencies.fhe-ir]
version = "0.1.4"

[dependencies.oorandom]
version = "11.1.3"

[dependencies.postcard]
version = "1.1.3"
features = ["use-std"]

[dependencies.rand]
version = "0.9.3"

[dependencies.rand_distr]
version = "0.5.1"

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

[dependencies.serde_json]
version = "1.0.125"

[dependencies.take_mut]
version = "0.2.2"

[dependencies.thread_local]
version = "1.1.8"

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracking-allocator]
version = "0.4.0"

[dev-dependencies.feanor-tracing]
version = "1.0.3"

[dev-dependencies.serde_assert]
version = "0.8.0"

[dev-dependencies.serde_path_to_error]
version = "0.1.17"

[dev-dependencies.tracing-chrome]
version = "0.7.2"

[dev-dependencies.tracing-subscriber]
version = "0.3.20"

[profile.profiling]
lto = "fat"
debug = 2
panic = "abort"
inherits = "bench"

[profile.release]
lto = "fat"
panic = "abort"

[profile.test2]
inherits = "test"
