tilo-dialogs 0.5.1

File choosers, opening files with their app, and opening URIs on Linux, macOS and the web.
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 = "tilo-dialogs"
version = "0.5.1"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File choosers, opening files with their app, and opening URIs on Linux, macOS and the web."
homepage = "https://tilo.so"
readme = "supporting-crate.md"
license = "MIT"
repository = "https://code.tilo.so/tilo/tilo"
resolver = "2"

[features]
portal-client = ["dep:ashpd"]
test-support = ["dep:tilo-test-env"]

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

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

[dependencies.tilo-platform-caps]
version = "=0.5.1"

[dependencies.tilo-rt]
version = "=0.5.1"

[dependencies.tilo-test-env]
version = "=0.5.1"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

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

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.js-sys]
version = "=0.3.85"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen]
version = "=0.2.108"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen-futures]
version = "=0.4.58"

[target."cfg(any(unix, windows))".dependencies.blake3]
version = "1.8.5"

[target."cfg(any(unix, windows))".dependencies.serde]
version = "1.0.228"
features = ["derive"]

[target."cfg(any(unix, windows))".dependencies.serde_json]
version = "1.0"

[target."cfg(any(unix, windows))".dependencies.tilo-socket]
version = "=0.5.1"

[target."cfg(any(unix, windows))".dependencies.wire-frame]
version = "=0.5.1"
package = "tilo-wire-frame"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.workspace-hack]
version = "0.1"

[target.'cfg(target_os = "linux")'.dependencies.ashpd]
version = "0.13"
features = [
    "tokio",
    "file_chooser",
    "open_uri",
    "wallpaper",
]
optional = true
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.open]
version = "5.3.5"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3"
features = [
    "std",
    "block2",
    "NSAlert",
    "NSApplication",
    "NSButton",
    "NSControl",
    "NSOpenPanel",
    "NSPanel",
    "NSResponder",
    "NSRunningApplication",
    "NSSavePanel",
    "NSView",
    "NSWindow",
    "NSWorkspace",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
    "std",
    "NSArray",
    "NSString",
    "NSURL",
]
default-features = false

[target.'cfg(target_os = "macos")'.dev-dependencies.objc2-app-kit]
version = "0.3"
features = [
    "std",
    "NSApplication",
    "NSResponder",
    "NSRunningApplication",
]
default-features = false

[target.'cfg(target_os = "macos")'.dev-dependencies.objc2-foundation]
version = "0.3"
features = [
    "std",
    "NSDate",
    "NSRunLoop",
]
default-features = false

[target."cfg(unix)".dependencies.libc]
version = "0.2.186"

[target."cfg(windows)".dependencies.mime_guess]
version = "2.0.5"

[target."cfg(windows)".dependencies.open]
version = "5.3.5"
features = ["shellexecute-on-windows"]

[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = [
    "Win32_Foundation",
    "Win32_System_Com",
    "Win32_UI_Shell",
    "Win32_UI_Shell_Common",
]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
]

[lints.clippy]
allow_attributes_without_reason = "deny"
arithmetic_side_effects = "deny"
as_conversions = "allow"
as_ptr_cast_mut = "deny"
clear_with_drain = "deny"
collection_is_never_read = "deny"
debug_assert_with_mut_call = "deny"
disallowed_methods = "deny"
duration_suboptimal_units = "allow"
equatable_if_let = "deny"
exit = "deny"
expect_used = "deny"
future_not_send = "deny"
indexing_slicing = "deny"
iter_with_drain = "deny"
literal_string_with_formatting_args = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_collect = "deny"
needless_pass_by_ref_mut = "deny"
non_send_fields_in_send_ty = "deny"
or_fun_call = "deny"
panic = "deny"
panic_in_result_fn = "deny"
path_buf_push_overwrite = "deny"
read_zero_byte_vec = "deny"
redundant_clone = "deny"
set_contains_or_insert = "deny"
significant_drop_in_scrutinee = "deny"
significant_drop_tightening = "deny"
string_slice = "deny"
suspicious_operation_groupings = "deny"
todo = "deny"
too_many_arguments = "deny"
trailing_empty_array = "deny"
transmute_undefined_repr = "deny"
unimplemented = "deny"
uninhabited_references = "deny"
unreachable = "deny"
unused_peekable = "deny"
unwrap_used = "deny"
while_float = "deny"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(tilo_no_js)",
    "cfg(tilo_model_split)",
    "cfg(tilo_model_guest)",
]