libcryptsetup-rs 0.12.1

High level Rust bindings for libcryptsetup
[build-dependencies.pkg-config]
version = "0.3.17"

[build-dependencies.semver]
version = "1.0.0"

[dependencies.bitflags]
version = "2.3.1"

[dependencies.either]
version = "1.6.1"

[dependencies.libc]
version = "0.2.155"

[dependencies.libcryptsetup-rs-sys]
version = "0.5.0"

[dependencies.log]
version = "0.4.20"

[dependencies.once_cell]
version = "1.19.0"

[dependencies.per-thread-mutex]
version = "0.1.4"

[dependencies.serde_json]
version = "1.0.0"

[dependencies.uuid]
features = ["v4"]
version = "1.0.0"

[dev-dependencies.base64]
version = "0.22.0"

[dev-dependencies.env_logger]
version = "0.11.0"

[dev-dependencies.loopdev-3]
version = "0.5.0"

[dev-dependencies.nix]
features = ["user"]
version = "0.29.0"

[dev-dependencies.rand]
version = "0.9.0"

[[example]]
name = "add-key-to-persistent-keyring"
path = "examples/add-key-to-persistent-keyring.rs"

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

[[example]]
name = "cryptsetup-luks2"
path = "examples/cryptsetup-luks2.rs"

[[example]]
name = "format-luks2-with-token"
path = "examples/format-luks2-with-token.rs"

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

[[example]]
name = "unlock-luks2-with-token"
path = "examples/unlock-luks2-with-token.rs"

[features]
mutex = []
static = ["libcryptsetup-rs-sys/static"]

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

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

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

[lints.clippy.multiple-crate-versions]
level = "allow"
priority = 2

[lints.clippy.ptr-as-ptr]
level = "deny"
priority = 3

[lints.rust.future_incompatible]
level = "deny"
priority = 1

[lints.rust.nonstandard_style]
level = "deny"
priority = 4

[lints.rust.rust_2018_idioms]
level = "deny"
priority = 3

[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(cryptsetup23supported)", "cfg(cryptsetup24supported)"]
level = "deny"
priority = 0

[lints.rust.unused]
level = "deny"
priority = 2

[lints.rust.warnings]
level = "deny"
priority = 0

[package]
authors = ["John Baublitz <jbaublitz@redhat.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["cryptography", "api-bindings", "os::linux-apis"]
description = "High level Rust bindings for libcryptsetup"
documentation = "https://docs.rs/libcryptsetup-rs"
edition = "2021"
exclude = [".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile"]
homepage = "https://stratis-storage.github.io/"
keywords = ["Linux", "encryption", "storage"]
license = "MPL-2.0"
name = "libcryptsetup-rs"
readme = "README.md"
repository = "https://github.com/stratis-storage/libcryptsetup-rs"
rust-version = "1.74.0"
version = "0.12.1"