ledgeline-shell 0.4.0

The desktop and local-server shell shared by Ledgeline's apps: access token and Host guard, CSP, embedded SPA serving, app directories, recents, and the wry/tao GUI boot pieces.
Documentation
# 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 = "ledgeline-shell"
version = "0.4.0"
authors = ["Patrick Walsh"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The desktop and local-server shell shared by Ledgeline's apps: access token and Host guard, CSP, embedded SPA serving, app directories, recents, and the wry/tao GUI boot pieces."
readme = false
keywords = [
    "hledger",
    "accounting",
    "desktop",
    "webview",
]
categories = [
    "gui",
    "web-programming::http-server",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/zmre/ledgeline"

[features]
default = []
gui = [
    "dep:wry",
    "dep:tao",
    "dep:muda",
    "dep:rfd",
    "dep:tokio",
    "dep:gtk",
    "dep:webkit2gtk",
    "dep:objc2-core-foundation",
    "dep:objc2-core-services",
    "dep:windows-sys",
    "dep:webview2-com",
    "dep:windows-core",
    "dep:png",
]

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

[dependencies.axum]
version = "0.8"

[dependencies.base64]
version = "0.23"

[dependencies.dirs]
version = "7"

[dependencies.dunce]
version = "1.0.5"

[dependencies.getrandom]
version = "0.4"
features = ["std"]

[dependencies.ledgeline-core]
version = "0.4.0"

[dependencies.mime_guess]
version = "2"

[dependencies.muda]
version = "0.22"
optional = true

[dependencies.png]
version = "0.18"
optional = true

[dependencies.rfd]
version = "0.18"
optional = true

[dependencies.rust-embed]
version = "8"
features = ["interpolate-folder-path"]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.tao]
version = "0.38"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "sync",
]
optional = true

[dependencies.tower-http]
version = "0.7"
features = [
    "catch-panic",
    "cors",
    "set-header",
]

[dependencies.url]
version = "2"

[dependencies.wry]
version = "0.58"
optional = true

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(target_os = "linux")'.dependencies.gtk]
version = "0.19"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.webkit2gtk]
version = "3.0"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3"
features = [
    "std",
    "CFString",
    "CFURL",
]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-services]
version = "0.3"
features = [
    "std",
    "libc",
    "LaunchServices",
    "LSInfo",
    "LSConstants",
]
optional = true
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.webview2-com]
version = "0.39"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows-core]
version = "0.62"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Console",
    "Win32_UI_Shell",
    "Win32_UI_WindowsAndMessaging",
]
optional = true