# 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 = "sdme"
version = "0.2.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight systemd-nspawn containers with overlayfs"
homepage = "https://fiorix.github.io/sdme"
readme = "README.md"
keywords = [
    "systemd",
    "nspawn",
    "containers",
    "overlayfs",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/fiorix/sdme"

[package.metadata.deb]
maintainer = "Alexandre Fiori"
depends = "systemd (>= 252), systemd-container"
suggests = "qemu-utils, apparmor"
section = "admin"
priority = "optional"
maintainer-scripts = "packaging/deb"
assets = [
    [
    "target/release/sdme",
    "usr/bin/",
    "755",
],
    [
    "docs/sdme.1",
    "usr/share/man/man1/sdme.1",
    "644",
],
    [
    "dist/completions/sdme.bash",
    "usr/share/bash-completion/completions/sdme",
    "644",
],
    [
    "dist/completions/_sdme",
    "usr/share/zsh/vendor-completions/_sdme",
    "644",
],
    [
    "dist/completions/sdme.fish",
    "usr/share/fish/vendor_completions.d/sdme.fish",
    "644",
],
    [
    "dist/apparmor/sdme-default",
    "etc/apparmor.d/sdme-default",
    "644",
],
]

[package.metadata.generate-rpm]
post_install_script = "if command -v apparmor_parser >/dev/null 2>&1; then apparmor_parser -r /etc/apparmor.d/sdme-default 2>/dev/null || true; fi"

[[package.metadata.generate-rpm.assets]]
source = "target/release/sdme"
dest = "/usr/bin/sdme"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "docs/sdme.1"
dest = "/usr/share/man/man1/sdme.1"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "dist/completions/sdme.bash"
dest = "/usr/share/bash-completion/completions/sdme"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "dist/completions/_sdme"
dest = "/usr/share/zsh/site-functions/_sdme"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "dist/completions/sdme.fish"
dest = "/usr/share/fish/vendor_completions.d/sdme.fish"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "dist/apparmor/sdme-default"
dest = "/etc/apparmor.d/sdme-default"
mode = "644"
config = true

[package.metadata.generate-rpm.requires]
systemd = ">= 252"
systemd-container = "*"

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

[[bin]]
name = "sdme"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.bzip2]
version = "0.5"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.clap_complete]
version = "4"

[dependencies.flate2]
version = "1"

[dependencies.libc]
version = "0.2"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"
features = ["xattr"]

[dependencies.toml]
version = "0.8"

[dependencies.ureq]
version = "3"

[dependencies.xz2]
version = "0.1"

[dependencies.zbus]
version = "5"
features = [
    "async-io",
    "blocking-api",
]
default-features = false

[dependencies.zstd]
version = "0.13"
