# 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.87.0"
name = "crypt2pay_pkcs11_loader"
version = "5.24.0"
authors = [
    "Bruno Grieder <bruno.grieder@cosmian.com>",
    "Emmanuel Coste <emmanuel.coste@cosmian.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Crypt2Pay HSM PKCS#11 loader"
readme = "README.md"
keywords = [
    "kms",
    "cosmian",
]
categories = ["security"]
license = "BUSL-1.1"
repository = "https://github.com/Cosmian/kms"
resolver = "2"

[features]
crypt2pay = []

[lib]
name = "crypt2pay_pkcs11_loader"
path = "src/lib.rs"
doctest = false

[dependencies.cosmian_kms_base_hsm]
version = "5.24.0"

[dev-dependencies]

[lints.clippy]
as_conversions = "deny"
assertions_on_result_states = "deny"
empty_structs_with_brackets = "deny"
expect_used = "deny"
get_unwrap = "deny"
implicit_clone = "deny"
indexing_slicing = "deny"
map_err_ignore = "deny"
missing_asserts_for_indexing = "deny"
module_name_repetitions = "allow"
panic = "deny"
panic_in_result_fn = "deny"
print_stdout = "deny"
redundant_clone = "deny"
renamed_function_params = "deny"
str_to_string = "deny"
unreachable = "deny"
unseparated_literal_suffix = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"

[lints.clippy.all]
level = "deny"
priority = 80

[lints.clippy.cargo]
level = "deny"
priority = 30

[lints.clippy.cognitive_complexity]
level = "allow"
priority = 21

[lints.clippy.complexity]
level = "deny"
priority = 60

[lints.clippy.future_not_send]
level = "allow"
priority = 21

[lints.clippy.iter_with_drain]
level = "allow"
priority = 21

[lints.clippy.missing_errors_doc]
level = "allow"
priority = 91

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 31

[lints.clippy.nursery]
level = "deny"
priority = 20

[lints.clippy.pedantic]
level = "deny"
priority = 90

[lints.clippy.perf]
level = "deny"
priority = 50

[lints.clippy.redundant_pub_crate]
level = "allow"
priority = 21

[lints.clippy.ref_option]
level = "allow"
priority = 91

[lints.clippy.significant_drop_tightening]
level = "allow"
priority = 21

[lints.clippy.similar_names]
level = "allow"
priority = 91

[lints.clippy.style]
level = "deny"
priority = 40

[lints.clippy.suspicious]
level = "deny"
priority = 70

[lints.clippy.too_long_first_doc_paragraph]
level = "allow"
priority = 21

[lints.clippy.too_many_lines]
level = "allow"
priority = 91

[lints.rust]
future_incompatible = "deny"
keyword_idents = "deny"
let_underscore = "deny"
nonstandard_style = "deny"
refining_impl_trait = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused = "deny"
