# 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" rust-version = "1.71.1" name = "libcryptsetup-rs" version = "0.11.0" authors = ["John Baublitz "] build = "build.rs" exclude = [ ".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile", ] autobins = false autoexamples = false autotests = false autobenches = false description = "High level Rust bindings for libcryptsetup" homepage = "https://stratis-storage.github.io/" documentation = "https://docs.rs/libcryptsetup-rs" readme = "README.md" keywords = [ "Linux", "encryption", "storage", ] categories = [ "cryptography", "api-bindings", "os::linux-apis", ] license = "MPL-2.0" repository = "https://github.com/stratis-storage/libcryptsetup-rs" [lib] name = "libcryptsetup_rs" path = "src/lib.rs" [[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" [dependencies.bitflags] version = "2.3.1" [dependencies.either] version = "1.6.1" [dependencies.libc] version = "0.2.155" [dependencies.libcryptsetup-rs-sys] version = "0.4.0" [dependencies.log] version = "0.4.19" [dependencies.once_cell] version = "1.19.0" [dependencies.serde_json] version = "1.0.0" [dependencies.uuid] version = "1.0.0" features = ["v4"] [dev-dependencies.base64] version = "0.21.0" [dev-dependencies.env_logger] version = "0.11.0" [dev-dependencies.loopdev-3] version = "0.5.0" [dev-dependencies.nix] version = "0.29.0" features = ["user"] [dev-dependencies.rand] version = "0.8.0" [build-dependencies.pkg-config] version = "0.3.15" [build-dependencies.semver] version = "1.0.0" [features] mutex = [] [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] level = "deny" priority = 0 check-cfg = [ "cfg(cryptsetup23supported)", "cfg(cryptsetup24supported)", ] [lints.rust.unused] level = "deny" priority = 2 [lints.rust.warnings] level = "deny" priority = 0