# 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.88"
name = "saudade"
version = "0.5.0"
build = false
exclude = [
    "tests/snapshots",
    "tests/fonts",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Classic looking retained-mode, cross-platform Rust GUI library"
readme = "README.md"
keywords = [
    "gui",
    "ui",
    "retained-mode",
    "cross-platform",
    "widgets",
]
categories = ["gui"]
license = "MIT"
repository = "https://github.com/roblillack/saudade"

[[package.metadata.release.pre-release-replacements]]
file = "README.md"
search = 'saudade = "[0-9.]+"'
replace = 'saudade = "{{version}}"'

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "Unreleased"
replace = "{{version}}"

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '\.\.\.HEAD'
replace = "...{{tag_name}}"
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "ReleaseDate"
replace = "{{date}}"

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "<!-- next-header -->"
replace = """
<!-- next-header -->

## [Unreleased] - ReleaseDate"""
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "<!-- next-url -->"
replace = """
<!-- next-url -->
[Unreleased]: https://github.com/roblillack/saudade/compare/{{tag_name}}...HEAD"""
exactly = 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "dnd"
path = "tests/dnd.rs"

[[test]]
name = "nested_popup"
path = "tests/nested_popup.rs"

[[test]]
name = "scroll_drag"
path = "tests/scroll_drag.rs"

[[test]]
name = "snapshots"
path = "tests/snapshots.rs"

[dependencies.fontdb]
version = "0.16"

[dependencies.fontdue]
version = "0.8"

[dependencies.png]
version = "0.17"

[dependencies.saudade-macros]
version = "0.2.0"

[dependencies.softbuffer]
version = "0.4"

[dependencies.winit]
version = "0.30"
features = [
    "rwh_06",
    "x11",
]
default-features = false

[dev-dependencies.png]
version = "0.17"

[dev-dependencies.resvg]
version = "0.42"

[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.arboard]
version = "3"
features = ["wayland-data-control"]
default-features = false

[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.smithay-client-toolkit]
version = "0.19"

[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.wayland-client]
version = "0.31"

[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.wayland-protocols]
version = "0.32"
features = [
    "client",
    "staging",
]

[target.'cfg(any(target_os = "macos", windows))'.dependencies.arboard]
version = "3"
default-features = false
