# 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.76.0"
name = "e-utils"
version = "0.3.38"
authors = ["Eternal Night <EternalNight996@gmail.com, EternalNightYeah2@yeah.net>"]
include = [
    "src/",
    "*.md",
    "*-LICENSE",
    "Cargo.toml",
]
description = "a rust utils"
homepage = "https://gitee.com/eternalnight996"
documentation = "https://docs.rs/e-utils"
readme = "README.md"
keywords = [
    "utils",
    "tools",
    "e-utils",
    "e-",
]
categories = ["development-tools::build-utils"]
license-file = "MIT-LICENSE"
repository = "https://gitee.com/eternalnight996/e-utils"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "doc_cfg",
]

[lib]
crate-type = ["rlib"]
proc-macro = false

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

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4"

[dependencies.e-macros]
version = "0.1"
optional = true

[dependencies.encoding]
version = "0.2"
optional = true

[dependencies.image]
version = "0.25.0"
optional = true

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.rand]
version = "^0.8.5"
features = ["small_rng"]
optional = true

[dependencies.regex]
version = "^1.10.3"

[dependencies.reqwest]
version = "0.12"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "^1.0.57"

[dependencies.uuid]
version = "^1.7.0"
optional = true

[dev-dependencies.tempdir]
version = "0.3"

[features]
algorithm = ["rand"]
alloc = []
base64 = []
cmd = ["encoding"]
default = ["std"]
dialog = ["rfd"]
encode = ["encoding"]
fs = []
fs_ext = ["fs"]
http = ["reqwest"]
http-blocking = ["reqwest/blocking"]
http-json = ["reqwest/json"]
images = ["image"]
macros = ["e-macros"]
std = []
ui = ["e-macros"]
uuid_v4 = [
    "uuid/v4",
    "uuid/fast-rng",
    "uuid/macro-diagnostics",
    "uuid",
]

[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies.glib]
version = "0.19"

[target."cfg(any(target_os = \"macos\", target_os = \"windows\", target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies.rfd]
version = "^0.14.0"
features = [
    "xdg-portal",
    "tokio",
]
optional = true
default-features = false

[target."cfg(target_os=\"windows\")".dependencies.winapi]
version = "0.3"
features = [
    "handleapi",
    "processthreadsapi",
    "winerror",
    "fileapi",
    "winbase",
    "std",
]
default-features = false

[target."cfg(unix)".dependencies.libc]
version = "0.2"
