# 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"
name = "coretext-rs"
version = "0.7.0"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "tests/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "COVERAGE.md",
    "LICENSE-*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's CoreText framework via a Swift bridge on macOS"
homepage = "https://github.com/doom-fish/coretext-rs"
readme = "README.md"
keywords = [
    "coretext",
    "macos",
    "apple",
    "text",
    "font",
]
categories = [
    "api-bindings",
    "graphics",
    "os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/coretext-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
default = []
raw-ffi = []

[lib]
name = "coretext"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_layout_smoke"
path = "examples/01_layout_smoke.rs"

[[example]]
name = "02_font_overview"
path = "examples/02_font_overview.rs"

[[example]]
name = "03_descriptor_collection_manager"
path = "examples/03_descriptor_collection_manager.rs"

[[example]]
name = "04_glyph_info"
path = "examples/04_glyph_info.rs"

[[example]]
name = "05_ruby_annotation"
path = "examples/05_ruby_annotation.rs"

[[example]]
name = "06_raw_ffi_smoke"
path = "examples/06_raw_ffi_smoke.rs"

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

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

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

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

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

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

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

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

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

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

[dependencies.apple-cf]
version = ">=0.9, <0.10"
features = ["cg"]
default-features = false

[dependencies.libc]
version = "0.2"

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

[dependencies.serde_json]
version = "1"

[dev-dependencies]

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]

[profile.release]
debug = 2
strip = "none"
