# 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"
name = "cbf"
version = "0.1.0-alpha.6"
authors = ["Takagi Tasuku <tasuren@icloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A framework for developing Chromium-based browsers."
homepage = "https://cbf-hq.github.io/cbf/"
readme = "README.md"
keywords = [
    "chromium",
    "browser",
]
categories = ["web-programming"]
license = "BSD-3-Clause"
repository = "https://github.com/cbf-hq/cbf"

[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
targets = ["aarch64-apple-darwin"]
all-features = true

[features]
default = []
native-dialogs = [
    "dep:block2",
    "dep:objc2",
    "dep:objc2-app-kit",
    "dep:objc2-core-foundation",
    "dep:objc2-foundation",
]

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

[dependencies.async-channel]
version = "2.5"

[dependencies.async-process]
version = "2.5"

[dependencies.cursor-icon]
version = "1.2"

[dependencies.futures-lite]
version = "2.6"

[dependencies.oneshot]
version = "0.2"
features = [
    "async",
    "std",
]

[dependencies.raw-window-handle]
version = "0.6"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.2"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3.2"
features = [
    "NSAlert",
    "NSApplication",
    "NSButton",
    "NSControl",
    "NSResponder",
    "NSTextField",
    "NSView",
    "NSWindow",
    "block2",
]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
features = ["CFCGTypes"]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
optional = true
default-features = false
