# 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.85"
name = "ghactions"
version = "0.19.0"
authors = ["GeekMasher"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GitHub Actions Crate"
documentation = "https://docs.rs/ghactions/latest/ghactions/index.html"
readme = "README.md"
keywords = [
    "github",
    "actions",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/42ByteLabs/ghactions"
resolver = "2"

[package.metadata.release]
shared-version = true
tag-name = "v{{version}}"

[features]
default = [
    "log",
    "macros",
    "octocrab",
    "toolcache",
]
dotenvy = ["ghactions-derive/dotenvy"]
generate = ["ghactions-derive/generate"]
log = [
    "ghactions-derive/log",
    "ghactions-core/log",
    "dep:log",
]
macros = ["ghactions-core/macros"]
octocrab = [
    "ghactions-core/octocrab",
    "ghactions-toolcache/api",
]
toolcache = ["dep:ghactions-toolcache"]
toolcache-all = [
    "toolcache",
    "ghactions-toolcache/all",
]
toolcache-tarball = [
    "toolcache",
    "ghactions-toolcache/tarball",
]
toolcache-zip = [
    "toolcache",
    "ghactions-toolcache/zip",
]

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

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

[[example]]
name = "toolcache"
path = "examples/toolcache.rs"
required-features = ["toolcache"]

[dependencies.ghactions-core]
version = "^0.19"

[dependencies.ghactions-derive]
version = "^0.19"

[dependencies.ghactions-toolcache]
version = "^0.19"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.http]
version = "^1"

[dev-dependencies.log]
version = "0.4"

[dev-dependencies.octocrab]
version = "^0.49"

[dev-dependencies.tokio]
version = "1.49"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]
default-features = false
