File cosmic-app-library-1.0.0~alpha.1.obscpio of Package cosmic-app-library
07070100000000000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/.github07070100000001000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000003300000000cosmic-app-library-1.0.0~alpha.1/.github/workflows07070100000002000081A400000000000000000000000166AD2B90000001F4000000000000000000000000000000000000003A00000000cosmic-app-library-1.0.0~alpha.1/.github/workflows/ci.ymlon:
push:
branches: [master_jammy]
pull_request:
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Create blank versions of configured file
run: echo -e "" >> src/config.rs
- name: Run cargo fmt
run: cargo fmt --all -- --check
07070100000003000081A400000000000000000000000166AD2B900000013F000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/.gitignoretarget/
build/
_build/
builddir/
build-aux/app
build-aux/.flatpak-builder/
src/config.rs
*.ui.in~
*.ui~
.flatpak/
.flatpak-builder/
flatpak_app/
vendor
vendor.tar
.cargo/
/result
debian/*
!debian/*install
!debian/*postinst
!debian/changelog
!debian/copyright
!debian/control
!debian/links
!debian/rules
!debian/source
07070100000004000081A400000000000000000000000166AD2B90000005D9000000000000000000000000000000000000003000000000cosmic-app-library-1.0.0~alpha.1/.gitlab-ci.ymlstages:
- check
- test
flatpak:
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-42'
stage: test
tags:
- flatpak
variables:
BUNDLE: "cosmic-app-library-nightly.flatpak"
MANIFEST_PATH: "build-aux/com.system76.CosmicAppLibrary.Devel.json"
FLATPAK_MODULE: "cosmic-app-library"
APP_ID: "com.system76.CosmicAppLibrary.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
script:
- >
xvfb-run -a -s "-screen 0 1024x768x24"
flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
artifacts:
name: 'Flatpak artifacts'
expose_as: 'Get Flatpak bundle here'
when: 'always'
paths:
- "${BUNDLE}"
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt'
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt'
expire_in: 14 days
# Configure and run rustfmt
# Exits and builds fails if on bad format
rustfmt:
image: "rust:slim"
script:
- rustup component add rustfmt
# Create blank versions of our configured files
# so rustfmt does not yell about non-existent files or completely empty files
- echo -e "" >> src/config.rs
- rustc -Vv && cargo -Vv
- cargo fmt --version
- cargo fmt --all -- --color=always --check
07070100000005000081A400000000000000000000000166AD2B900002327A000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/Cargo.lock# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "accesskit"
version = "0.12.2"
source = "git+https://github.com/wash2/accesskit.git?branch=winit-0.29#26f729169cd849970af02be62289606c63572d2d"
[[package]]
name = "accesskit_consumer"
version = "0.17.0"
source = "git+https://github.com/wash2/accesskit.git?branch=winit-0.29#26f729169cd849970af02be62289606c63572d2d"
dependencies = [
"accesskit",
]
[[package]]
name = "accesskit_unix"
version = "0.7.1"
source = "git+https://github.com/wash2/accesskit.git?branch=winit-0.29#26f729169cd849970af02be62289606c63572d2d"
dependencies = [
"accesskit",
"accesskit_consumer",
"atspi",
"futures-lite 1.13.0",
"once_cell",
"serde",
"tokio",
"tokio-stream",
"zbus 3.15.2",
]
[[package]]
name = "addr2line"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678"
dependencies = [
"gimli",
]
[[package]]
name = "adler"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
dependencies = [
"cfg-if",
"once_cell",
"version_check",
"zerocopy",
]
[[package]]
name = "aho-corasick"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
dependencies = [
"memchr",
]
[[package]]
name = "aliasable"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd"
[[package]]
name = "allocator-api2"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
[[package]]
name = "almost"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3aa2999eb46af81abb65c2d30d446778d7e613b60bbf4e174a027e80f90a3c14"
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
dependencies = [
"libc",
]
[[package]]
name = "anstream"
version = "0.6.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon",
"colorchoice",
"is_terminal_polyfill",
"utf8parse",
]
[[package]]
name = "anstyle"
version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
[[package]]
name = "anstyle-parse"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
dependencies = [
"utf8parse",
]
[[package]]
name = "anstyle-query"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "anstyle-wincon"
version = "3.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
dependencies = [
"anstyle",
"windows-sys 0.52.0",
]
[[package]]
name = "anyhow"
version = "1.0.86"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
[[package]]
name = "apply"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f47b57fc4521e3cae26a4d45b5227f8fadee4c345be0fefd8d5d1711afb8aeb9"
[[package]]
name = "approx"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
dependencies = [
"num-traits",
]
[[package]]
name = "arc-swap"
version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457"
[[package]]
name = "arrayref"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a"
[[package]]
name = "arrayvec"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
[[package]]
name = "as-raw-xcb-connection"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
[[package]]
name = "ash"
version = "0.37.3+1.3.251"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39e9c3835d686b0a6084ab4234fcd1b07dbf6e4767dce60874b12356a25ecd4a"
dependencies = [
"libloading 0.7.4",
]
[[package]]
name = "ashpd"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd884d7c72877a94102c3715f3b1cd09ff4fac28221add3e57cfbe25c236d093"
dependencies = [
"async-fs",
"async-net",
"enumflags2",
"futures-channel",
"futures-util",
"rand",
"serde",
"serde_repr",
"tokio",
"url",
"zbus 4.4.0",
]
[[package]]
name = "ashpd"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfe7e0dd0ac5a401dc116ed9f9119cf9decc625600474cb41f0fc0a0050abc9a"
dependencies = [
"enumflags2",
"futures-channel",
"futures-util",
"rand",
"serde",
"serde_repr",
"tokio",
"url",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"zbus 4.4.0",
]
[[package]]
name = "async-broadcast"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c48ccdbf6ca6b121e0f586cbc0e73ae440e56c67c30fa0873b4e110d9c26d2b"
dependencies = [
"event-listener 2.5.3",
"futures-core",
]
[[package]]
name = "async-broadcast"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20cd0e2e25ea8e5f7e9df04578dc6cf5c83577fd09b1a46aaf5c85e1c33f2a7e"
dependencies = [
"event-listener 5.3.1",
"event-listener-strategy",
"futures-core",
"pin-project-lite",
]
[[package]]
name = "async-channel"
version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a"
dependencies = [
"concurrent-queue",
"event-listener-strategy",
"futures-core",
"pin-project-lite",
]
[[package]]
name = "async-executor"
version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7ebdfa2ebdab6b1760375fa7d6f382b9f486eac35fc994625a00e89280bdbb7"
dependencies = [
"async-task",
"concurrent-queue",
"fastrand 2.1.0",
"futures-lite 2.3.0",
"slab",
]
[[package]]
name = "async-fs"
version = "2.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a"
dependencies = [
"async-lock 3.4.0",
"blocking",
"futures-lite 2.3.0",
]
[[package]]
name = "async-io"
version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af"
dependencies = [
"async-lock 2.8.0",
"autocfg",
"cfg-if",
"concurrent-queue",
"futures-lite 1.13.0",
"log",
"parking",
"polling 2.8.0",
"rustix 0.37.27",
"slab",
"socket2 0.4.10",
"waker-fn",
]
[[package]]
name = "async-io"
version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964"
dependencies = [
"async-lock 3.4.0",
"cfg-if",
"concurrent-queue",
"futures-io",
"futures-lite 2.3.0",
"parking",
"polling 3.7.2",
"rustix 0.38.34",
"slab",
"tracing",
"windows-sys 0.52.0",
]
[[package]]
name = "async-lock"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b"
dependencies = [
"event-listener 2.5.3",
]
[[package]]
name = "async-lock"
version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18"
dependencies = [
"event-listener 5.3.1",
"event-listener-strategy",
"pin-project-lite",
]
[[package]]
name = "async-net"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"
dependencies = [
"async-io 2.3.3",
"blocking",
"futures-lite 2.3.0",
]
[[package]]
name = "async-process"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea6438ba0a08d81529c69b36700fa2f95837bfe3e776ab39cde9c14d9149da88"
dependencies = [
"async-io 1.13.0",
"async-lock 2.8.0",
"async-signal",
"blocking",
"cfg-if",
"event-listener 3.1.0",
"futures-lite 1.13.0",
"rustix 0.38.34",
"windows-sys 0.48.0",
]
[[package]]
name = "async-process"
version = "2.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7eda79bbd84e29c2b308d1dc099d7de8dcc7035e48f4bf5dc4a531a44ff5e2a"
dependencies = [
"async-channel",
"async-io 2.3.3",
"async-lock 3.4.0",
"async-signal",
"async-task",
"blocking",
"cfg-if",
"event-listener 5.3.1",
"futures-lite 2.3.0",
"rustix 0.38.34",
"tracing",
"windows-sys 0.52.0",
]
[[package]]
name = "async-recursion"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "async-signal"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfb3634b73397aa844481f814fad23bbf07fdb0eabec10f2eb95e58944b1ec32"
dependencies = [
"async-io 2.3.3",
"async-lock 3.4.0",
"atomic-waker",
"cfg-if",
"futures-core",
"futures-io",
"rustix 0.38.34",
"signal-hook-registry",
"slab",
"windows-sys 0.52.0",
]
[[package]]
name = "async-task"
version = "4.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
[[package]]
name = "async-trait"
version = "0.1.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "atomic-waker"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]]
name = "atomicwrites"
version = "0.4.2"
source = "git+https://github.com/jackpot51/rust-atomicwrites#043ab4859d53ffd3d55334685303d8df39c9f768"
dependencies = [
"rustix 0.38.34",
"tempfile",
"windows-sys 0.48.0",
]
[[package]]
name = "atspi"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6059f350ab6f593ea00727b334265c4dfc7fd442ee32d264794bd9bdc68e87ca"
dependencies = [
"atspi-common",
"atspi-connection",
"atspi-proxies",
]
[[package]]
name = "atspi-common"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92af95f966d2431f962bc632c2e68eda7777330158bf640c4af4249349b2cdf5"
dependencies = [
"enumflags2",
"serde",
"static_assertions",
"zbus 3.15.2",
"zbus_names 2.6.1",
"zvariant 3.15.2",
]
[[package]]
name = "atspi-connection"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0c65e7d70f86d4c0e3b2d585d9bf3f979f0b19d635a336725a88d279f76b939"
dependencies = [
"atspi-common",
"atspi-proxies",
"futures-lite 1.13.0",
"zbus 3.15.2",
]
[[package]]
name = "atspi-proxies"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6495661273703e7a229356dcbe8c8f38223d697aacfaf0e13590a9ac9977bb52"
dependencies = [
"atspi-common",
"serde",
"zbus 3.15.2",
]
[[package]]
name = "autocfg"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
[[package]]
name = "backtrace"
version = "0.3.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a"
dependencies = [
"addr2line",
"cc",
"cfg-if",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
]
[[package]]
name = "base64"
version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
[[package]]
name = "bit-set"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
dependencies = [
"bit-vec",
]
[[package]]
name = "bit-vec"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
[[package]]
name = "bit_field"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc827186963e592360843fb5ba4b973e145841266c1357f7180c43526f2e5b61"
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
dependencies = [
"serde",
]
[[package]]
name = "block"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
[[package]]
name = "block-buffer"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
dependencies = [
"generic-array",
]
[[package]]
name = "blocking"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea"
dependencies = [
"async-channel",
"async-task",
"futures-io",
"futures-lite 2.3.0",
"piper",
]
[[package]]
name = "bumpalo"
version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "by_address"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06"
[[package]]
name = "bytemuck"
version = "1.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ee891b04274a59bd38b412188e24b849617b2e45a0fd8d057deb63e7403761b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "byteorder"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]]
name = "bytes"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952"
[[package]]
name = "calloop"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec"
dependencies = [
"bitflags 2.6.0",
"log",
"polling 3.7.2",
"rustix 0.38.34",
"slab",
"thiserror",
]
[[package]]
name = "calloop-wayland-source"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
dependencies = [
"calloop",
"rustix 0.38.34",
"wayland-backend",
"wayland-client",
]
[[package]]
name = "cc"
version = "1.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f"
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]]
name = "cfg_aliases"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chrono"
version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"wasm-bindgen",
"windows-targets 0.52.6",
]
[[package]]
name = "clap"
version = "4.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35723e6a11662c2afb578bcf0b88bf6ea8e21282a953428f240574fcc3a2b5b3"
dependencies = [
"clap_builder",
"clap_derive",
]
[[package]]
name = "clap_builder"
version = "4.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49eb96cbfa7cfa35017b7cd548c75b14c3118c98b423041d70562665e07fb0fa"
dependencies = [
"anstream",
"anstyle",
"clap_lex",
"strsim 0.11.1",
]
[[package]]
name = "clap_derive"
version = "4.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d029b67f89d30bbb547c89fd5161293c0aec155fc691d7924b64550662db93e"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "clap_lex"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
[[package]]
name = "clipboard-win"
version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15efe7a882b08f34e38556b14f2fb3daa98769d06c7f0c1b076dfd0d983bc892"
dependencies = [
"error-code",
]
[[package]]
name = "clipboard_macos"
version = "0.1.0"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-dnd-8#7c59b07b9172d8e0401f7e06609e1050575309c9"
dependencies = [
"objc",
"objc-foundation",
"objc_id",
]
[[package]]
name = "clipboard_wayland"
version = "0.2.2"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-dnd-8#7c59b07b9172d8e0401f7e06609e1050575309c9"
dependencies = [
"dnd",
"mime 0.1.0",
"smithay-clipboard",
]
[[package]]
name = "clipboard_x11"
version = "0.4.2"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-dnd-8#7c59b07b9172d8e0401f7e06609e1050575309c9"
dependencies = [
"thiserror",
"x11rb",
]
[[package]]
name = "cocoa"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c"
dependencies = [
"bitflags 1.3.2",
"block",
"cocoa-foundation",
"core-foundation",
"core-graphics",
"foreign-types",
"libc",
"objc",
]
[[package]]
name = "cocoa-foundation"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7"
dependencies = [
"bitflags 1.3.2",
"block",
"core-foundation",
"core-graphics-types",
"libc",
"objc",
]
[[package]]
name = "codespan-reporting"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
dependencies = [
"termcolor",
"unicode-width",
]
[[package]]
name = "color_quant"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
[[package]]
name = "colorchoice"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
[[package]]
name = "com"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e17887fd17353b65b1b2ef1c526c83e26cd72e74f598a8dc1bee13a48f3d9f6"
dependencies = [
"com_macros",
]
[[package]]
name = "com_macros"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d375883580a668c7481ea6631fc1a8863e33cc335bf56bfad8d7e6d4b04b13a5"
dependencies = [
"com_macros_support",
"proc-macro2",
"syn 1.0.109",
]
[[package]]
name = "com_macros_support"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad899a1087a9296d5644792d7cb72b8e34c1bec8e7d4fbc002230169a6e8710c"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "concurrent-queue"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "const-random"
version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359"
dependencies = [
"const-random-macro",
]
[[package]]
name = "const-random-macro"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e"
dependencies = [
"getrandom",
"once_cell",
"tiny-keccak",
]
[[package]]
name = "core-foundation"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "core-foundation-sys"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
[[package]]
name = "core-graphics"
version = "0.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
dependencies = [
"bitflags 1.3.2",
"core-foundation",
"core-graphics-types",
"foreign-types",
"libc",
]
[[package]]
name = "core-graphics-types"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
dependencies = [
"bitflags 1.3.2",
"core-foundation",
"libc",
]
[[package]]
name = "cosmic-app-library"
version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"cosmic-app-list-config",
"current_locale",
"freedesktop-desktop-entry",
"freedesktop-icons",
"futures",
"glob",
"i18n-embed",
"i18n-embed-fl",
"itertools 0.13.0",
"libcosmic",
"log",
"nix 0.28.0",
"notify",
"once_cell",
"pretty_env_logger",
"ron",
"rust-embed",
"serde",
"shlex",
"switcheroo-control",
"tokio",
"url",
"xdg",
"zbus 4.4.0",
]
[[package]]
name = "cosmic-app-list-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-applets#478bb3e500ab1d9e7cbaa1d4d7695d137fbeac8c"
dependencies = [
"libcosmic",
"serde",
]
[[package]]
name = "cosmic-client-toolkit"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-protocols?rev=c8d3a1c#c8d3a1c3d40d16235f4720969a54ed570ec7a976"
dependencies = [
"cosmic-protocols",
"libc",
"smithay-client-toolkit",
"wayland-client",
]
[[package]]
name = "cosmic-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"atomicwrites",
"cosmic-config-derive",
"cosmic-settings-daemon",
"dirs 5.0.1",
"futures-util",
"iced_futures",
"known-folders",
"notify",
"once_cell",
"ron",
"serde",
"tokio",
"tracing",
"xdg",
"zbus 4.4.0",
]
[[package]]
name = "cosmic-config-derive"
version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"quote",
"syn 1.0.109",
]
[[package]]
name = "cosmic-panel-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-panel#d5fc4ddef106bf2bdaf983028f78b9d8e432b3ae"
dependencies = [
"anyhow",
"cosmic-config",
"ron",
"serde",
"smithay-client-toolkit",
"tracing",
"wayland-protocols-wlr",
"xdg-shell-wrapper-config",
]
[[package]]
name = "cosmic-protocols"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-protocols?rev=c8d3a1c#c8d3a1c3d40d16235f4720969a54ed570ec7a976"
dependencies = [
"bitflags 2.6.0",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"wayland-protocols-wlr",
"wayland-scanner",
"wayland-server",
]
[[package]]
name = "cosmic-settings-daemon"
version = "0.1.0"
source = "git+https://github.com/pop-os/dbus-settings-bindings#cd21ddcb1b5cbfc80ab84b34d3c8b1ff3d81179a"
dependencies = [
"zbus 4.4.0",
]
[[package]]
name = "cosmic-text"
version = "0.12.1"
source = "git+https://github.com/pop-os/cosmic-text.git#58c2ccd1fb3daf0abc792f9dd52b5766b7125ccd"
dependencies = [
"bitflags 2.6.0",
"fontdb",
"log",
"rangemap",
"rayon",
"rustc-hash",
"rustybuzz 0.14.1",
"self_cell 1.0.4",
"swash",
"sys-locale",
"ttf-parser 0.21.1",
"unicode-bidi",
"unicode-linebreak",
"unicode-script",
"unicode-segmentation",
]
[[package]]
name = "cosmic-theme"
version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"almost",
"cosmic-config",
"csscolorparser",
"dirs 5.0.1",
"lazy_static",
"palette",
"ron",
"serde",
"serde_json",
"thiserror",
]
[[package]]
name = "cpufeatures"
version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504"
dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
dependencies = [
"cfg-if",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-deque"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
]
[[package]]
name = "crossbeam-epoch"
version = "0.9.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
[[package]]
name = "crunchy"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "crypto-common"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
dependencies = [
"generic-array",
"typenum",
]
[[package]]
name = "css-color"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42aaeae719fd78ce501d77c6cdf01f7e96f26bcd5617a4903a1c2b97e388543a"
[[package]]
name = "csscolorparser"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb2a7d3066da2de787b7f032c736763eb7ae5d355f81a68bab2675a96008b0bf"
dependencies = [
"phf",
"serde",
]
[[package]]
name = "ctor-lite"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f791803201ab277ace03903de1594460708d2d54df6053f2d9e82f592b19e3b"
[[package]]
name = "current_locale"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0be8ddcccda8be68d8e31a421ceea7c79857404daa052434ae30ce2f402cd10"
dependencies = [
"libc",
"objc",
"objc-foundation",
"winapi",
]
[[package]]
name = "cursor-icon"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96a6ac251f4a2aca6b3f91340350eab87ae57c3f127ffeb585e92bd336717991"
[[package]]
name = "d3d12"
version = "0.19.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=20fda69#20fda698341efbdc870b8027d6d49f5bf3f36109"
dependencies = [
"bitflags 2.6.0",
"libloading 0.8.5",
"winapi",
]
[[package]]
name = "darling"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"
dependencies = [
"darling_core",
"darling_macro",
]
[[package]]
name = "darling_core"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim 0.11.1",
"syn 2.0.72",
]
[[package]]
name = "darling_macro"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
dependencies = [
"darling_core",
"quote",
"syn 2.0.72",
]
[[package]]
name = "dashmap"
version = "5.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"
dependencies = [
"cfg-if",
"hashbrown",
"lock_api",
"once_cell",
"parking_lot_core 0.9.10",
]
[[package]]
name = "data-url"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a"
[[package]]
name = "derivative"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "derive_setters"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e8ef033054e131169b8f0f9a7af8f5533a9436fadf3c500ed547f730f07090d"
dependencies = [
"darling",
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "digest"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer",
"crypto-common",
]
[[package]]
name = "dirs"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30baa043103c9d0c2a57cf537cc2f35623889dc0d405e6c3cccfadbc81c71309"
dependencies = [
"dirs-sys 0.3.7",
]
[[package]]
name = "dirs"
version = "5.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
dependencies = [
"dirs-sys 0.4.1",
]
[[package]]
name = "dirs-sys"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
dependencies = [
"libc",
"redox_users",
"winapi",
]
[[package]]
name = "dirs-sys"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
dependencies = [
"libc",
"option-ext",
"redox_users",
"windows-sys 0.48.0",
]
[[package]]
name = "dispatch"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
[[package]]
name = "displaydoc"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "dlib"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"
dependencies = [
"libloading 0.8.5",
]
[[package]]
name = "dlv-list"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "442039f5147480ba31067cb00ada1adae6892028e40e45fc5de7b7df6dcc1b5f"
dependencies = [
"const-random",
]
[[package]]
name = "dnd"
version = "0.1.0"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-dnd-8#7c59b07b9172d8e0401f7e06609e1050575309c9"
dependencies = [
"bitflags 2.6.0",
"mime 0.1.0",
"raw-window-handle",
"smithay-client-toolkit",
"smithay-clipboard",
]
[[package]]
name = "downcast-rs"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
[[package]]
name = "drm"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0f8a69e60d75ae7dab4ef26a59ca99f2a89d4c142089b537775ae0c198bdcde"
dependencies = [
"bitflags 2.6.0",
"bytemuck",
"drm-ffi",
"drm-fourcc",
"rustix 0.38.34",
]
[[package]]
name = "drm-ffi"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41334f8405792483e32ad05fbb9c5680ff4e84491883d2947a4757dc54cb2ac6"
dependencies = [
"drm-sys",
"rustix 0.38.34",
]
[[package]]
name = "drm-fourcc"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4"
[[package]]
name = "drm-sys"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d09ff881f92f118b11105ba5e34ff8f4adf27b30dae8f12e28c193af1c83176"
dependencies = [
"libc",
"linux-raw-sys 0.6.4",
]
[[package]]
name = "either"
version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
[[package]]
name = "endi"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3d8a32ae18130a3c84dd492d4215c3d913c3b07c6b63c2eb3eb7ff1101ab7bf"
[[package]]
name = "enum-repr"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bad30c9c0fa1aaf1ae5010dab11f1117b15d35faf62cda4bbbc53b9987950f18"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "enumflags2"
version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d"
dependencies = [
"enumflags2_derive",
"serde",
]
[[package]]
name = "enumflags2_derive"
version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "env_logger"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
dependencies = [
"humantime",
"is-terminal",
"log",
"regex",
"termcolor",
]
[[package]]
name = "equivalent"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "errno"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "error-code"
version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0474425d51df81997e2f90a21591180b38eccf27292d755f3e30750225c175b"
[[package]]
name = "etagere"
version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e2f1e3be19fb10f549be8c1bf013e8675b4066c445e36eb76d2ebb2f54ee495"
dependencies = [
"euclid",
"svg_fmt",
]
[[package]]
name = "euclid"
version = "0.22.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0f0eb73b934648cd7a4a61f1b15391cd95dab0b4da6e2e66c2a072c144b4a20"
dependencies = [
"num-traits",
]
[[package]]
name = "event-listener"
version = "2.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
[[package]]
name = "event-listener"
version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2"
dependencies = [
"concurrent-queue",
"parking",
"pin-project-lite",
]
[[package]]
name = "event-listener"
version = "5.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba"
dependencies = [
"concurrent-queue",
"parking",
"pin-project-lite",
]
[[package]]
name = "event-listener-strategy"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1"
dependencies = [
"event-listener 5.3.1",
"pin-project-lite",
]
[[package]]
name = "exr"
version = "1.72.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "887d93f60543e9a9362ef8a21beedd0a833c5d9610e18c67abe15a5963dcb1a4"
dependencies = [
"bit_field",
"flume",
"half",
"lebe",
"miniz_oxide",
"rayon-core",
"smallvec",
"zune-inflate",
]
[[package]]
name = "fast-srgb8"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd2e7510819d6fbf51a5545c8f922716ecfb14df168a3242f7d33e0239efe6a1"
[[package]]
name = "fastrand"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be"
dependencies = [
"instant",
]
[[package]]
name = "fastrand"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a"
[[package]]
name = "fdeflate"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645"
dependencies = [
"simd-adler32",
]
[[package]]
name = "filetime"
version = "0.2.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd"
dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.4.1",
"windows-sys 0.52.0",
]
[[package]]
name = "find-crate"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59a98bbaacea1c0eb6a0876280051b892eb73594fd90cf3b20e9c817029c57d2"
dependencies = [
"toml 0.5.11",
]
[[package]]
name = "flate2"
version = "1.0.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
name = "float-cmp"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
dependencies = [
"num-traits",
]
[[package]]
name = "float_next_after"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8"
[[package]]
name = "fluent"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb74634707bebd0ce645a981148e8fb8c7bccd4c33c652aeffd28bf2f96d555a"
dependencies = [
"fluent-bundle",
"unic-langid",
]
[[package]]
name = "fluent-bundle"
version = "0.15.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fe0a21ee80050c678013f82edf4b705fe2f26f1f9877593d13198612503f493"
dependencies = [
"fluent-langneg",
"fluent-syntax",
"intl-memoizer",
"intl_pluralrules",
"rustc-hash",
"self_cell 0.10.3",
"smallvec",
"unic-langid",
]
[[package]]
name = "fluent-langneg"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c4ad0989667548f06ccd0e306ed56b61bd4d35458d54df5ec7587c0e8ed5e94"
dependencies = [
"unic-langid",
]
[[package]]
name = "fluent-syntax"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a530c4694a6a8d528794ee9bbd8ba0122e779629ac908d15ad5a7ae7763a33d"
dependencies = [
"thiserror",
]
[[package]]
name = "flume"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181"
dependencies = [
"spin",
]
[[package]]
name = "fnv"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "font-types"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34fd7136aca682873d859ef34494ab1a7d3f57ecd485ed40eb6437ee8c85aa29"
dependencies = [
"bytemuck",
]
[[package]]
name = "fontconfig-parser"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a595cb550439a117696039dfc69830492058211b771a2a165379f2a1a53d84d"
dependencies = [
"roxmltree",
]
[[package]]
name = "fontdb"
version = "0.16.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0299020c3ef3f60f526a4f64ab4a3d4ce116b1acbf24cdd22da0068e5d81dc3"
dependencies = [
"fontconfig-parser",
"log",
"memmap2 0.9.4",
"slotmap",
"tinyvec",
"ttf-parser 0.20.0",
]
[[package]]
name = "foreign-types"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
dependencies = [
"foreign-types-macros",
"foreign-types-shared",
]
[[package]]
name = "foreign-types-macros"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "foreign-types-shared"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
dependencies = [
"percent-encoding",
]
[[package]]
name = "fraction"
version = "0.15.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f158e3ff0a1b334408dc9fb811cd99b446986f4d8b741bb08f9df1604085ae7"
dependencies = [
"lazy_static",
"num",
]
[[package]]
name = "freedesktop-desktop-entry"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c201444ddafb5506fe85265b48421664ff4617e3b7090ef99e42a0070c1aead0"
dependencies = [
"dirs 3.0.2",
"gettext-rs",
"memchr",
"thiserror",
"xdg",
]
[[package]]
name = "freedesktop-icons"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8ef34245e0540c9a3ce7a28340b98d2c12b75da0d446da4e8224923fcaa0c16"
dependencies = [
"dirs 5.0.1",
"once_cell",
"rust-ini",
"thiserror",
"xdg",
]
[[package]]
name = "fsevent-sys"
version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2"
dependencies = [
"libc",
]
[[package]]
name = "futures"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0"
dependencies = [
"futures-channel",
"futures-core",
"futures-executor",
"futures-io",
"futures-sink",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-channel"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78"
dependencies = [
"futures-core",
"futures-sink",
]
[[package]]
name = "futures-core"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"
[[package]]
name = "futures-executor"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d"
dependencies = [
"futures-core",
"futures-task",
"futures-util",
"num_cpus",
]
[[package]]
name = "futures-io"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
[[package]]
name = "futures-lite"
version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce"
dependencies = [
"fastrand 1.9.0",
"futures-core",
"futures-io",
"memchr",
"parking",
"pin-project-lite",
"waker-fn",
]
[[package]]
name = "futures-lite"
version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5"
dependencies = [
"fastrand 2.1.0",
"futures-core",
"futures-io",
"parking",
"pin-project-lite",
]
[[package]]
name = "futures-macro"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "futures-sink"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"
[[package]]
name = "futures-task"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
[[package]]
name = "futures-util"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"
dependencies = [
"futures-channel",
"futures-core",
"futures-io",
"futures-macro",
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite",
"pin-utils",
"slab",
]
[[package]]
name = "generic-array"
version = "0.14.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
dependencies = [
"typenum",
"version_check",
]
[[package]]
name = "gethostname"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0176e0459c2e4a1fe232f984bca6890e681076abb9934f6cea7c326f3fc47818"
dependencies = [
"libc",
"windows-targets 0.48.5",
]
[[package]]
name = "getrandom"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
dependencies = [
"cfg-if",
"libc",
"wasi",
]
[[package]]
name = "gettext-rs"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e49ea8a8fad198aaa1f9655a2524b64b70eb06b2f3ff37da407566c93054f364"
dependencies = [
"gettext-sys",
"locale_config",
]
[[package]]
name = "gettext-sys"
version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c63ce2e00f56a206778276704bbe38564c8695249fdc8f354b4ef71c57c3839d"
dependencies = [
"cc",
"temp-dir",
]
[[package]]
name = "gif"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80792593675e051cf94a4b111980da2ba60d4a83e43e0048c5693baab3977045"
dependencies = [
"color_quant",
"weezl",
]
[[package]]
name = "gif"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fb2d69b19215e18bb912fa30f7ce15846e301408695e44e0ef719f1da9e19f2"
dependencies = [
"color_quant",
"weezl",
]
[[package]]
name = "gimli"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd"
[[package]]
name = "gl_generator"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d"
dependencies = [
"khronos_api",
"log",
"xml-rs",
]
[[package]]
name = "glam"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945"
[[package]]
name = "glob"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]]
name = "glow"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd348e04c43b32574f2de31c8bb397d96c9fcfa1371bd4ca6d8bdc464ab121b1"
dependencies = [
"js-sys",
"slotmap",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "glutin_wgl_sys"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c8098adac955faa2d31079b65dc48841251f69efd3ac25477903fc424362ead"
dependencies = [
"gl_generator",
]
[[package]]
name = "glyphon"
version = "0.5.0"
source = "git+https://github.com/pop-os/glyphon.git?tag=v0.5.0#1b0646ff8f74da92d3be704dfc2257d7f4d7eed8"
dependencies = [
"cosmic-text",
"etagere",
"lru",
"wgpu",
]
[[package]]
name = "gpu-alloc"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
dependencies = [
"bitflags 2.6.0",
"gpu-alloc-types",
]
[[package]]
name = "gpu-alloc-types"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
dependencies = [
"bitflags 2.6.0",
]
[[package]]
name = "gpu-allocator"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f56f6318968d03c18e1bcf4857ff88c61157e9da8e47c5f29055d60e1228884"
dependencies = [
"log",
"presser",
"thiserror",
"winapi",
"windows",
]
[[package]]
name = "gpu-descriptor"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc11df1ace8e7e564511f53af41f3e42ddc95b56fd07b3f4445d2a6048bc682c"
dependencies = [
"bitflags 2.6.0",
"gpu-descriptor-types",
"hashbrown",
]
[[package]]
name = "gpu-descriptor-types"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bf0b36e6f090b7e1d8a4b49c0cb81c1f8376f72198c65dd3ad9ff3556b8b78c"
dependencies = [
"bitflags 2.6.0",
]
[[package]]
name = "grid"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1df00eed8d1f0db937f6be10e46e8072b0671accb504cf0f959c5c52c679f5b9"
[[package]]
name = "guillotiere"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b62d5865c036cb1393e23c50693df631d3f5d7bcca4c04fe4cc0fd592e74a782"
dependencies = [
"euclid",
"svg_fmt",
]
[[package]]
name = "half"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888"
dependencies = [
"cfg-if",
"crunchy",
]
[[package]]
name = "hashbrown"
version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
dependencies = [
"ahash",
"allocator-api2",
]
[[package]]
name = "hassle-rs"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af2a7e73e1f34c48da31fb668a907f250794837e08faa144fd24f0b8b741e890"
dependencies = [
"bitflags 2.6.0",
"com",
"libc",
"libloading 0.8.5",
"thiserror",
"widestring",
"winapi",
]
[[package]]
name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
name = "heck"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "hermit-abi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
[[package]]
name = "hermit-abi"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"
[[package]]
name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hexf-parse"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
[[package]]
name = "humantime"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "i18n-config"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c9ce3c48cbc21fd5b22b9331f32b5b51f6ad85d969b99e793427332e76e7640"
dependencies = [
"log",
"serde",
"serde_derive",
"thiserror",
"toml 0.8.16",
"unic-langid",
]
[[package]]
name = "i18n-embed"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94205d95764f5bb9db9ea98fa77f89653365ca748e27161f5bbea2ffd50e459c"
dependencies = [
"arc-swap",
"fluent",
"fluent-langneg",
"fluent-syntax",
"i18n-embed-impl",
"intl-memoizer",
"lazy_static",
"locale_config",
"log",
"parking_lot 0.12.3",
"rust-embed",
"thiserror",
"unic-langid",
"walkdir",
]
[[package]]
name = "i18n-embed-fl"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8241a781f49e923415e106fcd1f89c3fab92cc9f699a521c56e95dee273903d3"
dependencies = [
"dashmap",
"find-crate",
"fluent",
"fluent-syntax",
"i18n-config",
"i18n-embed",
"lazy_static",
"proc-macro-error",
"proc-macro2",
"quote",
"strsim 0.10.0",
"syn 2.0.72",
"unic-langid",
]
[[package]]
name = "i18n-embed-impl"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81093c4701672f59416582fe3145676126fd23ba5db910acad0793c1108aaa58"
dependencies = [
"find-crate",
"i18n-config",
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "iana-time-zone"
version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows-core",
]
[[package]]
name = "iana-time-zone-haiku"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
dependencies = [
"cc",
]
[[package]]
name = "iced"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"dnd",
"iced_accessibility",
"iced_core",
"iced_futures",
"iced_renderer",
"iced_sctk",
"iced_widget",
"image",
"mime 0.1.0",
"thiserror",
"window_clipboard",
]
[[package]]
name = "iced_accessibility"
version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"accesskit",
"accesskit_unix",
]
[[package]]
name = "iced_core"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"bitflags 2.6.0",
"dnd",
"iced_accessibility",
"log",
"mime 0.1.0",
"num-traits",
"palette",
"raw-window-handle",
"serde",
"smithay-client-toolkit",
"smol_str",
"thiserror",
"web-time",
"window_clipboard",
"xxhash-rust",
]
[[package]]
name = "iced_futures"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"futures",
"iced_core",
"log",
"tokio",
"wasm-bindgen-futures",
"wasm-timer",
]
[[package]]
name = "iced_graphics"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"bitflags 2.6.0",
"bytemuck",
"cosmic-text",
"glam",
"half",
"iced_core",
"iced_futures",
"image",
"kamadak-exif",
"log",
"lyon_path",
"once_cell",
"raw-window-handle",
"rustc-hash",
"thiserror",
"unicode-segmentation",
"xxhash-rust",
]
[[package]]
name = "iced_renderer"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"iced_graphics",
"iced_tiny_skia",
"iced_wgpu",
"log",
"thiserror",
]
[[package]]
name = "iced_runtime"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"dnd",
"iced_accessibility",
"iced_core",
"iced_futures",
"smithay-client-toolkit",
"thiserror",
"window_clipboard",
]
[[package]]
name = "iced_sctk"
version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"enum-repr",
"float-cmp",
"futures",
"iced_futures",
"iced_graphics",
"iced_runtime",
"iced_style",
"itertools 0.12.1",
"lazy_static",
"raw-window-handle",
"smithay-client-toolkit",
"thiserror",
"tracing",
"wayland-backend",
"wayland-protocols",
"window_clipboard",
"xkbcommon",
"xkbcommon-dl",
"xkeysym",
]
[[package]]
name = "iced_style"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"iced_core",
"once_cell",
"palette",
]
[[package]]
name = "iced_tiny_skia"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"bytemuck",
"cosmic-text",
"iced_graphics",
"kurbo",
"log",
"resvg",
"rustc-hash",
"softbuffer",
"tiny-skia",
"xxhash-rust",
]
[[package]]
name = "iced_wgpu"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"as-raw-xcb-connection",
"bitflags 2.6.0",
"bytemuck",
"futures",
"glam",
"glyphon",
"guillotiere",
"iced_graphics",
"log",
"lyon",
"once_cell",
"raw-window-handle",
"resvg",
"rustix 0.38.34",
"smithay-client-toolkit",
"tiny-xlib",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"wayland-sys",
"wgpu",
"x11rb",
]
[[package]]
name = "iced_widget"
version = "0.12.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"dnd",
"iced_renderer",
"iced_runtime",
"iced_style",
"num-traits",
"ouroboros",
"smithay-client-toolkit",
"thiserror",
"unicode-segmentation",
"window_clipboard",
]
[[package]]
name = "ident_case"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
dependencies = [
"unicode-bidi",
"unicode-normalization",
]
[[package]]
name = "image"
version = "0.24.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"
dependencies = [
"bytemuck",
"byteorder",
"color_quant",
"exr",
"gif 0.13.1",
"jpeg-decoder",
"num-traits",
"png",
"qoi",
"tiff",
]
[[package]]
name = "imagesize"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "029d73f573d8e8d63e6d5020011d3255b28c3ba85d6cf870a07184ed23de9284"
[[package]]
name = "indexmap"
version = "2.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
dependencies = [
"equivalent",
"hashbrown",
]
[[package]]
name = "inotify"
version = "0.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff"
dependencies = [
"bitflags 1.3.2",
"inotify-sys",
"libc",
]
[[package]]
name = "inotify-sys"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb"
dependencies = [
"libc",
]
[[package]]
name = "instant"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"
dependencies = [
"cfg-if",
]
[[package]]
name = "intl-memoizer"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe22e020fce238ae18a6d5d8c502ee76a52a6e880d99477657e6acc30ec57bda"
dependencies = [
"type-map",
"unic-langid",
]
[[package]]
name = "intl_pluralrules"
version = "7.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "078ea7b7c29a2b4df841a7f6ac8775ff6074020c6776d48491ce2268e068f972"
dependencies = [
"unic-langid",
]
[[package]]
name = "io-lifetimes"
version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
dependencies = [
"hermit-abi 0.3.9",
"libc",
"windows-sys 0.48.0",
]
[[package]]
name = "io-lifetimes"
version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a611371471e98973dbcab4e0ec66c31a10bc356eeb4d54a0e05eac8158fe38c"
[[package]]
name = "is-terminal"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b"
dependencies = [
"hermit-abi 0.3.9",
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "is_terminal_polyfill"
version = "1.70.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
[[package]]
name = "itertools"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
dependencies = [
"either",
]
[[package]]
name = "itertools"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
[[package]]
name = "jpeg-decoder"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0"
dependencies = [
"rayon",
]
[[package]]
name = "js-sys"
version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "kamadak-exif"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef4fc70d0ab7e5b6bafa30216a6b48705ea964cdfc29c050f2412295eba58077"
dependencies = [
"mutate_once",
]
[[package]]
name = "khronos-egl"
version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
dependencies = [
"libc",
"libloading 0.8.5",
"pkg-config",
]
[[package]]
name = "khronos_api"
version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
[[package]]
name = "known-folders"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4397c789f2709d23cfcb703b316e0766a8d4b17db2d47b0ab096ef6047cae1d8"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "kqueue"
version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c"
dependencies = [
"kqueue-sys",
"libc",
]
[[package]]
name = "kqueue-sys"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b"
dependencies = [
"bitflags 1.3.2",
"libc",
]
[[package]]
name = "kurbo"
version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd85a5776cd9500c2e2059c8c76c3b01528566b7fcbaf8098b55a33fc298849b"
dependencies = [
"arrayvec",
]
[[package]]
name = "lazy_static"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "lebe"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
[[package]]
name = "libc"
version = "0.2.155"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
[[package]]
name = "libcosmic"
version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/#4f77edd249e1c9cd525232050cec00c752ce7860"
dependencies = [
"apply",
"ashpd 0.9.1",
"chrono",
"cosmic-client-toolkit",
"cosmic-config",
"cosmic-panel-config",
"cosmic-settings-daemon",
"cosmic-theme",
"css-color",
"derive_setters",
"fraction",
"freedesktop-desktop-entry",
"freedesktop-icons",
"iced",
"iced_core",
"iced_futures",
"iced_renderer",
"iced_runtime",
"iced_sctk",
"iced_style",
"iced_tiny_skia",
"iced_wgpu",
"iced_widget",
"lazy_static",
"libc",
"mime 0.3.17",
"palette",
"rfd",
"ron",
"rustix 0.38.34",
"serde",
"shlex",
"slotmap",
"taffy",
"textdistance",
"thiserror",
"tokio",
"tracing",
"unicode-segmentation",
"url",
"zbus 4.4.0",
]
[[package]]
name = "libloading"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
dependencies = [
"cfg-if",
"winapi",
]
[[package]]
name = "libloading"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
dependencies = [
"cfg-if",
"windows-targets 0.52.6",
]
[[package]]
name = "libm"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
[[package]]
name = "libredox"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
dependencies = [
"bitflags 2.6.0",
"libc",
]
[[package]]
name = "linux-raw-sys"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
[[package]]
name = "linux-raw-sys"
version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
[[package]]
name = "linux-raw-sys"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0b5399f6804fbab912acbd8878ed3532d506b7c951b8f9f164ef90fef39e3f4"
[[package]]
name = "locale_config"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d2c35b16f4483f6c26f0e4e9550717a2f6575bcd6f12a53ff0c490a94a6934"
dependencies = [
"lazy_static",
"objc",
"objc-foundation",
"regex",
"winapi",
]
[[package]]
name = "lock_api"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
dependencies = [
"autocfg",
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]]
name = "lru"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc"
dependencies = [
"hashbrown",
]
[[package]]
name = "lyon"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91e7f9cda98b5430809e63ca5197b06c7d191bf7e26dfc467d5a3f0290e2a74f"
dependencies = [
"lyon_algorithms",
"lyon_tessellation",
]
[[package]]
name = "lyon_algorithms"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3bca95f9a4955b3e4a821fbbcd5edfbd9be2a9a50bb5758173e5358bfb4c623"
dependencies = [
"lyon_path",
"num-traits",
]
[[package]]
name = "lyon_geom"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edecfb8d234a2b0be031ab02ebcdd9f3b9ee418fb35e265f7a540a48d197bff9"
dependencies = [
"arrayvec",
"euclid",
"num-traits",
]
[[package]]
name = "lyon_path"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c08a606c7a59638d6c6aa18ac91a06aa9fb5f765a7efb27e6a4da58700740d7"
dependencies = [
"lyon_geom",
"num-traits",
]
[[package]]
name = "lyon_tessellation"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "579d42360a4b09846eff2feef28f538696c7d6c7439bfa65874ff3cbe0951b2c"
dependencies = [
"float_next_after",
"lyon_path",
"num-traits",
]
[[package]]
name = "malloc_buf"
version = "0.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
dependencies = [
"libc",
]
[[package]]
name = "memchr"
version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]]
name = "memmap2"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a5a03cefb0d953ec0be133036f14e109412fa594edc2f77227249db66cc3ed"
dependencies = [
"libc",
]
[[package]]
name = "memmap2"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322"
dependencies = [
"libc",
]
[[package]]
name = "memoffset"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4"
dependencies = [
"autocfg",
]
[[package]]
name = "memoffset"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
dependencies = [
"autocfg",
]
[[package]]
name = "metal"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c43f73953f8cbe511f021b58f18c3ce1c3d1ae13fe953293e13345bf83217f25"
dependencies = [
"bitflags 2.6.0",
"block",
"core-graphics-types",
"foreign-types",
"log",
"objc",
"paste",
]
[[package]]
name = "mime"
version = "0.1.0"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-dnd-8#7c59b07b9172d8e0401f7e06609e1050575309c9"
dependencies = [
"smithay-clipboard",
]
[[package]]
name = "mime"
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
[[package]]
name = "miniz_oxide"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08"
dependencies = [
"adler",
"simd-adler32",
]
[[package]]
name = "mio"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"
dependencies = [
"libc",
"log",
"wasi",
"windows-sys 0.48.0",
]
[[package]]
name = "mio"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4569e456d394deccd22ce1c1913e6ea0e54519f577285001215d33557431afe4"
dependencies = [
"hermit-abi 0.3.9",
"libc",
"wasi",
"windows-sys 0.52.0",
]
[[package]]
name = "mutate_once"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16cf681a23b4d0a43fc35024c176437f9dcd818db34e0f42ab456a0ee5ad497b"
[[package]]
name = "naga"
version = "0.19.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=20fda69#20fda698341efbdc870b8027d6d49f5bf3f36109"
dependencies = [
"arrayvec",
"bit-set",
"bitflags 2.6.0",
"codespan-reporting",
"hexf-parse",
"indexmap",
"log",
"num-traits",
"rustc-hash",
"spirv",
"termcolor",
"thiserror",
"unicode-xid",
]
[[package]]
name = "nix"
version = "0.26.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b"
dependencies = [
"bitflags 1.3.2",
"cfg-if",
"libc",
"memoffset 0.7.1",
]
[[package]]
name = "nix"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
dependencies = [
"bitflags 2.6.0",
"cfg-if",
"cfg_aliases 0.1.1",
"libc",
]
[[package]]
name = "nix"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
dependencies = [
"bitflags 2.6.0",
"cfg-if",
"cfg_aliases 0.2.1",
"libc",
"memoffset 0.9.1",
]
[[package]]
name = "notify"
version = "6.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d"
dependencies = [
"bitflags 2.6.0",
"crossbeam-channel",
"filetime",
"fsevent-sys",
"inotify",
"kqueue",
"libc",
"log",
"mio 0.8.11",
"walkdir",
"windows-sys 0.48.0",
]
[[package]]
name = "num"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
dependencies = [
"num-bigint",
"num-complex",
"num-integer",
"num-iter",
"num-rational",
"num-traits",
]
[[package]]
name = "num-bigint"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
dependencies = [
"num-integer",
"num-traits",
]
[[package]]
name = "num-complex"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
dependencies = [
"num-traits",
]
[[package]]
name = "num-integer"
version = "0.1.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
dependencies = [
"num-traits",
]
[[package]]
name = "num-iter"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
[[package]]
name = "num-rational"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
dependencies = [
"num-bigint",
"num-integer",
"num-traits",
]
[[package]]
name = "num-traits"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
"libm",
]
[[package]]
name = "num_cpus"
version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
dependencies = [
"hermit-abi 0.3.9",
"libc",
]
[[package]]
name = "objc"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
dependencies = [
"malloc_buf",
"objc_exception",
]
[[package]]
name = "objc-foundation"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
dependencies = [
"block",
"objc",
"objc_id",
]
[[package]]
name = "objc_exception"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4"
dependencies = [
"cc",
]
[[package]]
name = "objc_id"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
dependencies = [
"objc",
]
[[package]]
name = "object"
version = "0.36.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e"
dependencies = [
"memchr",
]
[[package]]
name = "once_cell"
version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]]
name = "option-ext"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
[[package]]
name = "ordered-multimap"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49203cdcae0030493bad186b28da2fa25645fa276a51b6fec8010d281e02ef79"
dependencies = [
"dlv-list",
"hashbrown",
]
[[package]]
name = "ordered-stream"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
dependencies = [
"futures-core",
"pin-project-lite",
]
[[package]]
name = "ouroboros"
version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2ba07320d39dfea882faa70554b4bd342a5f273ed59ba7c1c6b4c840492c954"
dependencies = [
"aliasable",
"ouroboros_macro",
"static_assertions",
]
[[package]]
name = "ouroboros_macro"
version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec4c6225c69b4ca778c0aea097321a64c421cf4577b331c61b229267edabb6f8"
dependencies = [
"heck 0.4.1",
"proc-macro-error",
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "palette"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cbf71184cc5ecc2e4e1baccdb21026c20e5fc3dcf63028a086131b3ab00b6e6"
dependencies = [
"approx",
"fast-srgb8",
"palette_derive",
"phf",
"serde",
]
[[package]]
name = "palette_derive"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5030daf005bface118c096f510ffb781fc28f9ab6a32ab224d8631be6851d30"
dependencies = [
"by_address",
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "parking"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae"
[[package]]
name = "parking_lot"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
dependencies = [
"instant",
"lock_api",
"parking_lot_core 0.8.6",
]
[[package]]
name = "parking_lot"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
dependencies = [
"lock_api",
"parking_lot_core 0.9.10",
]
[[package]]
name = "parking_lot_core"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc"
dependencies = [
"cfg-if",
"instant",
"libc",
"redox_syscall 0.2.16",
"smallvec",
"winapi",
]
[[package]]
name = "parking_lot_core"
version = "0.9.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.5.3",
"smallvec",
"windows-targets 0.52.6",
]
[[package]]
name = "paste"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
[[package]]
name = "percent-encoding"
version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "phf"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
dependencies = [
"phf_macros",
"phf_shared",
]
[[package]]
name = "phf_generator"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
dependencies = [
"phf_shared",
"rand",
]
[[package]]
name = "phf_macros"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"
dependencies = [
"phf_generator",
"phf_shared",
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "phf_shared"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
dependencies = [
"siphasher",
]
[[package]]
name = "pico-args"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315"
[[package]]
name = "pin-project-lite"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"
[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "piper"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391"
dependencies = [
"atomic-waker",
"fastrand 2.1.0",
"futures-io",
]
[[package]]
name = "pkg-config"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
[[package]]
name = "png"
version = "0.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1"
dependencies = [
"bitflags 1.3.2",
"crc32fast",
"fdeflate",
"flate2",
"miniz_oxide",
]
[[package]]
name = "polling"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce"
dependencies = [
"autocfg",
"bitflags 1.3.2",
"cfg-if",
"concurrent-queue",
"libc",
"log",
"pin-project-lite",
"windows-sys 0.48.0",
]
[[package]]
name = "polling"
version = "3.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b"
dependencies = [
"cfg-if",
"concurrent-queue",
"hermit-abi 0.4.0",
"pin-project-lite",
"rustix 0.38.34",
"tracing",
"windows-sys 0.52.0",
]
[[package]]
name = "pollster"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22686f4785f02a4fcc856d3b3bb19bf6c8160d103f7a99cc258bddd0251dc7f2"
[[package]]
name = "ppv-lite86"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "presser"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
[[package]]
name = "pretty_env_logger"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "865724d4dbe39d9f3dd3b52b88d859d66bcb2d6a0acfd5ea68a65fb66d4bdc1c"
dependencies = [
"env_logger",
"log",
]
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
"once_cell",
"toml_edit 0.19.15",
]
[[package]]
name = "proc-macro-crate"
version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284"
dependencies = [
"toml_edit 0.21.1",
]
[[package]]
name = "proc-macro-error"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2",
"quote",
"syn 1.0.109",
"version_check",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2",
"quote",
"version_check",
]
[[package]]
name = "proc-macro2"
version = "1.0.86"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
dependencies = [
"unicode-ident",
]
[[package]]
name = "profiling"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43d84d1d7a6ac92673717f9f6d1518374ef257669c24ebc5ac25d5033828be58"
[[package]]
name = "qoi"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"
dependencies = [
"bytemuck",
]
[[package]]
name = "quick-xml"
version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f24d770aeca0eacb81ac29dfbc55ebcc09312fdd1f8bbecdc7e4a84e000e3b4"
dependencies = [
"memchr",
]
[[package]]
name = "quote"
version = "1.0.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
dependencies = [
"proc-macro2",
]
[[package]]
name = "rand"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
"rand_chacha",
"rand_core",
]
[[package]]
name = "rand_chacha"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
"rand_core",
]
[[package]]
name = "rand_core"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
"getrandom",
]
[[package]]
name = "range-alloc"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8a99fddc9f0ba0a85884b8d14e3592853e787d581ca1816c91349b10e4eeab"
[[package]]
name = "rangemap"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f60fcc7d6849342eff22c4350c8b9a989ee8ceabc4b481253e8946b9fe83d684"
[[package]]
name = "raw-window-handle"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
[[package]]
name = "rayon"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"
dependencies = [
"either",
"rayon-core",
]
[[package]]
name = "rayon-core"
version = "1.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
dependencies = [
"crossbeam-deque",
"crossbeam-utils",
]
[[package]]
name = "rctree"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b42e27ef78c35d3998403c1d26f3efd9e135d3e5121b0a4845cc5cc27547f4f"
[[package]]
name = "read-fonts"
version = "0.19.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8b8af39d1f23869711ad4cea5e7835a20daa987f80232f7f2a2374d648ca64d"
dependencies = [
"bytemuck",
"font-types",
]
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_syscall"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_syscall"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
dependencies = [
"bitflags 2.6.0",
]
[[package]]
name = "redox_users"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891"
dependencies = [
"getrandom",
"libredox",
"thiserror",
]
[[package]]
name = "regex"
version = "1.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata",
"regex-syntax",
]
[[package]]
name = "regex-automata"
version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
[[package]]
name = "renderdoc-sys"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
[[package]]
name = "resvg"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cadccb3d99a9efb8e5e00c16fbb732cbe400db2ec7fc004697ee7d97d86cf1f4"
dependencies = [
"gif 0.12.0",
"jpeg-decoder",
"log",
"pico-args",
"png",
"rgb",
"svgtypes",
"tiny-skia",
"usvg",
]
[[package]]
name = "rfd"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25a73a7337fc24366edfca76ec521f51877b114e42dab584008209cca6719251"
dependencies = [
"ashpd 0.8.1",
"block",
"dispatch",
"js-sys",
"log",
"objc",
"objc-foundation",
"objc_id",
"pollster",
"raw-window-handle",
"urlencoding",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"windows-sys 0.48.0",
]
[[package]]
name = "rgb"
version = "0.8.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ade4539f42266ded9e755c605bdddf546242b2c961b03b06a7375260788a0523"
dependencies = [
"bytemuck",
]
[[package]]
name = "ron"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b91f7eff05f748767f183df4320a63d6936e9c6107d97c9e6bdd9784f4289c94"
dependencies = [
"base64",
"bitflags 2.6.0",
"serde",
"serde_derive",
]
[[package]]
name = "roxmltree"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3cd14fd5e3b777a7422cca79358c57a8f6e3a703d9ac187448d0daf220c2407f"
[[package]]
name = "rust-embed"
version = "8.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa66af4a4fdd5e7ebc276f115e895611a34739a9c1c01028383d612d550953c0"
dependencies = [
"rust-embed-impl",
"rust-embed-utils",
"walkdir",
]
[[package]]
name = "rust-embed-impl"
version = "8.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6125dbc8867951125eec87294137f4e9c2c96566e61bf72c45095a7c77761478"
dependencies = [
"proc-macro2",
"quote",
"rust-embed-utils",
"syn 2.0.72",
"walkdir",
]
[[package]]
name = "rust-embed-utils"
version = "8.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e5347777e9aacb56039b0e1f28785929a8a3b709e87482e7442c72e7c12529d"
dependencies = [
"sha2",
"walkdir",
]
[[package]]
name = "rust-ini"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e0698206bcb8882bf2a9ecb4c1e7785db57ff052297085a6efd4fe42302068a"
dependencies = [
"cfg-if",
"ordered-multimap",
]
[[package]]
name = "rustc-demangle"
version = "0.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
[[package]]
name = "rustc-hash"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
[[package]]
name = "rustix"
version = "0.37.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2"
dependencies = [
"bitflags 1.3.2",
"errno",
"io-lifetimes 1.0.11",
"libc",
"linux-raw-sys 0.3.8",
"windows-sys 0.48.0",
]
[[package]]
name = "rustix"
version = "0.38.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
dependencies = [
"bitflags 2.6.0",
"errno",
"libc",
"linux-raw-sys 0.4.14",
"windows-sys 0.52.0",
]
[[package]]
name = "rustybuzz"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0ae5692c5beaad6a9e22830deeed7874eae8a4e3ba4076fb48e12c56856222c"
dependencies = [
"bitflags 2.6.0",
"bytemuck",
"smallvec",
"ttf-parser 0.20.0",
"unicode-bidi-mirroring 0.1.0",
"unicode-ccc 0.1.2",
"unicode-properties",
"unicode-script",
]
[[package]]
name = "rustybuzz"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfb9cf8877777222e4a3bc7eb247e398b56baba500c38c1c46842431adc8b55c"
dependencies = [
"bitflags 2.6.0",
"bytemuck",
"libm",
"smallvec",
"ttf-parser 0.21.1",
"unicode-bidi-mirroring 0.2.0",
"unicode-ccc 0.2.0",
"unicode-properties",
"unicode-script",
]
[[package]]
name = "ryu"
version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
[[package]]
name = "same-file"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
dependencies = [
"winapi-util",
]
[[package]]
name = "scoped-tls"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
[[package]]
name = "scopeguard"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "self_cell"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e14e4d63b804dc0c7ec4a1e52bcb63f02c7ac94476755aa579edac21e01f915d"
dependencies = [
"self_cell 1.0.4",
]
[[package]]
name = "self_cell"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d369a96f978623eb3dc28807c4852d6cc617fed53da5d3c400feff1ef34a714a"
[[package]]
name = "serde"
version = "1.0.204"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.204"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "serde_json"
version = "1.0.120"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5"
dependencies = [
"indexmap",
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_repr"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "serde_spanned"
version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d"
dependencies = [
"serde",
]
[[package]]
name = "sha1"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
dependencies = [
"cfg-if",
"cpufeatures",
"digest",
]
[[package]]
name = "sha2"
version = "0.10.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
dependencies = [
"cfg-if",
"cpufeatures",
"digest",
]
[[package]]
name = "shlex"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "signal-hook-registry"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"
dependencies = [
"libc",
]
[[package]]
name = "simd-adler32"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
[[package]]
name = "simplecss"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a11be7c62927d9427e9f40f3444d5499d868648e2edbc4e2116de69e7ec0e89d"
dependencies = [
"log",
]
[[package]]
name = "siphasher"
version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
[[package]]
name = "skrifa"
version = "0.19.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ab45fb68b53576a43d4fc0e9ec8ea64e29a4d2cc7f44506964cb75f288222e9"
dependencies = [
"bytemuck",
"read-fonts",
]
[[package]]
name = "slab"
version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
dependencies = [
"autocfg",
]
[[package]]
name = "slotmap"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dbff4acf519f630b3a3ddcfaea6c06b42174d9a44bc70c620e9ed1649d58b82a"
dependencies = [
"version_check",
]
[[package]]
name = "smallvec"
version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]]
name = "smithay-client-toolkit"
version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
dependencies = [
"bitflags 2.6.0",
"bytemuck",
"calloop",
"calloop-wayland-source",
"cursor-icon",
"libc",
"log",
"memmap2 0.9.4",
"pkg-config",
"rustix 0.38.34",
"thiserror",
"wayland-backend",
"wayland-client",
"wayland-csd-frame",
"wayland-cursor",
"wayland-protocols",
"wayland-protocols-wlr",
"wayland-scanner",
"xkbcommon",
"xkeysym",
]
[[package]]
name = "smithay-clipboard"
version = "0.8.0"
source = "git+https://github.com/pop-os/smithay-clipboard?tag=pop-dnd-5#5a3007def49eb678d1144850c9ee04b80707c56a"
dependencies = [
"libc",
"raw-window-handle",
"smithay-client-toolkit",
"wayland-backend",
]
[[package]]
name = "smol_str"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
dependencies = [
"serde",
]
[[package]]
name = "socket2"
version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d"
dependencies = [
"libc",
"winapi",
]
[[package]]
name = "socket2"
version = "0.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "softbuffer"
version = "0.4.1"
source = "git+https://github.com/pop-os/softbuffer?tag=cosmic-4.0#6e75b1ad7e98397d37cb187886d05969bc480995"
dependencies = [
"as-raw-xcb-connection",
"bytemuck",
"cfg_aliases 0.2.1",
"cocoa",
"core-graphics",
"drm",
"fastrand 2.1.0",
"foreign-types",
"js-sys",
"log",
"memmap2 0.9.4",
"objc",
"raw-window-handle",
"redox_syscall 0.4.1",
"rustix 0.38.34",
"tiny-xlib",
"wasm-bindgen",
"wayland-backend",
"wayland-client",
"wayland-sys",
"web-sys",
"windows-sys 0.52.0",
"x11rb",
]
[[package]]
name = "spin"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
dependencies = [
"lock_api",
]
[[package]]
name = "spirv"
version = "0.3.0+sdk-1.3.268.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844"
dependencies = [
"bitflags 2.6.0",
]
[[package]]
name = "static_assertions"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "strict-num"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
dependencies = [
"float-cmp",
]
[[package]]
name = "strsim"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "strsim"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "svg_fmt"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20e16a0f46cf5fd675563ef54f26e83e20f2366bcf027bcb3cc3ed2b98aaf2ca"
[[package]]
name = "svgtypes"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e44e288cd960318917cbd540340968b90becc8bc81f171345d706e7a89d9d70"
dependencies = [
"kurbo",
"siphasher",
]
[[package]]
name = "swash"
version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d7773d67fe3373048cf840bfcc54ec3207cfc1e95c526b287ef2eb5eff9faf6"
dependencies = [
"skrifa",
"yazi",
"zeno",
]
[[package]]
name = "switcheroo-control"
version = "0.1.0"
source = "git+https://github.com/pop-os/dbus-settings-bindings#cd21ddcb1b5cbfc80ab84b34d3c8b1ff3d81179a"
dependencies = [
"zbus 4.4.0",
]
[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "syn"
version = "2.0.72"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "sys-locale"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0"
dependencies = [
"libc",
]
[[package]]
name = "taffy"
version = "0.3.11"
source = "git+https://github.com/DioxusLabs/taffy?rev=7781c70#7781c70241f7f572130c13106f2a869a9cf80885"
dependencies = [
"arrayvec",
"grid",
"num-traits",
"slotmap",
]
[[package]]
name = "temp-dir"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f227968ec00f0e5322f9b8173c7a0cbcff6181a0a5b28e9892491c286277231"
[[package]]
name = "tempfile"
version = "3.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1"
dependencies = [
"cfg-if",
"fastrand 2.1.0",
"rustix 0.38.34",
"windows-sys 0.52.0",
]
[[package]]
name = "termcolor"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
dependencies = [
"winapi-util",
]
[[package]]
name = "textdistance"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d321c8576c2b47e43953e9cce236550d4cd6af0a6ce518fe084340082ca6037b"
[[package]]
name = "thiserror"
version = "1.0.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "tiff"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba1310fcea54c6a9a4fd1aad794ecc02c31682f6bfbecdf460bf19533eed1e3e"
dependencies = [
"flate2",
"jpeg-decoder",
"weezl",
]
[[package]]
name = "tiny-keccak"
version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"
dependencies = [
"crunchy",
]
[[package]]
name = "tiny-skia"
version = "0.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
dependencies = [
"arrayref",
"arrayvec",
"bytemuck",
"cfg-if",
"log",
"png",
"tiny-skia-path",
]
[[package]]
name = "tiny-skia-path"
version = "0.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
dependencies = [
"arrayref",
"bytemuck",
"strict-num",
]
[[package]]
name = "tiny-xlib"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d52f22673960ad13af14ff4025997312def1223bfa7c8e4949d099e6b3d5d1c"
dependencies = [
"as-raw-xcb-connection",
"ctor-lite",
"libloading 0.8.5",
"pkg-config",
"tracing",
]
[[package]]
name = "tinystr"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"
dependencies = [
"displaydoc",
]
[[package]]
name = "tinyvec"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d040ac2b29ab03b09d4129c2f5bbd012a3ac2f79d38ff506a4bf8dd34b0eac8a"
dependencies = [
"backtrace",
"bytes",
"libc",
"mio 1.0.1",
"pin-project-lite",
"signal-hook-registry",
"socket2 0.5.7",
"tokio-macros",
"tracing",
"windows-sys 0.52.0",
]
[[package]]
name = "tokio-macros"
version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "tokio-stream"
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af"
dependencies = [
"futures-core",
"pin-project-lite",
"tokio",
]
[[package]]
name = "toml"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
dependencies = [
"serde",
]
[[package]]
name = "toml"
version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81967dd0dd2c1ab0bc3468bd7caecc32b8a4aa47d0c8c695d8c2b2108168d62c"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit 0.22.17",
]
[[package]]
name = "toml_datetime"
version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8fb9f64314842840f1d940ac544da178732128f1c78c21772e876579e0da1db"
dependencies = [
"serde",
]
[[package]]
name = "toml_edit"
version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap",
"toml_datetime",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
dependencies = [
"indexmap",
"toml_datetime",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
version = "0.22.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d9f8729f5aea9562aac1cc0441f5d6de3cff1ee0c5d67293eeca5eb36ee7c16"
dependencies = [
"indexmap",
"serde",
"serde_spanned",
"toml_datetime",
"winnow 0.6.16",
]
[[package]]
name = "tracing"
version = "0.1.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
dependencies = [
"pin-project-lite",
"tracing-attributes",
"tracing-core",
]
[[package]]
name = "tracing-attributes"
version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "tracing-core"
version = "0.1.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
dependencies = [
"once_cell",
]
[[package]]
name = "ttf-parser"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17f77d76d837a7830fe1d4f12b7b4ba4192c1888001c7164257e4bc6d21d96b4"
[[package]]
name = "ttf-parser"
version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c591d83f69777866b9126b24c6dd9a18351f177e49d625920d19f989fd31cf8"
[[package]]
name = "type-map"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "deb68604048ff8fa93347f02441e4487594adc20bb8a084f9e564d2b827a0a9f"
dependencies = [
"rustc-hash",
]
[[package]]
name = "typenum"
version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
[[package]]
name = "uds_windows"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9"
dependencies = [
"memoffset 0.9.1",
"tempfile",
"winapi",
]
[[package]]
name = "unic-langid"
version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23dd9d1e72a73b25e07123a80776aae3e7b0ec461ef94f9151eed6ec88005a44"
dependencies = [
"unic-langid-impl",
]
[[package]]
name = "unic-langid-impl"
version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a5422c1f65949306c99240b81de9f3f15929f5a8bfe05bb44b034cc8bf593e5"
dependencies = [
"serde",
"tinystr",
]
[[package]]
name = "unicode-bidi"
version = "0.3.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
[[package]]
name = "unicode-bidi-mirroring"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56d12260fb92d52f9008be7e4bca09f584780eb2266dc8fecc6a192bec561694"
[[package]]
name = "unicode-bidi-mirroring"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23cb788ffebc92c5948d0e997106233eeb1d8b9512f93f41651f52b6c5f5af86"
[[package]]
name = "unicode-ccc"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc2520efa644f8268dce4dcd3050eaa7fc044fca03961e9998ac7e2e92b77cf1"
[[package]]
name = "unicode-ccc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1df77b101bcc4ea3d78dafc5ad7e4f58ceffe0b2b16bf446aeb50b6cb4157656"
[[package]]
name = "unicode-ident"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "unicode-linebreak"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
[[package]]
name = "unicode-normalization"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
dependencies = [
"tinyvec",
]
[[package]]
name = "unicode-properties"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4259d9d4425d9f0661581b804cb85fe66a4c631cadd8f490d1c13a35d5d9291"
[[package]]
name = "unicode-script"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad8d71f5726e5f285a935e9fe8edfd53f0491eb6e9a5774097fdabee7cd8c9cd"
[[package]]
name = "unicode-segmentation"
version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
[[package]]
name = "unicode-vo"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94"
[[package]]
name = "unicode-width"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
[[package]]
name = "unicode-xid"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c"
[[package]]
name = "url"
version = "2.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"
dependencies = [
"form_urlencoded",
"idna",
"percent-encoding",
"serde",
]
[[package]]
name = "urlencoding"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
[[package]]
name = "usvg"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38b0a51b72ab80ca511d126b77feeeb4fb1e972764653e61feac30adc161a756"
dependencies = [
"base64",
"log",
"pico-args",
"usvg-parser",
"usvg-text-layout",
"usvg-tree",
"xmlwriter",
]
[[package]]
name = "usvg-parser"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bd4e3c291f45d152929a31f0f6c819245e2921bfd01e7bd91201a9af39a2bdc"
dependencies = [
"data-url",
"flate2",
"imagesize",
"kurbo",
"log",
"roxmltree",
"simplecss",
"siphasher",
"svgtypes",
"usvg-tree",
]
[[package]]
name = "usvg-text-layout"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d383a3965de199d7f96d4e11a44dd859f46e86de7f3dca9a39bf82605da0a37c"
dependencies = [
"fontdb",
"kurbo",
"log",
"rustybuzz 0.12.1",
"unicode-bidi",
"unicode-script",
"unicode-vo",
"usvg-tree",
]
[[package]]
name = "usvg-tree"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ee3d202ebdb97a6215604b8f5b4d6ef9024efd623cf2e373a6416ba976ec7d3"
dependencies = [
"rctree",
"strict-num",
"svgtypes",
"tiny-skia-path",
]
[[package]]
name = "utf8parse"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "version_check"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "waker-fn"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7"
[[package]]
name = "walkdir"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
dependencies = [
"same-file",
"winapi-util",
]
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn 2.0.72",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0"
dependencies = [
"cfg-if",
"js-sys",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
[[package]]
name = "wasm-timer"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f"
dependencies = [
"futures",
"js-sys",
"parking_lot 0.11.2",
"pin-utils",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
]
[[package]]
name = "wayland-backend"
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f90e11ce2ca99c97b940ee83edbae9da2d56a08f9ea8158550fd77fa31722993"
dependencies = [
"cc",
"downcast-rs",
"rustix 0.38.34",
"scoped-tls",
"smallvec",
"wayland-sys",
]
[[package]]
name = "wayland-client"
version = "0.31.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e321577a0a165911bdcfb39cf029302479d7527b517ee58ab0f6ad09edf0943"
dependencies = [
"bitflags 2.6.0",
"rustix 0.38.34",
"wayland-backend",
"wayland-scanner",
]
[[package]]
name = "wayland-csd-frame"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
dependencies = [
"bitflags 2.6.0",
"cursor-icon",
"wayland-backend",
]
[[package]]
name = "wayland-cursor"
version = "0.31.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ef9489a8df197ebf3a8ce8a7a7f0a2320035c3743f3c1bd0bdbccf07ce64f95"
dependencies = [
"rustix 0.38.34",
"wayland-client",
"xcursor",
]
[[package]]
name = "wayland-protocols"
version = "0.32.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62989625a776e827cc0f15d41444a3cea5205b963c3a25be48ae1b52d6b4daaa"
dependencies = [
"bitflags 2.6.0",
"wayland-backend",
"wayland-client",
"wayland-scanner",
"wayland-server",
]
[[package]]
name = "wayland-protocols-wlr"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd993de54a40a40fbe5601d9f1fbcaef0aebcc5fda447d7dc8f6dcbaae4f8953"
dependencies = [
"bitflags 2.6.0",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"wayland-scanner",
"wayland-server",
]
[[package]]
name = "wayland-scanner"
version = "0.31.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7b56f89937f1cf2ee1f1259cf2936a17a1f45d8f0aa1019fae6d470d304cfa6"
dependencies = [
"proc-macro2",
"quick-xml",
"quote",
]
[[package]]
name = "wayland-server"
version = "0.31.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f0a4bab6d420ee4a609b63ef4d5f9b5d309c6b93a029fccab70f2594c0cb3ae"
dependencies = [
"bitflags 2.6.0",
"downcast-rs",
"io-lifetimes 2.0.3",
"rustix 0.38.34",
"wayland-backend",
"wayland-scanner",
]
[[package]]
name = "wayland-sys"
version = "0.31.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43676fe2daf68754ecf1d72026e4e6c15483198b5d24e888b74d3f22f887a148"
dependencies = [
"dlib",
"log",
"once_cell",
"pkg-config",
]
[[package]]
name = "web-sys"
version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "web-time"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa30049b1c872b72c89866d458eae9f20380ab280ffd1b1e18df2d3e2d98cfe0"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "weezl"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082"
[[package]]
name = "wgpu"
version = "0.19.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=20fda69#20fda698341efbdc870b8027d6d49f5bf3f36109"
dependencies = [
"arrayvec",
"cfg-if",
"cfg_aliases 0.1.1",
"js-sys",
"log",
"naga",
"parking_lot 0.12.3",
"profiling",
"raw-window-handle",
"smallvec",
"static_assertions",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"wgpu-core",
"wgpu-hal",
"wgpu-types",
]
[[package]]
name = "wgpu-core"
version = "0.19.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=20fda69#20fda698341efbdc870b8027d6d49f5bf3f36109"
dependencies = [
"arrayvec",
"bit-vec",
"bitflags 2.6.0",
"cfg_aliases 0.1.1",
"codespan-reporting",
"indexmap",
"log",
"naga",
"once_cell",
"parking_lot 0.12.3",
"profiling",
"raw-window-handle",
"rustc-hash",
"smallvec",
"thiserror",
"web-sys",
"wgpu-hal",
"wgpu-types",
]
[[package]]
name = "wgpu-hal"
version = "0.19.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=20fda69#20fda698341efbdc870b8027d6d49f5bf3f36109"
dependencies = [
"android_system_properties",
"arrayvec",
"ash",
"bit-set",
"bitflags 2.6.0",
"block",
"cfg_aliases 0.1.1",
"core-graphics-types",
"d3d12",
"glow",
"glutin_wgl_sys",
"gpu-alloc",
"gpu-allocator",
"gpu-descriptor",
"hassle-rs",
"js-sys",
"khronos-egl",
"libc",
"libloading 0.8.5",
"log",
"metal",
"naga",
"objc",
"once_cell",
"parking_lot 0.12.3",
"profiling",
"range-alloc",
"raw-window-handle",
"renderdoc-sys",
"rustc-hash",
"smallvec",
"thiserror",
"wasm-bindgen",
"web-sys",
"wgpu-types",
"winapi",
]
[[package]]
name = "wgpu-types"
version = "0.19.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=20fda69#20fda698341efbdc870b8027d6d49f5bf3f36109"
dependencies = [
"bitflags 2.6.0",
"js-sys",
"web-sys",
]
[[package]]
name = "widestring"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311"
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "window_clipboard"
version = "0.4.1"
source = "git+https://github.com/pop-os/window_clipboard.git?tag=pop-dnd-8#7c59b07b9172d8e0401f7e06609e1050575309c9"
dependencies = [
"clipboard-win",
"clipboard_macos",
"clipboard_wayland",
"clipboard_x11",
"dnd",
"mime 0.1.0",
"raw-window-handle",
"thiserror",
]
[[package]]
name = "windows"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
dependencies = [
"windows-core",
"windows-targets 0.52.6",
]
[[package]]
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets 0.52.6",
]
[[package]]
name = "windows-sys"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
dependencies = [
"windows-targets 0.48.5",
]
[[package]]
name = "windows-sys"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
dependencies = [
"windows-targets 0.52.6",
]
[[package]]
name = "windows-targets"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
dependencies = [
"windows_aarch64_gnullvm 0.48.5",
"windows_aarch64_msvc 0.48.5",
"windows_i686_gnu 0.48.5",
"windows_i686_msvc 0.48.5",
"windows_x86_64_gnu 0.48.5",
"windows_x86_64_gnullvm 0.48.5",
"windows_x86_64_msvc 0.48.5",
]
[[package]]
name = "windows-targets"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
dependencies = [
"windows_aarch64_gnullvm 0.52.6",
"windows_aarch64_msvc 0.52.6",
"windows_i686_gnu 0.52.6",
"windows_i686_gnullvm",
"windows_i686_msvc 0.52.6",
"windows_x86_64_gnu 0.52.6",
"windows_x86_64_gnullvm 0.52.6",
"windows_x86_64_msvc 0.52.6",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
[[package]]
name = "windows_i686_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
name = "windows_i686_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
name = "windows_i686_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "winnow"
version = "0.5.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"
dependencies = [
"memchr",
]
[[package]]
name = "winnow"
version = "0.6.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b480ae9340fc261e6be3e95a1ba86d54ae3f9171132a73ce8d4bbaf68339507c"
dependencies = [
"memchr",
]
[[package]]
name = "x11rb"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d91ffca73ee7f68ce055750bf9f6eca0780b8c85eff9bc046a3b0da41755e12"
dependencies = [
"as-raw-xcb-connection",
"gethostname",
"libc",
"libloading 0.8.5",
"once_cell",
"rustix 0.38.34",
"x11rb-protocol",
]
[[package]]
name = "x11rb-protocol"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec107c4503ea0b4a98ef47356329af139c0a4f7750e621cf2973cd3385ebcb3d"
[[package]]
name = "xcursor"
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d491ee231a51ae64a5b762114c3ac2104b967aadba1de45c86ca42cf051513b7"
[[package]]
name = "xdg"
version = "2.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213b7324336b53d2414b2db8537e56544d981803139155afa84f76eeebb7a546"
[[package]]
name = "xdg-home"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca91dcf8f93db085f3a0a29358cd0b9d670915468f4290e8b85d118a34211ab8"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "xdg-shell-wrapper-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-panel#d5fc4ddef106bf2bdaf983028f78b9d8e432b3ae"
dependencies = [
"serde",
"wayland-protocols-wlr",
]
[[package]]
name = "xkbcommon"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13867d259930edc7091a6c41b4ce6eee464328c6ff9659b7e4c668ca20d4c91e"
dependencies = [
"libc",
"memmap2 0.8.0",
"xkeysym",
]
[[package]]
name = "xkbcommon-dl"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
dependencies = [
"bitflags 2.6.0",
"dlib",
"log",
"once_cell",
"xkeysym",
]
[[package]]
name = "xkeysym"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
dependencies = [
"bytemuck",
]
[[package]]
name = "xml-rs"
version = "0.8.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "791978798f0597cfc70478424c2b4fdc2b7a8024aaff78497ef00f24ef674193"
[[package]]
name = "xmlwriter"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9"
[[package]]
name = "xxhash-rust"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63658493314859b4dfdf3fb8c1defd61587839def09582db50b8a4e93afca6bb"
[[package]]
name = "yazi"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c94451ac9513335b5e23d7a8a2b61a7102398b8cca5160829d313e84c9d98be1"
[[package]]
name = "zbus"
version = "3.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "675d170b632a6ad49804c8cf2105d7c31eddd3312555cffd4b740e08e97c25e6"
dependencies = [
"async-broadcast 0.5.1",
"async-process 1.8.1",
"async-recursion",
"async-trait",
"byteorder",
"derivative",
"enumflags2",
"event-listener 2.5.3",
"futures-core",
"futures-sink",
"futures-util",
"hex",
"nix 0.26.4",
"once_cell",
"ordered-stream",
"rand",
"serde",
"serde_repr",
"sha1",
"static_assertions",
"tokio",
"tracing",
"uds_windows",
"winapi",
"xdg-home",
"zbus_macros 3.15.2",
"zbus_names 2.6.1",
"zvariant 3.15.2",
]
[[package]]
name = "zbus"
version = "4.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725"
dependencies = [
"async-broadcast 0.7.1",
"async-executor",
"async-fs",
"async-io 2.3.3",
"async-lock 3.4.0",
"async-process 2.2.3",
"async-recursion",
"async-task",
"async-trait",
"blocking",
"enumflags2",
"event-listener 5.3.1",
"futures-core",
"futures-sink",
"futures-util",
"hex",
"nix 0.29.0",
"ordered-stream",
"rand",
"serde",
"serde_repr",
"sha1",
"static_assertions",
"tokio",
"tracing",
"uds_windows",
"windows-sys 0.52.0",
"xdg-home",
"zbus_macros 4.4.0",
"zbus_names 3.0.0",
"zvariant 4.2.0",
]
[[package]]
name = "zbus_macros"
version = "3.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7131497b0f887e8061b430c530240063d33bf9455fa34438f388a245da69e0a5"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2",
"quote",
"regex",
"syn 1.0.109",
"zvariant_utils 1.0.1",
]
[[package]]
name = "zbus_macros"
version = "4.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e"
dependencies = [
"proc-macro-crate 3.1.0",
"proc-macro2",
"quote",
"syn 2.0.72",
"zvariant_utils 2.1.0",
]
[[package]]
name = "zbus_names"
version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "437d738d3750bed6ca9b8d423ccc7a8eb284f6b1d6d4e225a0e4e6258d864c8d"
dependencies = [
"serde",
"static_assertions",
"zvariant 3.15.2",
]
[[package]]
name = "zbus_names"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c"
dependencies = [
"serde",
"static_assertions",
"zvariant 4.2.0",
]
[[package]]
name = "zeno"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd15f8e0dbb966fd9245e7498c7e9e5055d9e5c8b676b95bd67091cd11a1e697"
[[package]]
name = "zerocopy"
version = "0.7.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
[[package]]
name = "zune-inflate"
version = "0.2.54"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
dependencies = [
"simd-adler32",
]
[[package]]
name = "zvariant"
version = "3.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4eef2be88ba09b358d3b58aca6e41cd853631d44787f319a1383ca83424fb2db"
dependencies = [
"byteorder",
"enumflags2",
"libc",
"serde",
"static_assertions",
"zvariant_derive 3.15.2",
]
[[package]]
name = "zvariant"
version = "4.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe"
dependencies = [
"endi",
"enumflags2",
"serde",
"static_assertions",
"url",
"zvariant_derive 4.2.0",
]
[[package]]
name = "zvariant_derive"
version = "3.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37c24dc0bed72f5f90d1f8bb5b07228cbf63b3c6e9f82d82559d4bae666e7ed9"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2",
"quote",
"syn 1.0.109",
"zvariant_utils 1.0.1",
]
[[package]]
name = "zvariant_derive"
version = "4.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449"
dependencies = [
"proc-macro-crate 3.1.0",
"proc-macro2",
"quote",
"syn 2.0.72",
"zvariant_utils 2.1.0",
]
[[package]]
name = "zvariant_utils"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7234f0d811589db492d16893e3f21e8e2fd282e6d01b0cddee310322062cc200"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "zvariant_utils"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.72",
]
07070100000006000081A400000000000000000000000166AD2B900000054C000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/Cargo.toml[package]
name = "cosmic-app-library"
version = "0.1.0"
authors = ["Ashley Wulber <ashley@system76.com>"]
edition = "2021"
[features]
default = []
wgpu = ["libcosmic/wgpu"]
[dependencies]
zbus = "4.2"
libcosmic = { git = "https://github.com/pop-os/libcosmic/", features = [
"wayland",
"tokio",
"single-instance",
"dbus-config",
"desktop",
"xdg-portal",
] }
tokio = { version = "1.17.0", features = ["sync", "rt", "process"] }
pretty_env_logger = "0.5"
log = "0.4"
once_cell = "1.9"
futures = "0.3.21"
xdg = "2.4.0"
# Application i18n
i18n-embed = { version = "0.14.1", features = [
"fluent-system",
"desktop-requester",
] }
i18n-embed-fl = "0.8.0"
rust-embed = "8.4.0"
glob = "0.3.0"
freedesktop-desktop-entry = "0.5.2"
shlex = "1.1.0"
serde = { version = "1.0.134", features = ["derive"] }
ron = "0.8.0"
notify = "*"
anyhow = "1.0"
itertools = "0.13"
freedesktop-icons = "0.2.4"
current_locale = "0.1.1"
url = "2.4"
nix = "0.28"
clap = { version = "4.4.8", features = ["derive"] }
switcheroo-control = { git = "https://github.com/pop-os/dbus-settings-bindings" }
cosmic-app-list-config = { git = "https://github.com/pop-os/cosmic-applets" }
[profile.release]
lto = "thin"
# [patch."https://github.com/pop-os/libcosmic"]
# cosmic-config = { path = "../libcosmic/cosmic-config/" }
# libcosmic = { path = "../libcosmic/" }
07070100000007000081A400000000000000000000000166AD2B900000885D000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/LICENSE.mdGNU General Public License
==========================
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>_
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.
## Preamble
The GNU General Public License is a free, copyleft license for software and other
kinds of works.
The licenses for most software and other practical works are designed to take away
your freedom to share and change the works. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change all versions of a
program--to make sure it remains free software for all its users. We, the Free
Software Foundation, use the GNU General Public License for most of our software; it
applies also to any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General
Public Licenses are designed to make sure that you have the freedom to distribute
copies of free software (and charge for them if you wish), that you receive source
code or can get it if you want it, that you can change the software or use pieces of
it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or
asking you to surrender the rights. Therefore, you have certain responsibilities if
you distribute copies of the software, or if you modify it: responsibilities to
respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee,
you must pass on to the recipients the same freedoms that you received. You must make
sure that they, too, receive or can get the source code. And you must show them these
terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: **(1)** assert
copyright on the software, and **(2)** offer you this License giving you legal permission
to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is
no warranty for this free software. For both users' and authors' sake, the GPL
requires that modified versions be marked as changed, so that their problems will not
be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of
the software inside them, although the manufacturer can do so. This is fundamentally
incompatible with the aim of protecting users' freedom to change the software. The
cosmic-systematic pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we have designed
this version of the GPL to prohibit the practice for those products. If such problems
arise substantially in other domains, we stand ready to extend this provision to
those domains in future versions of the GPL, as needed to protect the freedom of
users.
Finally, every program is threatened constantly by software patents. States should
not allow patents to restrict development and use of software on general-purpose
computers, but in those that do, we wish to avoid the special danger that patents
applied to a free program could make it effectively proprietary. To prevent this, the
GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
## TERMS AND CONDITIONS
### 0. Definitions
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this
License. Each licensee is addressed as “you”. “Licensees” and
“recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in
a fashion requiring copyright permission, other than the making of an exact copy. The
resulting work is called a “modified version” of the earlier work or a
work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on
the Program.
To “propagate” a work means to do anything with it that, without
permission, would make you directly or secondarily liable for infringement under
applicable copyright law, except executing it on a computer or modifying a private
copy. Propagation includes copying, distribution (with or without modification),
making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through a computer
network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the
extent that it includes a convenient and prominently visible feature that **(1)**
displays an appropriate copyright notice, and **(2)** tells the user that there is no
warranty for the work (except to the extent that warranties are provided), that
licensees may convey the work under this License, and how to view a copy of this
License. If the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
### 1. Source Code
The “source code” for a work means the preferred form of the work for
making modifications to it. “Object code” means any non-source form of a
work.
A “Standard Interface” means an interface that either is an official
standard defined by a recognized standards body, or, in the case of interfaces
specified for a particular programming language, one that is widely used among
developers working in that language.
The “System Libraries” of an executable work include anything, other than
the work as a whole, that **(a)** is included in the normal form of packaging a Major
Component, but which is not part of that Major Component, and **(b)** serves only to
enable use of the work with that Major Component, or to implement a Standard
Interface for which an implementation is available to the public in source code form.
A “Major Component”, in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system (if any) on which
the executable work runs, or a compiler used to produce the work, or an object code
interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the
source code needed to generate, install, and (for an executable work) run the object
code and to modify the work, including scripts to control those activities. However,
it does not include the work's System Libraries, or general-purpose tools or
generally available free programs which are used unmodified in performing those
activities but which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for the work, and
the source code for shared libraries and dynamically linked subprograms that the work
is specifically designed to require, such as by intimate data communication or
control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate
automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
### 2. Basic Permissions
All rights granted under this License are granted for the term of copyright on the
Program, and are irrevocable provided the stated conditions are met. This License
explicitly affirms your unlimited permission to run the unmodified Program. The
output from running a covered work is covered by this License only if the output,
given its content, constitutes a covered work. This License acknowledges your rights
of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without
conditions so long as your license otherwise remains in force. You may convey covered
works to others for the sole purpose of having them make modifications exclusively
for you, or provide you with facilities for running those works, provided that you
comply with the terms of this License in conveying all material for which you do not
control copyright. Those thus making or running the covered works for you must do so
exclusively on your behalf, under your direction and control, on terms that prohibit
them from making any copies of your copyrighted material outside their relationship
with you.
Conveying under any other circumstances is permitted solely under the conditions
stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law
No covered work shall be deemed part of an effective technological measure under any
applicable law fulfilling obligations under article 11 of the WIPO copyright treaty
adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention
of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of
technological measures to the extent such circumvention is effected by exercising
rights under this License with respect to the covered work, and you disclaim any
intention to limit operation or modification of the work as a means of enforcing,
against the work's users, your or third parties' legal rights to forbid circumvention
of technological measures.
### 4. Conveying Verbatim Copies
You may convey verbatim copies of the Program's source code as you receive it, in any
medium, provided that you conspicuously and appropriately publish on each copy an
appropriate copyright notice; keep intact all notices stating that this License and
any non-permissive terms added in accord with section 7 apply to the code; keep
intact all notices of the absence of any warranty; and give all recipients a copy of
this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer
support or warranty protection for a fee.
### 5. Conveying Modified Source Versions
You may convey a work based on the Program, or the modifications to produce it from
the Program, in the form of source code under the terms of section 4, provided that
you also meet all of these conditions:
* **a)** The work must carry prominent notices stating that you modified it, and giving a
relevant date.
* **b)** The work must carry prominent notices stating that it is released under this
License and any conditions added under section 7. This requirement modifies the
requirement in section 4 to “keep intact all notices”.
* **c)** You must license the entire work, as a whole, under this License to anyone who
comes into possession of a copy. This License will therefore apply, along with any
applicable section 7 additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no permission to license the
work in any other way, but it does not invalidate such permission if you have
separately received it.
* **d)** If the work has interactive user interfaces, each must display Appropriate Legal
Notices; however, if the Program has interactive interfaces that do not display
Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are
not by their nature extensions of the covered work, and which are not combined with
it such as to form a larger program, in or on a volume of a storage or distribution
medium, is called an “aggregate” if the compilation and its resulting
copyright are not used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work in an aggregate
does not cause this License to apply to the other parts of the aggregate.
### 6. Conveying Non-Source Forms
You may convey a covered work in object code form under the terms of sections 4 and
5, provided that you also convey the machine-readable Corresponding Source under the
terms of this License, in one of these ways:
* **a)** Convey the object code in, or embodied in, a physical product (including a
physical distribution medium), accompanied by the Corresponding Source fixed on a
durable physical medium customarily used for software interchange.
* **b)** Convey the object code in, or embodied in, a physical product (including a
physical distribution medium), accompanied by a written offer, valid for at least
three years and valid for as long as you offer spare parts or customer support for
that product model, to give anyone who possesses the object code either **(1)** a copy of
the Corresponding Source for all the software in the product that is covered by this
License, on a durable physical medium customarily used for software interchange, for
a price no more than your reasonable cost of physically performing this conveying of
source, or **(2)** access to copy the Corresponding Source from a network server at no
charge.
* **c)** Convey individual copies of the object code with a copy of the written offer to
provide the Corresponding Source. This alternative is allowed only occasionally and
noncommercially, and only if you received the object code with such an offer, in
accord with subsection 6b.
* **d)** Convey the object code by offering access from a designated place (gratis or for
a charge), and offer equivalent access to the Corresponding Source in the same way
through the same place at no further charge. You need not require recipients to copy
the Corresponding Source along with the object code. If the place to copy the object
code is a network server, the Corresponding Source may be on a different server
(operated by you or a third party) that supports equivalent copying facilities,
provided you maintain clear directions next to the object code saying where to find
the Corresponding Source. Regardless of what server hosts the Corresponding Source,
you remain obligated to ensure that it is available for as long as needed to satisfy
these requirements.
* **e)** Convey the object code using peer-to-peer transmission, provided you inform
other peers where the object code and Corresponding Source of the work are being
offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the
Corresponding Source as a System Library, need not be included in conveying the
object code work.
A “User Product” is either **(1)** a “consumer product”, which
means any tangible personal property which is normally used for personal, family, or
household purposes, or **(2)** anything designed or sold for incorporation into a
dwelling. In determining whether a product is a consumer product, doubtful cases
shall be resolved in favor of coverage. For a particular product received by a
particular user, “normally used” refers to a typical or common use of
that class of product, regardless of the status of the particular user or of the way
in which the particular user actually uses, or expects or is expected to use, the
product. A product is a consumer product regardless of whether the product has
substantial commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
“Installation Information” for a User Product means any methods,
procedures, authorization keys, or other information required to install and execute
modified versions of a covered work in that User Product from a modified version of
its Corresponding Source. The information must suffice to ensure that the continued
functioning of the modified object code is in no case prevented or interfered with
solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for
use in, a User Product, and the conveying occurs as part of a transaction in which
the right of possession and use of the User Product is transferred to the recipient
in perpetuity or for a fixed term (regardless of how the transaction is
characterized), the Corresponding Source conveyed under this section must be
accompanied by the Installation Information. But this requirement does not apply if
neither you nor any third party retains the ability to install modified object code
on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to
continue to provide support service, warranty, or updates for a work that has been
modified or installed by the recipient, or for the User Product in which it has been
modified or installed. Access to a network may be denied when the modification itself
materially and adversely affects the operation of the network or violates the rules
and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with
this section must be in a format that is publicly documented (and with an
implementation available to the public in source code form), and must require no
special password or key for unpacking, reading or copying.
### 7. Additional Terms
“Additional permissions” are terms that supplement the terms of this
License by making exceptions from one or more of its conditions. Additional
permissions that are applicable to the entire Program shall be treated as though they
were included in this License, to the extent that they are valid under applicable
law. If additional permissions apply only to part of the Program, that part may be
used separately under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any
additional permissions from that copy, or from any part of it. (Additional
permissions may be written to require their own removal in certain cases when you
modify the work.) You may place additional permissions on material, added by you to a
covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a
covered work, you may (if authorized by the copyright holders of that material)
supplement the terms of this License with terms:
* **a)** Disclaiming warranty or limiting liability differently from the terms of
sections 15 and 16 of this License; or
* **b)** Requiring preservation of specified reasonable legal notices or author
attributions in that material or in the Appropriate Legal Notices displayed by works
containing it; or
* **c)** Prohibiting misrepresentation of the origin of that material, or requiring that
modified versions of such material be marked in reasonable ways as different from the
original version; or
* **d)** Limiting the use for publicity purposes of names of licensors or authors of the
material; or
* **e)** Declining to grant rights under trademark law for use of some trade names,
trademarks, or service marks; or
* **f)** Requiring indemnification of licensors and authors of that material by anyone
who conveys the material (or modified versions of it) with contractual assumptions of
liability to the recipient, for any liability that these contractual assumptions
directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further
restrictions” within the meaning of section 10. If the Program as you received
it, or any part of it, contains a notice stating that it is governed by this License
along with a term that is a further restriction, you may remove that term. If a
license document contains a further restriction but permits relicensing or conveying
under this License, you may add to a covered work material governed by the terms of
that license document, provided that the further restriction does not survive such
relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in
the relevant source files, a statement of the additional terms that apply to those
files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a
separately written license, or stated as exceptions; the above requirements apply
either way.
### 8. Termination
You may not propagate or modify a covered work except as expressly provided under
this License. Any attempt otherwise to propagate or modify it is void, and will
automatically terminate your rights under this License (including any patent licenses
granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a
particular copyright holder is reinstated **(a)** provisionally, unless and until the
copyright holder explicitly and finally terminates your license, and **(b)** permanently,
if the copyright holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently
if the copyright holder notifies you of the violation by some reasonable means, this
is the first time you have received notice of violation of this License (for any
work) from that copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of
parties who have received copies or rights from you under this License. If your
rights have been terminated and not permanently reinstated, you do not qualify to
receive new licenses for the same material under section 10.
### 9. Acceptance Not Required for Having Copies
You are not required to accept this License in order to receive or run a copy of the
Program. Ancillary propagation of a covered work occurring solely as a consequence of
using peer-to-peer transmission to receive a copy likewise does not require
acceptance. However, nothing other than this License grants you permission to
propagate or modify any covered work. These actions infringe copyright if you do not
accept this License. Therefore, by modifying or propagating a covered work, you
indicate your acceptance of this License to do so.
### 10. Automatic Licensing of Downstream Recipients
Each time you convey a covered work, the recipient automatically receives a license
from the original licensors, to run, modify and propagate that work, subject to this
License. You are not responsible for enforcing compliance by third parties with this
License.
An “entity transaction” is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an organization, or
merging organizations. If propagation of a covered work results from an entity
transaction, each party to that transaction who receives a copy of the work also
receives whatever licenses to the work the party's predecessor in interest had or
could give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if the predecessor
has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or
affirmed under this License. For example, you may not impose a license fee, royalty,
or other charge for exercise of rights granted under this License, and you may not
initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging
that any patent claim is infringed by making, using, selling, offering for sale, or
importing the Program or any portion of it.
### 11. Patents
A “contributor” is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The work thus
licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or
controlled by the contributor, whether already acquired or hereafter acquired, that
would be infringed by some manner, permitted by this License, of making, using, or
selling its contributor version, but do not include claims that would be infringed
only as a consequence of further modification of the contributor version. For
purposes of this definition, “control” includes the right to grant patent
sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license
under the contributor's essential patent claims, to make, use, sell, offer for sale,
import and otherwise run, modify and propagate the contents of its contributor
version.
In the following three paragraphs, a “patent license” is any express
agreement or commitment, however denominated, not to enforce a patent (such as an
express permission to practice a patent or covenant not to sue for patent
infringement). To “grant” such a patent license to a party means to make
such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the
Corresponding Source of the work is not available for anyone to copy, free of charge
and under the terms of this License, through a publicly available network server or
other readily accessible means, then you must either **(1)** cause the Corresponding
Source to be so available, or **(2)** arrange to deprive yourself of the benefit of the
patent license for this particular work, or **(3)** arrange, in a manner consistent with
the requirements of this License, to extend the patent license to downstream
recipients. “Knowingly relying” means you have actual knowledge that, but
for the patent license, your conveying the covered work in a country, or your
recipient's use of the covered work in a country, would infringe one or more
identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you
convey, or propagate by procuring conveyance of, a covered work, and grant a patent
license to some of the parties receiving the covered work authorizing them to use,
propagate, modify or convey a specific copy of the covered work, then the patent
license you grant is automatically extended to all recipients of the covered work and
works based on it.
A patent license is “discriminatory” if it does not include within the
scope of its coverage, prohibits the exercise of, or is conditioned on the
non-exercise of one or more of the rights that are specifically granted under this
License. You may not convey a covered work if you are a party to an arrangement with
a third party that is in the business of distributing software, under which you make
payment to the third party based on the extent of your activity of conveying the
work, and under which the third party grants, to any of the parties who would receive
the covered work from you, a discriminatory patent license **(a)** in connection with
copies of the covered work conveyed by you (or copies made from those copies), or **(b)**
primarily for and in connection with specific products or compilations that contain
the covered work, unless you entered into that arrangement, or that patent license
was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied
license or other defenses to infringement that may otherwise be available to you
under applicable patent law.
### 12. No Surrender of Others' Freedom
If conditions are imposed on you (whether by court order, agreement or otherwise)
that contradict the conditions of this License, they do not excuse you from the
conditions of this License. If you cannot convey a covered work so as to satisfy
simultaneously your obligations under this License and any other pertinent
obligations, then as a consequence you may not convey it at all. For example, if you
agree to terms that obligate you to collect a royalty for further conveying from
those to whom you convey the Program, the only way you could satisfy both those terms
and this License would be to refrain entirely from conveying the Program.
### 13. Use with the GNU Affero General Public License
Notwithstanding any other provision of this License, you have permission to link or
combine any covered work with a work licensed under version 3 of the GNU Affero
General Public License into a single combined work, and to convey the resulting work.
The terms of this License will continue to apply to the part which is the covered
work, but the special requirements of the GNU Affero General Public License, section
13, concerning interaction through a network will apply to the combination as such.
### 14. Revised Versions of this License
The Free Software Foundation may publish revised and/or new versions of the GNU
General Public License from time to time. Such new versions will be similar in spirit
to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that
a certain numbered version of the GNU General Public License “or any later
version” applies to it, you have the option of following the terms and
conditions either of that numbered version or of any later version published by the
Free Software Foundation. If the Program does not specify a version number of the GNU
General Public License, you may choose any version ever published by the Free
Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU
General Public License can be used, that proxy's public statement of acceptance of a
version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no
additional obligations are imposed on any author or copyright holder as a result of
your choosing to follow a later version.
### 15. Disclaimer of Warranty
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
### 16. Limitation of Liability
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE
OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
### 17. Interpretation of Sections 15 and 16
If the disclaimer of warranty and limitation of liability provided above cannot be
given local legal effect according to their terms, reviewing courts shall apply local
law that most closely approximates an absolute waiver of all civil liability in
connection with the Program, unless a warranty or assumption of liability accompanies
a copy of the Program in return for a fee.
_END OF TERMS AND CONDITIONS_
## How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to
the public, the best way to achieve this is to make it free software which everyone
can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them
to the start of each source file to most effectively state the exclusion of warranty;
and each file should have at least the “copyright” line and a pointer to
where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this
when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'show c' for details.
The hypothetical commands `show w` and `show c` should show the appropriate parts of
the General Public License. Of course, your program's commands might be different;
for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to
sign a “copyright disclaimer” for the program, if necessary. For more
information on this, and how to apply and follow the GNU GPL, see
<<http://www.gnu.org/licenses/>>.
The GNU General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may consider it
more useful to permit linking proprietary applications with the library. If this is
what you want to do, use the GNU Lesser General Public License instead of this
License. But first, please read
<<http://www.gnu.org/philosophy/why-not-lgpl.html>>.
07070100000008000081A400000000000000000000000166AD2B900000010A000000000000000000000000000000000000002B00000000cosmic-app-library-1.0.0~alpha.1/README.md# Cosmic App Library
Cosmic App Library is an application launcher for the COSMIC desktop that lists all installed applications in a grid.
## Building/Installing
```just
# build
just build-release
# install
just install
```
```just
# uninstall
just uninstall
```07070100000009000081A400000000000000000000000166AD2B900000000D000000000000000000000000000000000000002A00000000cosmic-app-library-1.0.0~alpha.1/build.rsfn main() {}
0707010000000A000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002600000000cosmic-app-library-1.0.0~alpha.1/data0707010000000B000081A400000000000000000000000166AD2B90000001D9000000000000000000000000000000000000004C00000000cosmic-app-library-1.0.0~alpha.1/data/com.system76.CosmicAppLibrary.desktop[Desktop Entry]
Name=Applications
Comment=COSMIC App Library shell application
Type=Application
Exec=cosmic-app-library
Terminal=false
Categories=COSMIC;
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=COSMIC;ICED;
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=com.system76.CosmicAppLibrary
StartupNotify=true
NoDisplay=true
0707010000000C000081A400000000000000000000000166AD2B90000005F9000000000000000000000000000000000000005100000000cosmic-app-library-1.0.0~alpha.1/data/com.system76.CosmicAppLibrary.metainfo.xml<?xml version="1.0" encoding="UTF-8"?>
<!-- Ashley Wulber 2019 <ashley@system76.com> -->
<component type="desktop-application">
<id>com.system76.CosmicAppLibrary</id>
<metadata_license>CC0</metadata_license>
<!-- Insert your license of choice here -->
<!-- <project_license>MIT</project_license> -->
<name>Cosmic App Library</name>
<summary>COSMIC desktop application library</summary>
<description>
<p>The default application library for the COSMIC desktop</p>
</description>
<!-- <screenshots>
<screenshot type="default">
<image>https://gitlab.gnome.org/bilelmoussaoui/cosmic-app-library/raw/master/data/resources/screenshots/screenshot1.png</image>
<caption>Main window</caption>
</screenshot>
</screenshots> -->
<url type="homepage">https://gitlab.gnome.org/bilelmoussaoui/cosmic-app-library</url>
<url type="bugtracker">https://gitlab.gnome.org/bilelmoussaoui/cosmic-app-library/issues</url>
<content_rating type="oars-1.0" />
<releases>
<release version="0.1.0" date="2019-07-11" />
</releases>
<kudos>
<!--
GNOME Software kudos:
https://gitlab.gnome.org/GNOME/gnome-software/-/blob/main/doc/kudos.md
-->
<kudo>ModernToolkit</kudo>
<kudo>HiDpiIcon</kudo>
</kudos>
<developer_name>Ashley Wulber</developer_name>
<update_contact>ashley@system76.com</update_contact>
<translation type="gettext">cosmic-app-library</translation>
<launchable type="desktop-id">com.system76.CosmicAppLibrary.desktop</launchable>
</component>
0707010000000D000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/data/icons0707010000000E000081A400000000000000000000000166AD2B90000003E1000000000000000000000000000000000000004300000000cosmic-app-library-1.0.0~alpha.1/data/icons/app-source-flatpak.svg<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M214 78L214 178L128 228V128L214 78Z" fill="#4A90D9"/>
<path d="M128 128V27L41 77.5L128 128Z" fill="#4A90D9"/>
<path d="M44.5038 63.3947C35.518 68.5778 30 78.1264 30 88.4927V167.507C30 177.874 35.518 187.422 44.5038 192.605L112.996 232.113C121.982 237.296 133.018 237.296 142.004 232.113L210.496 192.605C219.482 187.422 225 177.874 225 167.507V88.4927C225 78.1264 219.482 68.5778 210.496 63.3947L142.004 23.8874C133.018 18.7042 121.982 18.7042 112.996 23.8874L44.5038 63.3947ZM131.386 42.2604L199.879 81.7677C202.273 83.1486 203.765 85.7309 203.765 88.4927V167.507C203.765 170.269 202.273 172.851 199.879 174.232L131.386 213.74C128.992 215.121 126.008 215.121 123.614 213.74L55.1214 174.232C52.7273 172.851 51.2351 170.269 51.2351 167.507V88.4927C51.2351 85.7309 52.7273 83.1486 55.1214 81.7677L123.614 42.2604C126.008 40.8795 128.992 40.8795 131.386 42.2604Z" fill="#4A90D9"/>
</svg>
0707010000000F000081A400000000000000000000000166AD2B90000001DA000000000000000000000000000000000000004A00000000cosmic-app-library-1.0.0~alpha.1/data/icons/app-source-local-symbolic.svg<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2 0.0032959C0.000409961 0.0032959 0 2.0033 0 2.0033V11.0033C0 11.0033 0 13.0033 2 13.0033H14C14 13.0033 15.9995 13.0033 16 11.0033V2.0033C16 2.0033 16.0004 0.0032959 14 0.0032959H2ZM2 2.0033H14V11.0033L2 10.9793V2.0033ZM3 15.0033L3.00018 15.9999H13.0002L13 15.0033C13 14.0033 12 14.0033 12 14.0033H3.97821C3.97821 14.0033 3 14.0033 3 15.0033Z" fill="#232323"/>
</svg>
07070100000010000081A400000000000000000000000166AD2B9000001491000000000000000000000000000000000000003F00000000cosmic-app-library-1.0.0~alpha.1/data/icons/app-source-nix.svg<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M80.3087 130.56L139.227 232.621L112.15 232.875L96.4205 205.455L80.5786 232.728L67.1253 232.723L60.2349 220.818L82.8048 182.01L66.783 154.129L80.3087 130.56Z" fill="#5277C3"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M101.575 88.52L42.6469 190.575L28.8886 167.253L44.7701 139.921L13.2297 139.838L6.50781 128.184L13.372 116.265L58.2664 116.406L74.4011 88.5906L101.575 88.52Z" fill="#7EBAE4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.095 170.101L223.941 170.107L210.623 193.683L179.012 193.595L194.71 220.951L187.979 232.599L174.224 232.615L151.9 193.664L119.743 193.599L106.095 170.101Z" fill="#7EBAE4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M174.686 125.383L115.768 23.3228L142.845 23.0688L158.574 50.4887L174.416 23.2154L187.869 23.2207L194.76 35.1249L172.19 73.9338L188.212 101.815L174.686 125.383Z" fill="#7EBAE4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M80.3087 130.56L139.227 232.621L112.15 232.875L96.4205 205.455L80.5786 232.728L67.1253 232.723L60.2349 220.818L82.8048 182.01L66.783 154.129L80.3087 130.56Z" fill="#5277C3"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M148.742 85.5839L30.8965 85.5781L44.2147 62.0022L75.8259 62.0898L60.1275 34.7337L66.8588 23.0855L80.6134 23.0703L102.938 62.0209L135.094 62.0861L148.742 85.5839Z" fill="#5277C3"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M153.34 167.401L212.268 65.3467L226.027 88.6686L210.145 116.001L241.685 116.084L248.407 127.737L241.543 139.657L196.649 139.515L180.514 167.331L153.34 167.401Z" fill="#5277C3"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M80.3785 130.495L139.297 232.555L112.22 232.809L96.4904 205.389L80.6484 232.663L67.1951 232.657L60.3047 220.753L82.8747 181.944L66.8529 154.063L80.3785 130.495Z" fill="url(#paint0_linear_2410_666)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M101.644 88.4543L42.7159 190.509L28.9577 167.187L44.8391 139.855L13.2988 139.772L6.57672 128.118L13.4409 116.199L58.3353 116.341L74.47 88.525L101.644 88.4543Z" fill="url(#paint1_linear_2410_666)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.165 170.035L224.011 170.041L210.693 193.617L179.081 193.53L194.78 220.886L188.049 232.534L174.294 232.549L151.97 193.599L119.813 193.533L106.165 170.035Z" fill="url(#paint2_linear_2410_666)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M174.755 125.318L115.837 23.2574L142.913 23.0034L158.643 50.4232L174.485 23.1499L187.938 23.1552L194.829 35.0595L172.259 73.8683L188.28 101.749L174.755 125.318Z" fill="url(#paint3_linear_2410_666)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M80.3785 130.495L139.297 232.555L112.22 232.809L96.4904 205.389L80.6484 232.663L67.1951 232.657L60.3047 220.753L82.8747 181.944L66.8529 154.063L80.3785 130.495Z" fill="url(#paint4_linear_2410_666)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M148.725 85.5417L30.8789 85.5359L44.1971 61.96L75.8082 62.0476L60.1098 34.6915L66.8411 23.0432L80.5957 23.028L102.92 61.9786L135.077 62.0438L148.725 85.5417Z" fill="url(#paint5_linear_2410_666)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M153.357 167.342L212.285 65.2869L226.043 88.6088L210.161 115.941L241.702 116.024L248.424 127.677L241.56 139.597L196.665 139.455L180.53 167.271L153.357 167.342Z" fill="url(#paint6_linear_2410_666)"/>
<defs>
<linearGradient id="paint0_linear_2410_666" x1="61.911" y1="133.7" x2="105.059" y2="208.327" gradientUnits="userSpaceOnUse">
<stop stop-color="#699AD7"/>
<stop offset="0.243452" stop-color="#7EB1DD"/>
<stop offset="1" stop-color="#7EBAE4"/>
</linearGradient>
<linearGradient id="paint1_linear_2410_666" x1="89.634" y1="74.0637" x2="46.5796" y2="148.745" gradientUnits="userSpaceOnUse">
<stop stop-color="#699AD7"/>
<stop offset="0.243452" stop-color="#7EB1DD"/>
<stop offset="1" stop-color="#7EBAE4"/>
</linearGradient>
<linearGradient id="paint2_linear_2410_666" x1="99.7072" y1="187.632" x2="185.91" y2="187.577" gradientUnits="userSpaceOnUse">
<stop stop-color="#699AD7"/>
<stop offset="0.243452" stop-color="#7EB1DD"/>
<stop offset="1" stop-color="#7EBAE4"/>
</linearGradient>
<linearGradient id="paint3_linear_2410_666" x1="193.222" y1="122.112" x2="150.074" y2="47.4857" gradientUnits="userSpaceOnUse">
<stop stop-color="#699AD7"/>
<stop offset="0.243452" stop-color="#7EB1DD"/>
<stop offset="1" stop-color="#7EBAE4"/>
</linearGradient>
<linearGradient id="paint4_linear_2410_666" x1="66.3708" y1="131.162" x2="108.753" y2="206.078" gradientUnits="userSpaceOnUse">
<stop stop-color="#415E9A"/>
<stop offset="0.231686" stop-color="#4A6BAF"/>
<stop offset="1" stop-color="#5277C3"/>
</linearGradient>
<linearGradient id="paint5_linear_2410_666" x1="155.151" y1="73.0771" x2="69.08" y2="72.3232" gradientUnits="userSpaceOnUse">
<stop stop-color="#415E9A"/>
<stop offset="0.231686" stop-color="#4A6BAF"/>
<stop offset="1" stop-color="#5277C3"/>
</linearGradient>
<linearGradient id="paint6_linear_2410_666" x1="160.938" y1="179.139" x2="204.627" y2="104.976" gradientUnits="userSpaceOnUse">
<stop stop-color="#415E9A"/>
<stop offset="0.231686" stop-color="#4A6BAF"/>
<stop offset="1" stop-color="#5277C3"/>
</linearGradient>
</defs>
</svg>
07070100000011000081A400000000000000000000000166AD2B90000001B4000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/data/icons/app-source-snap.svg<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M144.84 71.008L194.224 92.344L144.84 140.344V71.008ZM50.544 232L137.68 147.304L111.096 121.6L50.544 232ZM16 24L140.656 144.416V67.792L16 24Z" fill="#82BFA1"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M219.488 67.7842H147.712L240 107.656L219.488 67.7842Z" fill="#FA6340"/>
</svg>
07070100000012000081A400000000000000000000000166AD2B90000004ED000000000000000000000000000000000000004B00000000cosmic-app-library-1.0.0~alpha.1/data/icons/app-source-system-symbolic.svg<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2402_549)">
<path d="M5.98141 0L5.80382 2.10743C5.1294 2.35496 4.50237 2.71437 3.94955 3.17029L2.01802 2.26743L0 5.73257L1.75395 6.93943C1.69144 7.2896 1.65904 7.6444 1.65708 8C1.65726 8.357 1.68812 8.71334 1.74933 9.06514L0 10.2674L2.01802 13.7314L3.94494 12.832C4.49965 13.2859 5.12825 13.643 5.80382 13.888L5.98141 16H10.0174L10.195 13.8926C10.8695 13.645 11.4965 13.2856 12.0493 12.8297L13.982 13.7326L16 10.2674L14.2449 9.06057C14.3074 8.7104 14.3398 8.3556 14.3418 8C14.3416 7.643 14.3107 7.28666 14.2495 6.93486L16 5.73257L13.982 2.26743L12.0539 3.168C11.4992 2.71407 10.8706 2.35697 10.195 2.112L10.0174 0H5.98141ZM7.99942 5.71429C8.61109 5.71429 9.19771 5.9551 9.63023 6.38376C10.0627 6.81241 10.3057 7.39379 10.3057 8C10.3057 8.60621 10.0627 9.18759 9.63023 9.61624C9.19771 10.0449 8.61109 10.2857 7.99942 10.2857C7.38775 10.2857 6.80114 10.0449 6.36862 9.61624C5.9361 9.18759 5.69312 8.60621 5.69312 8C5.69312 7.39379 5.9361 6.81241 6.36862 6.38376C6.80114 5.9551 7.38775 5.71429 7.99942 5.71429Z" fill="#232323"/>
</g>
<defs>
<clipPath id="clip0_2402_549">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>
07070100000013000081A400000000000000000000000166AD2B9000001307000000000000000000000000000000000000004E00000000cosmic-app-library-1.0.0~alpha.1/data/icons/com.system76.CosmicAppLibrary.svg<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="application-library">
<path id="Rectangle 434"
d="M4.5 7.5C4.5 5.84315 5.84315 4.5 7.5 4.5H13.5C15.1569 4.5 16.5 5.84315 16.5 7.5V13.5C16.5 15.1569 15.1569 16.5 13.5 16.5H7.5C5.84315 16.5 4.5 15.1569 4.5 13.5V7.5Z"
fill="url(#paint0_linear_6036_36747)" />
<path id="Rectangle 432"
d="M18 34.5C18 32.8431 19.3431 31.5 21 31.5H27C28.6569 31.5 30 32.8431 30 34.5V40.5C30 42.1569 28.6569 43.5 27 43.5H21C19.3431 43.5 18 42.1569 18 40.5V34.5Z"
fill="url(#paint1_linear_6036_36747)" />
<path id="Rectangle 435"
d="M18 21C18 19.3431 19.3431 18 21 18H27C28.6569 18 30 19.3431 30 21V27C30 28.6569 28.6569 30 27 30H21C19.3431 30 18 28.6569 18 27V21Z"
fill="url(#paint2_linear_6036_36747)" />
<path id="Rectangle 438"
d="M31.5 21C31.5 19.3431 32.8431 18 34.5 18H40.5C42.1569 18 43.5 19.3431 43.5 21V27C43.5 28.6569 42.1569 30 40.5 30H34.5C32.8431 30 31.5 28.6569 31.5 27V21Z"
fill="url(#paint3_linear_6036_36747)" />
<path id="Rectangle 433"
d="M4.5 34.5C4.5 32.8431 5.84315 31.5 7.5 31.5H13.5C15.1569 31.5 16.5 32.8431 16.5 34.5V40.5C16.5 42.1569 15.1569 43.5 13.5 43.5H7.5C5.84315 43.5 4.5 42.1569 4.5 40.5V34.5Z"
fill="url(#paint4_linear_6036_36747)" />
<path id="Rectangle 436"
d="M31.5 7.5C31.5 5.84315 32.8431 4.5 34.5 4.5H40.5C42.1569 4.5 43.5 5.84315 43.5 7.5V13.5C43.5 15.1569 42.1569 16.5 40.5 16.5H34.5C32.8431 16.5 31.5 15.1569 31.5 13.5V7.5Z"
fill="url(#paint5_linear_6036_36747)" />
<path id="Rectangle 439"
d="M18 7.5C18 5.84315 19.3431 4.5 21 4.5H27C28.6569 4.5 30 5.84315 30 7.5V13.5C30 15.1569 28.6569 16.5 27 16.5H21C19.3431 16.5 18 15.1569 18 13.5V7.5Z"
fill="url(#paint6_linear_6036_36747)" />
<path id="Rectangle 440"
d="M4.5 21C4.5 19.3431 5.84315 18 7.5 18H13.5C15.1569 18 16.5 19.3431 16.5 21V27C16.5 28.6569 15.1569 30 13.5 30H7.5C5.84315 30 4.5 28.6569 4.5 27V21Z"
fill="url(#paint7_linear_6036_36747)" />
<path id="Rectangle 441"
d="M31.5 34.5C31.5 32.8431 32.8431 31.5 34.5 31.5H40.5C42.1569 31.5 43.5 32.8431 43.5 34.5V40.5C43.5 42.1569 42.1569 43.5 40.5 43.5H34.5C32.8431 43.5 31.5 42.1569 31.5 40.5V34.5Z"
fill="url(#paint8_linear_6036_36747)" />
</g>
<defs>
<linearGradient id="paint0_linear_6036_36747" x1="4.5" y1="16.5" x2="16.7472" y2="4.75781"
gradientUnits="userSpaceOnUse">
<stop stop-color="#229FAD" />
<stop offset="1" stop-color="#49BAC8" />
</linearGradient>
<linearGradient id="paint1_linear_6036_36747" x1="18" y1="43.5" x2="30.2472" y2="31.7578"
gradientUnits="userSpaceOnUse">
<stop stop-color="#229FAD" />
<stop offset="1" stop-color="#49BAC8" />
</linearGradient>
<linearGradient id="paint2_linear_6036_36747" x1="18" y1="30" x2="30.2472" y2="18.2578"
gradientUnits="userSpaceOnUse">
<stop stop-color="#A252D2" />
<stop offset="1" stop-color="#BE6DEE" />
</linearGradient>
<linearGradient id="paint3_linear_6036_36747" x1="31.5" y1="30" x2="43.7472" y2="18.2578"
gradientUnits="userSpaceOnUse">
<stop stop-color="#DDC74C" />
<stop offset="1" stop-color="#F7E062" />
</linearGradient>
<linearGradient id="paint4_linear_6036_36747" x1="4.5" y1="43.5" x2="16.7472" y2="31.7578"
gradientUnits="userSpaceOnUse">
<stop stop-color="#A252D2" />
<stop offset="1" stop-color="#BE6DEE" />
</linearGradient>
<linearGradient id="paint5_linear_6036_36747" x1="31.5" y1="16.5" x2="43.7472" y2="4.75781"
gradientUnits="userSpaceOnUse">
<stop stop-color="#229FAD" />
<stop offset="1" stop-color="#49BAC8" />
</linearGradient>
<linearGradient id="paint6_linear_6036_36747" x1="18" y1="16.5" x2="30.2472" y2="4.75781"
gradientUnits="userSpaceOnUse">
<stop stop-color="#C48400" />
<stop offset="1" stop-color="#FFAD00" />
</linearGradient>
<linearGradient id="paint7_linear_6036_36747" x1="4.5" y1="30" x2="16.7472" y2="18.2578"
gradientUnits="userSpaceOnUse">
<stop stop-color="#C48400" />
<stop offset="1" stop-color="#FFAD00" />
</linearGradient>
<linearGradient id="paint8_linear_6036_36747" x1="31.5" y1="43.5" x2="43.7472" y2="31.7578"
gradientUnits="userSpaceOnUse">
<stop stop-color="#C48400" />
<stop offset="1" stop-color="#FFAD00" />
</linearGradient>
</defs>
</svg>07070100000014000081A400000000000000000000000166AD2B900000011C000000000000000000000000000000000000003500000000cosmic-app-library-1.0.0~alpha.1/data/icons/justfileappid := env_var('APPID')
install-dir := env_var('INSTALL_DIR')
scalable-src := appid + '.svg'
scalable-dst := install-dir / 'icons' / 'hicolor' / 'scalable' / 'apps' / scalable-src
install:
install -Dm0644 {{scalable-src}} {{scalable-dst}}
uninstall:
rm {{scalable-dst}}
07070100000015000081A400000000000000000000000166AD2B90000001A5000000000000000000000000000000000000002F00000000cosmic-app-library-1.0.0~alpha.1/data/justfileappid := env_var('APPID')
install-dir := env_var('INSTALL_DIR')
desktop-src := appid + '.desktop'
desktop-dst := install-dir / 'applications' / desktop-src
metainfo-src := appid + '.metainfo.xml'
metainfo-dst := install-dir / 'metainfo' / metainfo-src
install:
install -Dm0644 {{desktop-src}} {{desktop-dst}}
install -Dm0644 {{metainfo-src}} {{metainfo-dst}}
uninstall:
rm {{desktop-dst}} {{metainfo-dst}}07070100000016000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002800000000cosmic-app-library-1.0.0~alpha.1/debian07070100000017000081A400000000000000000000000166AD2B9000000096000000000000000000000000000000000000003200000000cosmic-app-library-1.0.0~alpha.1/debian/changelogcosmic-app-library (0.1.0) UNRELEASED; urgency=medium
* Initial release.
-- Ashley Wulber <ashley@system76.com> Thu, 07 Apr 2022 09:39:19 -0700
07070100000018000081A400000000000000000000000166AD2B90000001CB000000000000000000000000000000000000003000000000cosmic-app-library-1.0.0~alpha.1/debian/controlSource: cosmic-app-library
Section: admin
Priority: optional
Maintainer: Ashley Wulber <ashley@system76.com>
Build-Depends:
debhelper (>= 11),
debhelper-compat (= 11),
rust-all,
just,
pkg-config,
libxkbcommon-dev,
libwayland-dev,
Standards-Version: 4.3.0
Homepage: https://github.com/pop-os/cosmic-app-library
Package: cosmic-app-library
Architecture: amd64 arm64
Depends:
${misc:Depends},
${shlibs:Depends}
Description: Cosmic App Library
07070100000019000081A400000000000000000000000166AD2B9000000154000000000000000000000000000000000000003200000000cosmic-app-library-1.0.0~alpha.1/debian/copyrightFormat: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cosmic-app-library
Source: https://github.com/pop-os/cosmic-app-library
Files: *
Copyright: Copyright 2022 System76
License: MPL-2.0
The complete text of the Mozilla Public License 2.0 can be found in
the file `/usr/share/common-licenses/MPL-2.0'.
0707010000001A000081A400000000000000000000000166AD2B90000000F5000000000000000000000000000000000000003000000000cosmic-app-library-1.0.0~alpha.1/debian/install/usr/bin/cosmic-app-library
/usr/share/applications/com.system76.CosmicAppLibrary.desktop
/usr/share/icons/hicolor/scalable/apps/com.system76.CosmicAppLibrary.svg
/usr/share/icons/hicolor/symbolic/apps/com.system76.CosmicAppLibrary-symbolic.svg
0707010000001B000081ED00000000000000000000000166AD2B9000000253000000000000000000000000000000000000002E00000000cosmic-app-library-1.0.0~alpha.1/debian/rules#!/usr/bin/make -f
DESTDIR = debian/cosmic-app-library
CLEAN ?= 1
VENDOR ?= 1
%:
dh $@
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
override_dh_auto_clean:
if test "${CLEAN}" = "1"; then \
cargo clean; \
fi
if ! ischroot && test "${VENDOR}" = "1"; then \
mkdir -p .cargo; \
cargo vendor --sync Cargo.toml | head -n -1 > .cargo/config; \
echo 'directory = "vendor"' >> .cargo/config; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
fi
override_dh_auto_build:
just build-vendored
override_dh_install:
just rootdir=$(DESTDIR) install0707010000001C000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002F00000000cosmic-app-library-1.0.0~alpha.1/debian/source0707010000001D000081A400000000000000000000000166AD2B900000000D000000000000000000000000000000000000003600000000cosmic-app-library-1.0.0~alpha.1/debian/source/format3.0 (native)
0707010000001E000081A400000000000000000000000166AD2B90000015C4000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/flake.lock{
"nodes": {
"crane": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1687310026,
"narHash": "sha256-20RHFbrnC+hsG4Hyeg/58LvQAK7JWfFItTPFAFamu8E=",
"owner": "ipetkov",
"repo": "crane",
"rev": "116b32c30b5ff28e49f4fcbeeb1bbe3544593204",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"fenix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1687674253,
"narHash": "sha256-wXpJrXGIcGbwyxF1ky1VyPg8YoVuAkoj57+kSRJ5yek=",
"owner": "nix-community",
"repo": "fenix",
"rev": "447bb10577505fb657724a7c02d406bfdec431ed",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1687709756,
"narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nix-filter": {
"locked": {
"lastModified": 1687178632,
"narHash": "sha256-HS7YR5erss0JCaUijPeyg2XrisEb959FIct3n2TMGbE=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "d90c75e8319d0dd9be67d933d8eb9d0894ec9174",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1687701825,
"narHash": "sha256-aMC9hqsf+4tJL7aJWSdEUurW2TsjxtDcJBwM9Y4FIYM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "07059ee2fa34f1598758839b9af87eae7f7ae6ea",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"crane": "crane",
"fenix": "fenix",
"flake-utils": "flake-utils_2",
"nix-filter": "nix-filter",
"nixpkgs": "nixpkgs"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1687543309,
"narHash": "sha256-8oHRXbZ/G3JNtNgdgmZbG+0njutvKYugXxqTwCfeDHM=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "6ba2590541fb284555596e8b7967b05aaa576c22",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
},
"rust-overlay": {
"inputs": {
"flake-utils": [
"crane",
"flake-utils"
],
"nixpkgs": [
"crane",
"nixpkgs"
]
},
"locked": {
"lastModified": 1685759304,
"narHash": "sha256-I3YBH6MS3G5kGzNuc1G0f9uYfTcNY9NYoRc3QsykLk4=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "c535b4f3327910c96dcf21851bbdd074d0760290",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
0707010000001F000081A400000000000000000000000166AD2B90000009F0000000000000000000000000000000000000002B00000000cosmic-app-library-1.0.0~alpha.1/flake.nix{
description = "Application library for the COSMIC desktop environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, nix-filter, crane, fenix }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
craneLib = crane.lib.${system}.overrideToolchain fenix.packages.${system}.stable.toolchain;
pkgDef = {
src = nix-filter.lib.filter {
root = ./.;
include = [
./src
./Cargo.toml
./Cargo.lock
./i18n
./i18n.toml
./data
./justfile
];
};
nativeBuildInputs = with pkgs; [
just
pkg-config
autoPatchelfHook
];
buildInputs = with pkgs; [
libxkbcommon
glib
gtk4
desktop-file-utils
];
runtimeDependencies = with pkgs; [
wayland
libglvnd # For libEGL
];
};
cargoArtifacts = craneLib.buildDepsOnly pkgDef;
cosmic-applibrary = craneLib.buildPackage (pkgDef // {
inherit cargoArtifacts;
});
in {
checks = {
inherit cosmic-applibrary;
};
apps.default = flake-utils.lib.mkApp {
drv = cosmic-applibrary;
};
packages.default = cosmic-applibrary.overrideAttrs (oldAttrs: rec {
buildPhase = ''
just prefix=$out build-release
'';
installPhase = ''
just prefix=$out install
'';
});
devShells.default = pkgs.mkShell rec {
inputsFrom = builtins.attrValues self.checks.${system};
LD_LIBRARY_PATH = pkgs.lib.strings.makeLibraryPath (builtins.concatMap (d: d.runtimeDependencies) inputsFrom);
};
});
nixConfig = {
# Cache for the Rust toolchain in fenix
extra-substituters = [ "https://nix-community.cachix.org" ];
extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
};
}
07070100000020000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002700000000cosmic-app-library-1.0.0~alpha.1/hooks07070100000021000081ED00000000000000000000000166AD2B9000000670000000000000000000000000000000000000003700000000cosmic-app-library-1.0.0~alpha.1/hooks/pre-commit.hook#!/bin/sh
# Source: https://gitlab.gnome.org/GNOME/fractal/blob/master/hooks/pre-commit.hook
install_rustfmt() {
if ! which rustup &> /dev/null; then
curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH=$PATH:$HOME/.cargo/bin
if ! which rustup &> /dev/null; then
echo "Failed to install rustup. Performing the commit without style checking."
exit 0
fi
fi
if ! rustup component list|grep rustfmt &> /dev/null; then
echo "Installing rustfmt…"
rustup component add rustfmt
fi
}
if ! which cargo >/dev/null 2>&1 || ! cargo fmt --help >/dev/null 2>&1; then
echo "Unable to check the project’s code style, because rustfmt could not be run."
if [ ! -t 1 ]; then
# No input is possible
echo "Performing commit."
exit 0
fi
echo ""
echo "y: Install rustfmt via rustup"
echo "n: Don't install rustfmt and perform the commit"
echo "Q: Don't install rustfmt and abort the commit"
echo ""
while true
do
echo -n "Install rustfmt via rustup? [y/n/Q]: "; read yn < /dev/tty
case $yn in
[Yy]* ) install_rustfmt; break;;
[Nn]* ) echo "Performing commit."; exit 0;;
[Qq]* | "" ) echo "Aborting commit."; exit -1 >/dev/null 2>&1;;
* ) echo "Invalid input";;
esac
done
fi
echo "--Checking style--"
cargo fmt --all -- --check
if test $? != 0; then
echo "--Checking style fail--"
echo "Please fix the above issues, either manually or by running: cargo fmt --all"
exit -1
else
echo "--Checking style pass--"
fi
07070100000022000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002600000000cosmic-app-library-1.0.0~alpha.1/i18n07070100000023000081A400000000000000000000000166AD2B9000000036000000000000000000000000000000000000002B00000000cosmic-app-library-1.0.0~alpha.1/i18n.tomlfallback_language = "en"
[fluent]
assets_dir = "i18n"07070100000024000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/cs07070100000025000081A400000000000000000000000166AD2B90000000D7000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/cs/cosmic_app_library.ftlcosmic-app-library = Knihovna Kosmických Aplikací
cosmic-library-home = Knihovna Domů
cosmic-system = Systém
cosmic-utilities = Utility aplikace
new-group = Nová Skupina
name = Jméno
ok = Ok
cancel = Zrušit
07070100000026000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/de07070100000027000081A400000000000000000000000166AD2B90000002B7000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/de/cosmic_app_library.ftlcosmic-app-library = Cosmic App Library
cosmic-library-home = Library Home
cosmic-office = Office
cosmic-system = System
cosmic-utilities = Werkzeuge
new-group = Ordner erstellen
name = Name
ok = Bestätigen
save = Speichern
cancel = Abbrechen
search-placeholder = Nach Apps suchen...
new-group-placeholder = Ordner Name
run = Start
run-on = Mit {$gpu} starten
run-on-default = (Standard)
remove = Entfernen
create-new = Einen neuen Ordner erstellen
delete = Löschen
rename = Umbenennen
delete-folder = Diesen Ordner löschen?
.msg = Wenn Sie diesen Ordner löschen, werden die App Icons in das Library Home verschoben.
flatpak = Flatpak
snap = Snap
system = System
local = Lokal
nix = Nix
07070100000028000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/en07070100000029000081A400000000000000000000000166AD2B90000002B7000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/en/cosmic_app_library.ftlcosmic-app-library = Cosmic App Library
cosmic-library-home = Library Home
cosmic-office = Office
cosmic-system = System
cosmic-utilities = Utilities
new-group = Create Folder
name = Name
ok = Ok
save = Save
cancel = Cancel
search-placeholder = Type to search apps...
new-group-placeholder = Folder Name
pin-to-app-tray = Pin to App Tray
run = Run
run-on = Run on {$gpu}
run-on-default = (Default)
remove = Move to library home
create-new = Create new folder
add-group = Add group
delete = Delete
rename = Rename
delete-folder = Delete folder?
.msg = Deleting this folder will move the application icons to Library home.
flatpak = Flatpak
snap = Snap
system = System
local = Local
nix = Nix
0707010000002A000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/es0707010000002B000081A400000000000000000000000166AD2B90000000AC000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/es/cosmic_app_library.ftlcosmic-app-library = Bibliotea de Aplicaciones Cosmic
cosmic-system = Sistema
cosmic-utilities = Utilidades
new-group = Nuevo Grupo
name = Nombre
ok = Ok
cancel = Cancelar
0707010000002C000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/fa0707010000002D000081A400000000000000000000000166AD2B900000010D000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/fa/cosmic_app_library.ftlcosmic-app-library = کتابخانه برنامه Cosmic
cosmic-library-home = خانه کتابخانه
cosmic-office = آفیس
cosmic-system = سیستم
cosmic-utilities = ابزار ها
new-group = ساخت پوشه
name = نام
ok = تایید
cancel = لغو
0707010000002E000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/fr0707010000002F000081A400000000000000000000000166AD2B900000028A000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/fr/cosmic_app_library.ftlcosmic-app-library = Librairie d'application Cosmic
cosmic-library-home = Accueil de la librairie
cosmic-office = Office
cosmic-system = Système
cosmic-utilities = Utilitaires
new-group = Nouveau groupe
name = Nom
ok = Valider
save = Sauvegarder
cancel = Annuler
search-placeholder = Tapper pour chercher des applis...
new-group-placeholder = Nom du dossier
run = Lancer
run-on = Lancer avec {$gpu}
run-on-default = (Défaut)
remove = Enlever
create-new = Créer un nouveau dossier
delete = Supprimer
rename = Renommer
delete-folder = Supprimer le dossier ?
.msg = Supprimer ce dossier va déplacer les applications à la racine de la libraire.
07070100000030000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/it07070100000031000081A400000000000000000000000166AD2B9000000261000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/it/cosmic_app_library.ftlcosmic-app-library = Cosmic App Library
cosmic-library-home = Library Home
cosmic-office = Ufficio
cosmic-system = Sistema
cosmic-utilities = Utilità
new-group = Nuova cartella
name = Nome
ok = Ok
save = Salva
cancel = Annulla
search-placeholder = Digita per cercare...
new-group-placeholder = Nome cartella
run = Esegui
run-on = Esegui usando: {$gpu}
run-on-default = (Default)
remove = Rimuovi
create-new = Crea nuova cartella
delete = Elimina
rename = Rinomina
delete-folder = Cancellare la cartella?
.msg = L'eliminazione di questa cartella sposterà tutte le applicazioni nella schermata principale.07070100000032000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/ko07070100000033000081A400000000000000000000000166AD2B9000000101000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/ko/cosmic_app_library.ftlcosmic-app-library = 코스믹 프로그램 라이브러리
cosmic-library-home = 라이브러리 홈
cosmic-office = 오피스
cosmic-system = 시스템
cosmic-utilities = 유틸리티
new-group = 폴더 만들기
name = 이름
ok = 확인
cancel = 취소
07070100000034000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/pl07070100000035000081A400000000000000000000000166AD2B9000000305000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/pl/cosmic_app_library.ftlcosmic-app-library = Biblioteka Aplikacji Cosmic
cosmic-library-home = Strona Domowa Biblioteki
cosmic-office = Biuro
cosmic-system = System
cosmic-utilities = Narzędzia
new-group = Stwórz Katalog
name = Nazwa
ok = Ok
save = Zapisz
cancel = Anuluj
search-placeholder = Napisz, by wyszukać aplikację...
new-group-placeholder = Nazwa Katalogu
pin-to-app-tray = Przypnij do Zasobnika Apek
run = Uruchom
run-on = Uruchom na {$gpu}
run-on-default = (Domyślnie)
remove = Usuń
create-new = Stwórz nowy katalog
add-group = Dodaj katalog
delete = Usuń
rename = Zmień nazwę
delete-folder = Usunąć katalog?
.msg = Usunięcie tego katalogu przeniesie ikony aplicacji do strony domowej Biblioteki.
flatpak = Flatpak
snap = Snap
system = System
local = Lokalny
nix = Nix
07070100000036000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/i18n/pt-BR07070100000037000081A400000000000000000000000166AD2B90000000E9000000000000000000000000000000000000004300000000cosmic-app-library-1.0.0~alpha.1/i18n/pt-BR/cosmic_app_library.ftlcosmic-app-library = Biblioteca de Aplicativos Cosmic
cosmic-library-home = Aplicativos
cosmic-office = Escritório
cosmic-system = Sistema
cosmic-utilities = Utilitários
new-group = Novo Grupo
name = Nome
ok = Ok
cancel = Cancelar
07070100000038000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/ru07070100000039000081A400000000000000000000000166AD2B90000003C8000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/ru/cosmic_app_library.ftlcosmic-app-library = Библиотека приложений Cosmic
cosmic-library-home = Главная
cosmic-office = Офис
cosmic-system = Система
cosmic-utilities = Утилиты
new-group = Создать папку
name = Имя
ok = ОК
save = Сохранить
cancel = Отменить
search-placeholder = Введите текст для поиска приложений...
new-group-placeholder = Имя папки
run = Запустить
run-on = Запустить на {$gpu}
run-on-default = (по умолчанию)
remove = Убрать
create-new = Создать новую папку
delete = Удалить
rename = Переименовать
delete-folder = Удалить папку?
.msg = Удаление этой папки перенесёт значки приложений из неё в папку «Главная».
flatpak = Flatpak
snap = Snap
system = Системное
local = Локальное
nix = Nix0707010000003A000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/sk0707010000003B000081A400000000000000000000000166AD2B9000000310000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/sk/cosmic_app_library.ftlcosmic-app-library = Knižnica aplikácií COSMIC
cosmic-library-home = Domov
cosmic-office = Kancelária
cosmic-system = Systém
cosmic-utilities = Nástroje
new-group = Vytvoriť priečinok
name = Meno
ok = OK
save = Uložiť
cancel = Zrušiť
search-placeholder = Vyhľadať aplikácie...
new-group-placeholder = Názov priečinku
pin-to-app-tray = Pripnúť do panelu aplikácií
run = Spustiť
run-on = Spustiť na {$gpu}
run-on-default = (Predvolené)
remove = Presunúť do priečinku Domov
create-new = Vytvoriť nový priečinok
delete = Odstrániť
rename = Premenovať
delete-folder = Vymazať priečinok?
.msg = Odstránením tohto priečinku sa všetky aplikácie presunú do priečinka Domov.
flatpak = Flatpak
snap = Snap
system = Systém
local = Miestne
nix = Nix
0707010000003C000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002E00000000cosmic-app-library-1.0.0~alpha.1/i18n/sr-Cyrl0707010000003D000081A400000000000000000000000166AD2B9000000384000000000000000000000000000000000000004500000000cosmic-app-library-1.0.0~alpha.1/i18n/sr-Cyrl/cosmic_app_library.ftlcosmic-app-library = COSMIC Библиотека апликација
cosmic-library-home = Почетна
cosmic-office = Канцеларија
cosmic-system = Систем
cosmic-utilities = Алати
new-group = Направи фасциклу
name = Име
ok = У реду
save = Сачувај
cancel = Поништи
search-placeholder = Куцајте за претрагу апликација...
new-group-placeholder = Име фасцикле
run = Покрени
run-on = Покрени на {$gpu}
run-on-default = (подразумевано)
remove = Уклони
create-new = Направи нову фасциклу
delete = Избриши
rename = Преименуј
delete-folder = Избриши фасциклу?
.msg = Брисањем ове фасцикле, апликације ће се преместити на почетну страницу библиотеке.
0707010000003E000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002E00000000cosmic-app-library-1.0.0~alpha.1/i18n/sr-Latn0707010000003F000081A400000000000000000000000166AD2B9000000275000000000000000000000000000000000000004500000000cosmic-app-library-1.0.0~alpha.1/i18n/sr-Latn/cosmic_app_library.ftlcosmic-app-library = COSMIC Biblioteka aplikacija
cosmic-library-home = Početna
cosmic-office = Kancelarija
cosmic-system = Sistem
cosmic-utilities = Alati
new-group = Napravi fasciklu
name = Ime
ok = U redu
save = Sačuvaj
cancel = Poništi
search-placeholder = Kucajte za pretragu aplikacija...
new-group-placeholder = Ime fascikle
run = Pokreni
run-on = Pokreni na {$gpu}
run-on-default = (podrazumevano)
remove = Ukloni
create-new = Napravi novu fasciklu
delete = Izbriši
rename = Preimenuj
delete-folder = Izbriši fasciklu?
.msg = Brisanjem ove fascikle, aplikacije će se premestiti na početnu stranicu biblioteke.
07070100000040000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/sv07070100000041000081A400000000000000000000000166AD2B9000000252000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/sv/cosmic_app_library.ftlosmic-app-library = Cosmic App Bibliotek
cosmic-library-home = Bibliotek Hem
cosmic-office = Kontor
cosmic-system = System
cosmic-utilities = Verktyg
new-group = Skapa katalog
name = Namn
ok = Ok
save = Spara
cancel = Avbryt
search-placeholder = Skriv för att söka efter appar...
new-group-placeholder = Katalognamn
run = Kör
run-on = Kör på {$gpu}
run-on-default = (Standard)
remove = Ta bort
create-new = Skapa ny katalog
delete = Ta bort
rename = Byt namn
delete-folder = Ta bort katalog?
.msg = Om du tar bort den här katalogen flyttas applikationsikonerna till bibliotekets hem.
07070100000042000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/tr07070100000043000081A400000000000000000000000166AD2B9000000334000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/tr/cosmic_app_library.ftlcosmic-app-library = Cosmic Uygulama Kitaplığı
cosmic-library-home = Ana Sayfa
cosmic-office = Ofis
cosmic-system = Sistem
cosmic-utilities = Araçlar
new-group = Klasör Oluştur
name = Ad
ok = Tamam
save = Kaydet
cancel = İptal
search-placeholder = Uygulamaları aramak için yazın...
new-group-placeholder = Klasör Adı
pin-to-app-tray = Uygulamayı sistem tepsisine iliştir
run = Çalıştır
run-on = {$gpu} üzerinde çalıştır
run-on-default = (Öntanımlı)
remove = Kütüphane ana sayfasına taşı
create-new = Yeni klasör oluştur
add-group = Grup Ekle
delete = Sil
rename = Yeniden Adlandır
delete-folder = Klasör silinsin mi?
.msg = Bu klasörün silinmesi uygulama simgelerini Kitaplık ana sayfasına taşıyacaktır.
flatpak = Flatpak
snap = Snap
system = Sistem
local = Yerel
nix = Nix
07070100000044000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002900000000cosmic-app-library-1.0.0~alpha.1/i18n/uk07070100000045000081A400000000000000000000000166AD2B900000037A000000000000000000000000000000000000004000000000cosmic-app-library-1.0.0~alpha.1/i18n/uk/cosmic_app_library.ftlcosmic-app-library = Бібліотека застосунків Cosmic
cosmic-library-home = Головна сторінка бібліотеки
cosmic-office = Офіс
cosmic-system = Система
cosmic-utilities = Утиліти
new-group = Створити теку
name = Назва
ok = Ok
save = Зберегти
cancel = Скасувати
search-placeholder = Введіть текст для пошуку застосунків...
new-group-placeholder = Назва теки
run = Запустити
remove = Видалити
create-new = Створити нову теку
delete = Видалити
rename = Перейменувати
delete-folder = Видалити теку?
.msg = Видалення цієї теки призведе до переміщення піктограм застосунків до головної сторінки бібліотеки.
07070100000046000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/i18n/zh-CN07070100000047000081A400000000000000000000000166AD2B90000000BD000000000000000000000000000000000000004300000000cosmic-app-library-1.0.0~alpha.1/i18n/zh-CN/cosmic_app_library.ftlcosmic-app-library = Cosmic 应用库
cosmic-library-home = 应用库首页
cosmic-system = 系统
cosmic-utilities = 社区
new-group = 新建组
name = 名称
ok = 确定
cancel = 取消
07070100000048000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/i18n/zh-TW07070100000049000081A400000000000000000000000166AD2B9000000285000000000000000000000000000000000000004300000000cosmic-app-library-1.0.0~alpha.1/i18n/zh-TW/cosmic_app_library.ftlcosmic-app-library = Cosmic 應用程式庫
cosmic-library-home = 程式庫
cosmic-office = 辦公
cosmic-system = 系統
cosmic-utilities = 工具
new-group = 建立群組
name = 名稱
ok = 確認
save = 存檔
cancel = 取消
search-placeholder = 輸入程式名稱...
new-group-placeholder = 群組名稱
run = 執行
run-on = 執行於 {$gpu}
run-on-default = (預設)
remove = 移除
create-new = 建立新資料夾
delete = 刪除
rename = 重新命名
delete-folder = 刪除群組?
.msg = 刪除此群組將會移動應用程式圖標至應用程式庫。
flatpak = Flatpak
snap = Snap
system = 系統
local = 本地
nix = Nix
0707010000004A000081A400000000000000000000000166AD2B900000065F000000000000000000000000000000000000002A00000000cosmic-app-library-1.0.0~alpha.1/justfilename := 'cosmic-app-library'
export APPID := 'com.system76.CosmicAppLibrary'
rootdir := ''
prefix := '/usr'
base-dir := absolute_path(clean(rootdir / prefix))
export INSTALL_DIR := base-dir / 'share'
cargo-target-dir := env('CARGO_TARGET_DIR', 'target')
bin-src := cargo-target-dir / 'release' / name
bin-dst := base-dir / 'bin' / name
# Default recipe which runs `just build-release`
default: build-release
# Runs `cargo clean`
clean:
cargo clean
# `cargo clean` and removes vendored dependencies
clean-dist: clean
rm -rf .cargo vendor vendor.tar
# Compiles with debug profile
build-debug *args:
cargo build {{args}}
# Compiles with release profile
build-release *args: (build-debug '--release' args)
# Compiles release profile with vendored dependencies
build-vendored *args: vendor-extract (build-release '--frozen --offline' args)
# Runs a clippy check
check *args:
cargo clippy --all-features {{args}} -- -W clippy::pedantic
# Runs a clippy check with JSON message format
check-json: (check '--message-format=json')
# Installs files
install:
install -Dm0755 {{bin-src}} {{bin-dst}}
@just data/install
@just data/icons/install
# Uninstalls installed files
uninstall:
rm {{bin-dst}}
@just data/uninstall
@just data/icons/uninstall
# Vendor dependencies locally
vendor:
mkdir -p .cargo
cargo vendor --sync Cargo.toml \
| head -n -1 > .cargo/config
echo 'directory = "vendor"' >> .cargo/config
tar pcf vendor.tar vendor
rm -rf vendor
# Extracts vendored dependencies
vendor-extract:
#!/usr/bin/env sh
rm -rf vendor
tar pxf vendor.tar
0707010000004B000081A400000000000000000000000166AD2B9000000005000000000000000000000000000000000000003000000000cosmic-app-library-1.0.0~alpha.1/rust-toolchain1.75
0707010000004C000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002500000000cosmic-app-library-1.0.0~alpha.1/src0707010000004D000081A400000000000000000000000166AD2B900000DFF5000000000000000000000000000000000000002C00000000cosmic-app-library-1.0.0~alpha.1/src/app.rsuse std::collections::HashMap;
use std::fmt::{Debug, Display};
use std::path::{Path, PathBuf};
use std::rc::Rc;
use std::time::{Duration, Instant};
use clap::Parser;
use cosmic::app::{
Command, Core, CosmicFlags, DbusActivationDetails, DbusActivationMessage, Settings,
};
use cosmic::cosmic_config::{Config, CosmicConfigEntry};
use cosmic::cosmic_theme::Spacing;
use cosmic::desktop::DesktopEntryData;
use cosmic::iced::event::listen_with;
use cosmic::iced::id::Id;
use cosmic::iced::wayland::actions::data_device::ActionInner;
use cosmic::iced::wayland::actions::layer_surface::SctkLayerSurfaceSettings;
use cosmic::iced::wayland::actions::popup::{SctkPopupSettings, SctkPositioner};
use cosmic::iced::wayland::layer_surface::{
destroy_layer_surface, get_layer_surface, Anchor, KeyboardInteractivity,
};
use cosmic::iced::widget::{column, container, horizontal_rule, row, scrollable, text};
use cosmic::iced::{alignment::Horizontal, executor, Alignment, Length};
use cosmic::iced::{Color, Limits, Subscription};
use cosmic::iced_core::alignment::Vertical;
use cosmic::iced_core::keyboard::key::Named;
use cosmic::iced_core::keyboard::Key;
use cosmic::iced_core::text::LineHeight;
use cosmic::iced_core::{Border, Padding, Rectangle, Shadow};
use cosmic::iced_runtime::core::event::wayland::LayerEvent;
use cosmic::iced_runtime::core::event::{wayland, PlatformSpecific};
use cosmic::iced_runtime::core::window::Id as SurfaceId;
use cosmic::iced_sctk::commands;
use cosmic::iced_sctk::commands::activation::request_token;
use cosmic::iced_sctk::commands::data_device::cancel_dnd;
use cosmic::iced_sctk::commands::popup::destroy_popup;
use cosmic::iced_style::application::{self, Appearance};
use cosmic::iced_style::svg;
use cosmic::iced_widget::text_input::focus;
use cosmic::iced_widget::{horizontal_space, mouse_area, vertical_space, Container};
use cosmic::theme::{self, Button, TextInput};
use cosmic::widget::button::StyleSheet as ButtonStyleSheet;
use cosmic::widget::icon::from_name;
use cosmic::widget::text::body;
use cosmic::widget::{button, icon, search_input, text_input, tooltip, Checkbox, Column};
use cosmic::{cctk::sctk, iced, Element, Theme};
use cosmic_app_list_config::AppListConfig;
use freedesktop_desktop_entry::PathSource;
use itertools::Itertools;
use log::error;
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use switcheroo_control::Gpu;
use crate::app_group::AppLibraryConfig;
use crate::fl;
use crate::subscriptions::desktop_files::desktop_files;
use crate::widgets::application::ApplicationButton;
use crate::widgets::group::GroupButton;
// popovers should show options, but also the desktop info options
// should be a way to add apps to groups
// should be a way to remove apps from groups
static SEARCH_ID: Lazy<Id> = Lazy::new(|| Id::new("search"));
static EDIT_GROUP_ID: Lazy<Id> = Lazy::new(|| Id::new("edit_group"));
static NEW_GROUP_ID: Lazy<Id> = Lazy::new(|| Id::new("new_group"));
static SUBMIT_DELETE_ID: Lazy<Id> = Lazy::new(|| Id::new("cancel_delete"));
static CREATE_NEW: Lazy<String> = Lazy::new(|| fl!("create-new"));
static ADD_GROUP: Lazy<String> = Lazy::new(|| fl!("add-group"));
static SEARCH_PLACEHOLDER: Lazy<String> = Lazy::new(|| fl!("search-placeholder"));
static NEW_GROUP_PLACEHOLDER: Lazy<String> = Lazy::new(|| fl!("new-group-placeholder"));
static SAVE: Lazy<String> = Lazy::new(|| fl!("save"));
static CANCEL: Lazy<String> = Lazy::new(|| fl!("cancel"));
static RUN: Lazy<String> = Lazy::new(|| fl!("run"));
static REMOVE: Lazy<String> = Lazy::new(|| fl!("remove"));
static FLATPAK: Lazy<String> = Lazy::new(|| fl!("flatpak"));
static LOCAL: Lazy<String> = Lazy::new(|| fl!("local"));
static NIX: Lazy<String> = Lazy::new(|| fl!("nix"));
static SNAP: Lazy<String> = Lazy::new(|| fl!("snap"));
static SYSTEM: Lazy<String> = Lazy::new(|| fl!("system"));
pub(crate) static WINDOW_ID: Lazy<SurfaceId> = Lazy::new(|| SurfaceId::unique());
static NEW_GROUP_WINDOW_ID: Lazy<SurfaceId> = Lazy::new(|| SurfaceId::unique());
static DELETE_GROUP_WINDOW_ID: Lazy<SurfaceId> = Lazy::new(|| SurfaceId::unique());
pub(crate) static DND_ICON_ID: Lazy<SurfaceId> = Lazy::new(|| SurfaceId::unique());
pub(crate) static MENU_ID: Lazy<SurfaceId> = Lazy::new(|| SurfaceId::unique());
#[derive(Parser, Debug, Serialize, Deserialize, Clone)]
#[command(author, version, about, long_about = None)]
#[command(propagate_version = true)]
pub struct Args {}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct LauncherCommands;
impl ToString for LauncherCommands {
fn to_string(&self) -> String {
ron::ser::to_string(self).unwrap()
}
}
impl CosmicFlags for Args {
type SubCommand = LauncherCommands;
type Args = Vec<String>;
fn action(&self) -> Option<&LauncherCommands> {
None
}
}
pub fn run() -> cosmic::iced::Result {
cosmic::app::run_single_instance::<CosmicAppLibrary>(
Settings::default()
.antialiasing(true)
.client_decorations(true)
.debug(false)
.default_text_size(16.0)
.scale_factor(1.0)
.no_main_window(true)
.exit_on_close(false),
Args::parse(),
)
}
pub struct AppSource(PathSource);
impl AppSource {
pub fn as_icon(&self) -> Option<cosmic::widget::icon::Icon> {
let name = match &self.0 {
PathSource::Local | PathSource::LocalDesktop => "app-source-local-symbolic",
PathSource::System | PathSource::SystemLocal => "app-source-system-symbolic",
PathSource::LocalFlatpak | PathSource::SystemFlatpak => "app-source-flatpak",
PathSource::SystemSnap => "app-source-snap",
PathSource::Nix | PathSource::LocalNix => "app-source-nix",
PathSource::Other(_) => return None,
};
let handle = crate::icon_cache::icon_cache_handle(name, 16);
let symbolic = handle.symbolic;
Some(icon(handle).size(16).style(if symbolic {
cosmic::theme::Svg::Custom(Rc::new(|t| {
let color = t.cosmic().on_primary_component_color().into();
svg::Appearance { color: Some(color) }
}))
} else {
cosmic::theme::Svg::Default
}))
}
}
impl<'a> From<&'a Path> for AppSource {
fn from(path: &'a Path) -> Self {
AppSource(PathSource::guess_from(path))
}
}
impl<'a> Display for AppSource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"{:.7}",
match &self.0 {
PathSource::Local | PathSource::LocalDesktop => LOCAL.as_str(),
PathSource::SystemFlatpak | PathSource::LocalFlatpak => FLATPAK.as_str(),
PathSource::SystemSnap => SNAP.as_str(),
PathSource::Nix | PathSource::LocalNix => NIX.as_str(),
PathSource::System | PathSource::SystemLocal => SYSTEM.as_str(),
PathSource::Other(s) => s.as_str(),
}
)
}
}
#[derive(Default)]
struct CosmicAppLibrary {
search_value: String,
entry_path_input: Vec<Arc<DesktopEntryData>>,
all_entries: Vec<Arc<DesktopEntryData>>,
menu: Option<usize>,
helper: Option<Config>,
config: AppLibraryConfig,
cur_group: usize,
active_surface: bool,
locale: Option<String>,
edit_name: Option<String>,
new_group: Option<String>,
dnd_icon: Option<usize>,
offer_group: Option<usize>,
waiting_for_filtered: bool,
scroll_offset: f32,
core: Core,
group_to_delete: Option<usize>,
gpus: Option<Vec<Gpu>>,
last_hide: Option<Instant>,
duplicates: HashMap<PathBuf, AppSource>,
app_list_config: AppListConfig,
}
async fn try_get_gpus() -> Option<Vec<Gpu>> {
let connection = zbus::Connection::system().await.ok()?;
let proxy = switcheroo_control::SwitcherooControlProxy::new(&connection)
.await
.ok()?;
if !proxy.has_dual_gpu().await.ok()? {
return None;
}
let gpus = proxy.get_gpus().await.ok()?;
if gpus.is_empty() {
return None;
}
Some(gpus)
}
impl CosmicAppLibrary {
pub fn activate(&mut self) -> Command<Message> {
if self.active_surface {
return self.hide();
} else if !self
.last_hide
.is_some_and(|i| i.elapsed() < Duration::from_millis(100))
{
self.edit_name = None;
self.search_value = "".to_string();
self.active_surface = true;
self.scroll_offset = 0.0;
self.cur_group = 0;
self.load_apps();
let fetch_gpus = Command::perform(try_get_gpus(), |gpus| {
cosmic::app::Message::App(Message::GpuUpdate(gpus))
});
return Command::batch(vec![
text_input::focus(SEARCH_ID.clone()),
get_layer_surface(SctkLayerSurfaceSettings {
id: WINDOW_ID.clone(),
keyboard_interactivity: KeyboardInteractivity::OnDemand,
anchor: Anchor::all(),
namespace: "app-library".into(),
size: Some((None, None)),
..Default::default()
}),
fetch_gpus,
]);
}
Command::none()
}
}
#[derive(Clone, Debug)]
enum Message {
InputChanged(String),
Layer(LayerEvent, SurfaceId),
Hide,
ActivateApp(usize, Option<usize>),
ActivationToken(Option<String>, String, String, Option<usize>),
SelectGroup(usize),
Delete(usize),
ConfirmDelete,
CancelDelete,
StartEditName(String),
EditName(String),
SubmitName,
StartNewGroup,
NewGroup(String),
SubmitNewGroup,
CancelNewGroup,
LoadApps,
FilterApps(String, Vec<Arc<DesktopEntryData>>),
OpenContextMenu(Rectangle, usize),
CloseContextMenu,
SelectAction(MenuAction),
StartDrag(usize),
DndCommandProduced(DndCommand),
FinishDrag(bool),
CancelDrag,
StartDndOffer(usize),
FinishDndOffer(usize, DesktopEntryData),
LeaveDndOffer,
ScrollYOffset(f32),
GpuUpdate(Option<Vec<Gpu>>),
PinToAppTray(usize),
UnPinFromAppTray(usize),
AppListConfig(AppListConfig),
}
#[derive(Clone)]
struct DndCommand(Arc<Box<dyn Send + Sync + Fn() -> ActionInner>>);
impl Debug for DndCommand {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("DndCommand").finish()
}
}
#[derive(Clone, Debug)]
enum MenuAction {
Remove,
DesktopAction(String),
}
pub fn menu_button<'a, Message>(
content: impl Into<Element<'a, Message>>,
) -> cosmic::widget::Button<'a, Message> {
cosmic::widget::button(content)
.style(Button::AppletMenu)
.padding(menu_control_padding())
.width(Length::Fill)
}
pub fn menu_control_padding() -> Padding {
let theme = cosmic::theme::active();
let cosmic = theme.cosmic();
[cosmic.space_xxs(), cosmic.space_m()].into()
}
impl CosmicAppLibrary {
pub fn load_apps(&mut self) {
let locale = self.locale.as_deref();
let xdg_current_desktop = std::env::var("XDG_CURRENT_DESKTOP").ok();
self.all_entries = cosmic::desktop::load_applications_filtered(locale, |entry| {
entry.exec().is_some()
&& !entry.no_display()
&& xdg_current_desktop
.as_ref()
.zip(entry.only_show_in())
.map(|(xdg_current_desktop, only_show_in)| {
only_show_in.contains(xdg_current_desktop)
})
.unwrap_or(true)
})
.into_iter()
.map(Arc::new)
.collect();
self.all_entries.sort_by(|a, b| a.name.cmp(&b.name));
self.entry_path_input =
self.config
.filtered(self.cur_group, &self.search_value, &self.all_entries);
// collect duplicates
self.duplicates.clear();
self.duplicates = self
.all_entries
.iter()
.enumerate()
.fold(
(std::mem::take(&mut self.duplicates), 0, "", ""),
|(mut dups, cur_count, cur_name, cur_id): (HashMap<_, _>, usize, &str, &str),
(i, e)| {
if cur_name.to_lowercase().trim() == e.name.to_lowercase().trim()
|| e.id == cur_id
{
if cur_count == 1 {
// insert previous entry
if let Some(path) = self.all_entries[i - 1].path.as_ref() {
let source = AppSource::from(path.as_ref());
dups.insert(path.clone(), source);
}
}
if let Some(path) = e.path.as_ref() {
let source = AppSource::from(path.as_ref());
dups.insert(path.clone(), source);
}
(dups, cur_count + 1, cur_name, cur_id)
} else {
(dups, 1, e.name.as_str(), e.id.as_str())
}
},
)
.0;
}
fn filter_apps(&mut self) -> Command<Message> {
let config = self.config.clone();
let all_entries = self.all_entries.clone();
let cur_group = self.cur_group;
let input = self.search_value.clone();
if !self.waiting_for_filtered {
self.waiting_for_filtered = true;
iced::Command::perform(
async move {
let mut apps = config.filtered(cur_group, &input, &all_entries);
apps.sort_by(|a, b| a.name.cmp(&b.name));
(input, apps)
},
|(input, apps)| Message::FilterApps(input, apps),
)
.map(cosmic::app::Message::App)
} else {
iced::Command::none()
}
}
pub fn hide(&mut self) -> Command<Message> {
// cancel existing dnd if it exists then try again...
if self.dnd_icon.take().is_some() {
return Command::batch(vec![
cancel_dnd(),
Command::perform(async {}, |_| cosmic::app::Message::App(Message::Hide)),
]);
}
self.active_surface = false;
self.new_group = None;
self.search_value.clear();
self.edit_name = None;
self.cur_group = 0;
self.menu = None;
self.group_to_delete = None;
self.scroll_offset = 0.0;
iced::Command::batch(vec![
text_input::focus(SEARCH_ID.clone()),
destroy_popup(MENU_ID.clone()),
destroy_layer_surface(NEW_GROUP_WINDOW_ID.clone()),
destroy_layer_surface(DELETE_GROUP_WINDOW_ID.clone()),
destroy_layer_surface(WINDOW_ID.clone()),
])
}
}
impl cosmic::Application for CosmicAppLibrary {
type Message = Message;
type Executor = executor::Default;
type Flags = Args;
const APP_ID: &'static str = "com.system76.CosmicAppLibrary";
fn core(&self) -> &Core {
&self.core
}
fn update(&mut self, message: Message) -> Command<Self::Message> {
match message {
Message::InputChanged(value) => {
self.search_value = value;
return self.filter_apps();
}
Message::Layer(e, id) => match e {
LayerEvent::Focused => {
if id == WINDOW_ID.clone() {
return text_input::focus(SEARCH_ID.clone());
} else if id == DELETE_GROUP_WINDOW_ID.clone() {
return button::focus(SUBMIT_DELETE_ID.clone());
} else if id == NEW_GROUP_WINDOW_ID.clone() {
return text_input::focus(NEW_GROUP_ID.clone());
}
}
LayerEvent::Unfocused => {
self.last_hide = Some(Instant::now());
if self.active_surface
&& id == WINDOW_ID.clone()
&& self.menu.is_none()
&& self.new_group.is_none()
&& self.group_to_delete.is_none()
{
return self.hide();
}
}
LayerEvent::Done if id == WINDOW_ID.clone() => {
// no need for commands here
_ = self.hide();
}
_ => {}
},
Message::Hide => {
return self.hide();
}
Message::ActivateApp(i, gpu_idx) => {
self.edit_name = None;
if let Some(de) = self.entry_path_input.get(i) {
let app_id = de.id.clone();
let exec = de.exec.clone().unwrap();
return request_token(
Some(String::from(Self::APP_ID)),
Some(WINDOW_ID.clone()),
move |token| {
cosmic::app::Message::App(Message::ActivationToken(
token, app_id, exec, gpu_idx,
))
},
);
}
}
Message::ActivationToken(token, app_id, exec, gpu_idx) => {
let mut env_vars = Vec::new();
if let Some(token) = token {
env_vars.push(("XDG_ACTIVATION_TOKEN".to_string(), token.clone()));
env_vars.push(("DESKTOP_STARTUP_ID".to_string(), token));
}
if let (Some(gpus), Some(idx)) = (self.gpus.as_ref(), gpu_idx) {
env_vars.extend(gpus[idx].environment.clone().into_iter());
}
tokio::spawn(async move {
cosmic::desktop::spawn_desktop_exec(exec, env_vars, Some(&app_id)).await
});
return self.update(Message::Hide);
}
Message::SelectGroup(i) => {
self.edit_name = None;
self.search_value.clear();
self.cur_group = i;
self.scroll_offset = 0.0;
let mut cmds = vec![self.filter_apps()];
if self.cur_group == 0 {
cmds.push(text_input::focus(SEARCH_ID.clone()));
}
return iced::Command::batch(cmds);
}
Message::LoadApps => {
return self.filter_apps();
}
Message::Delete(group) => {
self.group_to_delete = Some(group);
return Command::batch(vec![
get_layer_surface(SctkLayerSurfaceSettings {
id: DELETE_GROUP_WINDOW_ID.clone(),
keyboard_interactivity: KeyboardInteractivity::Exclusive,
anchor: Anchor::empty(),
namespace: "dialog".into(),
size: None,
..Default::default()
}),
button::focus(SUBMIT_DELETE_ID.clone()),
]);
}
Message::EditName(name) => {
self.edit_name = Some(name);
}
Message::SubmitName => {
if let Some(name) = self.edit_name.take() {
self.config.set_name(self.cur_group, name);
}
if let Some(helper) = self.helper.as_ref() {
if let Err(err) = self.config.write_entry(helper) {
error!("{:?}", err);
}
}
}
Message::StartEditName(name) => {
self.edit_name = Some(name);
return focus(EDIT_GROUP_ID.clone());
}
Message::StartNewGroup => {
self.new_group = Some(String::new());
return Command::batch(vec![
get_layer_surface(SctkLayerSurfaceSettings {
id: NEW_GROUP_WINDOW_ID.clone(),
keyboard_interactivity: KeyboardInteractivity::Exclusive,
anchor: Anchor::empty(),
namespace: "dialog".into(),
size: None,
..Default::default()
}),
text_input::focus(NEW_GROUP_ID.clone()),
]);
}
Message::NewGroup(group_name) => {
self.new_group = Some(group_name);
}
Message::SubmitNewGroup => {
if let Some(group_name) = self.new_group.take() {
self.config.add(group_name);
}
if let Some(helper) = self.helper.as_ref() {
if let Err(err) = self.config.write_entry(helper) {
error!("{:?}", err);
}
}
return destroy_layer_surface(NEW_GROUP_WINDOW_ID.clone());
}
Message::CancelNewGroup => {
self.new_group = None;
return destroy_layer_surface(NEW_GROUP_WINDOW_ID.clone());
}
Message::OpenContextMenu(rect, i) => {
if self.menu.take().is_some() {
return destroy_popup(MENU_ID.clone());
} else {
self.menu = Some(i);
return commands::popup::get_popup(SctkPopupSettings {
parent: WINDOW_ID.clone(),
id: MENU_ID.clone(),
positioner: SctkPositioner {
size: None,
size_limits: Limits::NONE.min_width(1.0).min_height(1.0).max_width(300.0).max_height(800.0),
anchor_rect: Rectangle {
x: rect.x as i32,
y: rect.y as i32 - self.scroll_offset as i32,
width: rect.width as i32,
height: rect.height as i32,
},
anchor:
sctk::reexports::protocols::xdg::shell::client::xdg_positioner::Anchor::Right,
gravity: sctk::reexports::protocols::xdg::shell::client::xdg_positioner::Gravity::Right,
reactive: true,
..Default::default()
},
grab: true,
parent_size: None,
});
}
}
Message::CloseContextMenu => {
self.menu = None;
return commands::popup::destroy_popup(MENU_ID.clone());
}
Message::SelectAction(action) => {
if let Some(info) = self.menu.take().and_then(|i| self.entry_path_input.get(i)) {
match action {
MenuAction::Remove => {
self.config.remove_entry(self.cur_group, &info.id);
if let Some(helper) = self.helper.as_ref() {
if let Err(err) = self.config.write_entry(helper) {
error!("{:?}", err);
}
}
return self.filter_apps();
}
MenuAction::DesktopAction(exec) => {
let mut exec = shlex::Shlex::new(&exec);
let mut cmd = match exec.next() {
Some(cmd) if !cmd.contains('=') => {
tokio::process::Command::new(cmd)
}
_ => return Command::none(),
};
for arg in exec {
// TODO handle "%" args here if necessary?
if !arg.starts_with('%') {
cmd.arg(arg);
}
}
let _ = cmd.spawn();
return self.hide();
}
}
}
}
Message::StartDrag(i) => {
self.dnd_icon = Some(i);
}
Message::FinishDrag(copy) => {
if !copy {
if let Some(info) = self
.dnd_icon
.take()
.and_then(|i| self.entry_path_input.get(i))
{
self.config.remove_entry(self.cur_group, &info.id);
if let Some(helper) = self.helper.as_ref() {
if let Err(err) = self.config.write_entry(helper) {
error!("{:?}", err);
}
}
return self.filter_apps();
}
}
}
Message::CancelDrag => {
self.dnd_icon = None;
}
Message::DndCommandProduced(DndCommand(cmd)) => {
let action = cmd();
return commands::data_device::action(action);
}
Message::StartDndOffer(i) => {
self.offer_group = Some(i);
}
Message::FinishDndOffer(i, entry) => {
self.offer_group = None;
self.config.add_entry(i, &entry.id);
if let Some(helper) = self.helper.as_ref() {
if let Err(err) = self.config.write_entry(helper) {
error!("{:?}", err);
}
}
}
Message::LeaveDndOffer => {
self.offer_group = None;
}
Message::ScrollYOffset(y) => {
self.scroll_offset = y;
}
Message::ConfirmDelete => {
let mut cmds = vec![destroy_layer_surface(DELETE_GROUP_WINDOW_ID.clone())];
if let Some(group) = self.group_to_delete.take() {
self.config.remove(group);
if let Some(helper) = self.helper.as_ref() {
if let Err(err) = self.config.write_entry(helper) {
error!("{:?}", err);
}
}
self.cur_group = 0;
cmds.push(self.filter_apps());
}
return Command::batch(cmds);
}
Message::CancelDelete => {
self.group_to_delete = None;
return destroy_layer_surface(DELETE_GROUP_WINDOW_ID.clone());
}
Message::FilterApps(input, filtered_apps) => {
self.entry_path_input = filtered_apps;
self.waiting_for_filtered = false;
if self.search_value != input {
return self.filter_apps();
}
}
Message::GpuUpdate(gpus) => {
self.gpus = gpus;
}
Message::PinToAppTray(usize) => {
let pinned_id = self.entry_path_input.get(usize).map(|e| e.id.clone());
if let Some((pinned_id, app_list_helper)) = pinned_id
.zip(Config::new(cosmic_app_list_config::APP_ID, AppListConfig::VERSION).ok())
{
self.app_list_config.add_pinned(pinned_id, &app_list_helper);
}
}
Message::UnPinFromAppTray(usize) => {
let pinned_id = self.entry_path_input.get(usize).map(|e| e.id.clone());
if let Some((pinned_id, app_list_helper)) = pinned_id
.zip(Config::new(cosmic_app_list_config::APP_ID, AppListConfig::VERSION).ok())
{
self.app_list_config
.remove_pinned(&pinned_id, &app_list_helper);
}
}
Message::AppListConfig(config) => {
self.app_list_config = config;
}
}
Command::none()
}
fn dbus_activation(&mut self, msg: DbusActivationMessage) -> Command<Self::Message> {
if matches!(msg.msg, DbusActivationDetails::Activate) {
self.activate()
} else {
Command::none()
}
}
fn view(&self) -> Element<Message> {
unimplemented!()
}
fn view_window(&self, id: SurfaceId) -> Element<Message> {
let theme = cosmic::theme::active();
let cosmic = theme.cosmic();
let spacing = &cosmic.spacing;
if id == DND_ICON_ID.clone() {
let Some(icon_source) = self
.dnd_icon
.and_then(|i| self.entry_path_input.get(i).map(|e| &e.icon))
else {
return container(horizontal_space(Length::Fixed(1.0)))
.width(Length::Fixed(1.0))
.height(Length::Fixed(1.0))
.into();
};
return icon_source.as_cosmic_icon().size(32).into();
}
if id == MENU_ID.clone() {
let Some((menu, i)) = self
.menu
.as_ref()
.and_then(|i| self.entry_path_input.get(*i).map(|e| (e, i)))
else {
return container(horizontal_space(Length::Fixed(1.0)))
.width(Length::Fixed(1.0))
.height(Length::Fixed(1.0))
.into();
};
let mut list_column = Vec::new();
if let Some(gpus) = self.gpus.as_ref() {
for (j, gpu) in gpus.iter().enumerate() {
let default_idx = if menu.prefers_dgpu {
gpus.iter().position(|gpu| !gpu.default).unwrap_or(0)
} else {
gpus.iter().position(|gpu| gpu.default).unwrap_or(0)
};
list_column.push(
menu_button(body(format!(
"{} {}",
fl!("run-on", gpu = gpu.name.clone()),
if j == default_idx {
fl!("run-on-default")
} else {
String::new()
}
)))
.on_press(Message::ActivateApp(*i, Some(j)))
.into(),
)
}
} else {
list_column.push(
menu_button(body(RUN.clone()))
.on_press(Message::ActivateApp(*i, None))
.into(),
);
}
if menu.desktop_actions.len() > 0 {
list_column.push(menu_divider(spacing).into());
for action in menu.desktop_actions.iter() {
list_column.push(
menu_button(body(&action.name))
.on_press(Message::SelectAction(
MenuAction::DesktopAction(action.exec.clone()).into(),
))
.into(),
);
}
}
// add to pinned
let spacing_xxs = cosmic.spacing.space_xxs;
let svg_accent = Rc::new(|theme: &cosmic::Theme| {
let color = theme.cosmic().accent_color().into();
svg::Appearance { color: Some(color) }
});
let is_pinned = self.app_list_config.favorites.iter().any(|p| p == &menu.id);
let pin_to_app_tray = menu_button(
if is_pinned {
row![
icon(from_name("checkbox-checked-symbolic").into())
.size(16)
.style(cosmic::theme::Svg::Custom(svg_accent.clone())),
body(fl!("pin-to-app-tray"))
]
} else {
row![horizontal_space(16.0), body(fl!("pin-to-app-tray"))]
}
.spacing(spacing_xxs),
)
.on_press(if is_pinned {
Message::UnPinFromAppTray(*i)
} else {
Message::PinToAppTray(*i)
});
list_column.push(menu_divider(spacing).into());
list_column.push(pin_to_app_tray.into());
if self.cur_group > 0 {
list_column.push(menu_divider(spacing).into());
list_column.push(
menu_button(body(REMOVE.clone()))
.on_press(Message::SelectAction(MenuAction::Remove))
.into(),
);
}
return container(scrollable(Column::with_children(list_column)))
.padding([8, 0])
.style(theme::Container::Custom(Box::new(|theme| {
container::Appearance {
text_color: Some(theme.cosmic().on_bg_color().into()),
background: Some(Color::from(theme.cosmic().background.base).into()),
border: Border {
color: theme.cosmic().bg_divider().into(),
radius: theme.cosmic().corner_radii.radius_m.into(),
width: 1.0,
},
shadow: Shadow::default(),
icon_color: Some(theme.cosmic().on_bg_color().into()),
}
})))
.width(Length::Shrink)
.height(Length::Shrink)
.align_x(Horizontal::Center)
.align_y(Vertical::Top)
.into();
}
if id == NEW_GROUP_WINDOW_ID.clone() {
let Some(group_name) = self.new_group.as_ref() else {
return container(horizontal_space(Length::Fixed(1.0)))
.width(Length::Fixed(1.0))
.height(Length::Fixed(1.0))
.into();
};
let dialog = column![
container(text(CREATE_NEW.as_str()).size(24))
.align_x(Horizontal::Left)
.width(Length::Fixed(432.0)),
text_input("", group_name)
.label(&NEW_GROUP_PLACEHOLDER)
.on_input(Message::NewGroup)
.on_submit(Message::SubmitNewGroup)
.width(Length::Fixed(432.0))
.size(14)
.id(NEW_GROUP_ID.clone()),
container(
row![
button(
text(&CANCEL.as_str())
.size(14.0)
.horizontal_alignment(Horizontal::Center)
.width(Length::Fill)
)
.on_press(Message::CancelNewGroup)
.padding([spacing.space_xxs, spacing.space_s])
.width(142),
button(
text(&SAVE.as_str())
.size(14.0)
.horizontal_alignment(Horizontal::Center)
.width(Length::Fill)
)
.style(Button::Suggested)
.on_press(Message::SubmitNewGroup)
.padding([spacing.space_xxs, spacing.space_s])
.width(142),
]
.spacing(spacing.space_s)
)
.width(Length::Fixed(432.0))
.align_x(Horizontal::Right)
]
.align_items(Alignment::Center)
.spacing(spacing.space_s);
return container(dialog)
.style(theme::Container::Custom(Box::new(|theme| {
container::Appearance {
text_color: Some(theme.cosmic().on_bg_color().into()),
icon_color: Some(theme.cosmic().on_bg_color().into()),
background: Some(Color::from(theme.cosmic().background.base).into()),
border: Border {
color: theme.cosmic().bg_divider().into(),
radius: theme.cosmic().corner_radii.radius_m.into(),
width: 1.0,
},
shadow: Shadow::default(),
}
})))
.width(Length::Shrink)
.height(Length::Shrink)
.padding(spacing.space_s)
.into();
}
if id == DELETE_GROUP_WINDOW_ID.clone() {
let dialog = column![
row![
container(
icon(from_name("edit-delete-symbolic").into())
.width(Length::Fixed(48.0))
.height(Length::Fixed(48.0))
)
.padding(8),
column![
text(&fl!("delete-folder").as_str()).size(24),
text(&fl!("delete-folder", "msg").as_str())
]
.spacing(8)
.width(Length::Fixed(360.0))
]
.spacing(16),
container(
row![
button(
text(&CANCEL.as_str())
.horizontal_alignment(Horizontal::Center)
.width(Length::Fill)
)
.on_press(Message::CancelDelete)
.padding([spacing.space_xxs, spacing.space_m])
.width(142),
button(
text(&fl!("delete"))
.horizontal_alignment(Horizontal::Center)
.width(Length::Fill)
)
.id(SUBMIT_DELETE_ID.clone())
.style(Button::Destructive)
.on_press(Message::ConfirmDelete)
.padding([spacing.space_xxs, spacing.space_m])
.width(142),
]
.spacing(spacing.space_s)
)
.width(Length::Fixed(432.0))
.align_x(Horizontal::Right)
]
.align_items(Alignment::Center)
.spacing(spacing.space_l);
return container(dialog)
.style(theme::Container::Custom(Box::new(|theme| {
container::Appearance {
text_color: Some(theme.cosmic().on_bg_color().into()),
icon_color: Some(theme.cosmic().on_bg_color().into()),
background: Some(Color::from(theme.cosmic().background.base).into()),
border: Border {
color: theme.cosmic().bg_divider().into(),
radius: theme.cosmic().corner_radii.radius_m.into(),
width: 1.0,
},
shadow: Shadow::default(),
}
})))
.width(Length::Shrink)
.height(Length::Shrink)
.padding(spacing.space_m)
.into();
}
let cur_group = self.config.groups()[self.cur_group];
let top_row = if self.cur_group == 0 {
row![container(
search_input(SEARCH_PLACEHOLDER.as_str(), self.search_value.as_str())
.on_input(Message::InputChanged)
.on_paste(Message::InputChanged)
.style(TextInput::Search)
.width(Length::Fixed(400.0))
.size(14)
.id(SEARCH_ID.clone())
)
.align_y(Vertical::Center)
.height(Length::Fixed(96.0))]
.align_items(Alignment::Center)
.spacing(spacing.space_xxs)
} else {
row![
horizontal_space(Length::FillPortion(1)),
if let Some(edit_name) = self.edit_name.as_ref() {
container(
text_input(cur_group.name(), edit_name)
.on_input(Message::EditName)
.on_paste(Message::EditName)
.on_clear(Message::EditName(String::new()))
.on_submit(Message::SubmitName)
.id(EDIT_GROUP_ID.clone())
.width(Length::Fixed(200.0))
.size(14),
)
} else {
container(text(&cur_group.name()).size(24))
},
row![
horizontal_space(Length::Fill),
tooltip(
{
let mut b = button(
icon(from_name("edit-symbolic").into())
.width(Length::Fixed(32.0))
.height(Length::Fixed(32.0)),
)
.padding(spacing.space_xs)
.style(Button::Icon);
if self.edit_name.is_none() {
b = b.on_press(Message::StartEditName(cur_group.name()));
}
container(b)
.height(Length::Fixed(96.0))
.align_y(Vertical::Center)
},
fl!("rename"),
tooltip::Position::Bottom
),
tooltip(
container(
button(
icon(from_name("edit-delete-symbolic").into())
.width(Length::Fixed(32.0))
.height(Length::Fixed(32.0)),
)
.padding(spacing.space_xs)
.style(Button::Icon)
.on_press(Message::Delete(self.cur_group))
)
.height(Length::Fixed(96.0))
.align_y(Vertical::Center),
fl!("delete"),
tooltip::Position::Bottom
)
]
.spacing(spacing.space_xxs)
.width(Length::FillPortion(1))
]
.padding([0, spacing.space_l])
.align_items(Alignment::Center)
};
// TODO grid widget in libcosmic
let app_grid_list: Vec<_> = self
.entry_path_input
.iter()
.enumerate()
.map(|(i, entry)| {
let gpu_idx = self.gpus.as_ref().map(|gpus| {
if entry.prefers_dgpu {
gpus.iter().position(|gpu| !gpu.default).unwrap_or(0)
} else {
gpus.iter().position(|gpu| gpu.default).unwrap_or(0)
}
});
let dup = entry
.path
.as_ref()
.and_then(|path| self.duplicates.get(path));
let selected = self.menu.is_some_and(|m| m == i);
let mut b = ApplicationButton::new(
&entry,
move |rect| Message::OpenContextMenu(rect, i),
if self.menu.is_none() {
Some(Message::ActivateApp(i, gpu_idx))
} else if selected {
Some(Message::CloseContextMenu)
} else {
None
},
spacing,
// TODO add icon and text if duplicated
dup,
selected,
);
if self.menu.is_none() {
b = b
.on_cancel(Message::CancelDrag)
.on_finish(Message::FinishDrag)
.on_create_dnd_source(Message::StartDrag(i))
.on_dnd_command_produced(|c| {
Message::DndCommandProduced(DndCommand(Arc::new(c)))
});
}
b.into()
})
.chunks(7)
.into_iter()
.map(|row_chunk| {
let mut new_row = row_chunk.collect_vec();
let missing = 7 - new_row.len();
if missing > 0 {
new_row.push(
iced::widget::horizontal_space(Length::FillPortion(
missing.try_into().unwrap(),
))
.into(),
);
}
row(new_row).spacing(spacing.space_xxs).into()
})
.collect();
let app_scrollable = container(
scrollable(
column(app_grid_list)
.width(Length::Fill)
.spacing(spacing.space_xxs)
.padding([
spacing.space_none,
spacing.space_xxl,
spacing.space_xxs,
spacing.space_xxl,
]),
)
.on_scroll(|viewport| Message::ScrollYOffset(viewport.absolute_offset().y))
.id(Id::new(
self.config
.groups()
.get(self.cur_group)
.map(|g| g.name.clone())
.unwrap_or_else(|| "unknown-group".to_string()),
))
.height(Length::Fill),
)
.max_height(444.0);
// TODO use the spacing variables from the theme
let (group_icon_size, h_padding, group_width, group_height, chunks) =
if self.config.groups().len() > 15 {
(16.0, spacing.space_xxs, 96.0, 60.0, 11)
} else {
(32.0, spacing.space_s, 128.0, 76.0, 8)
};
let mut add_group_btn = Some(
button(
column![
container(
icon(from_name("folder-new-symbolic").into())
.width(Length::Fixed(group_icon_size))
.height(Length::Fixed(group_icon_size))
)
.padding(spacing.space_xxs),
text(&fl!("add-group").as_str())
.size(14.0)
.horizontal_alignment(Horizontal::Center)
]
.align_items(Alignment::Center)
.width(Length::Fill),
)
.height(Length::Fixed(group_height))
.width(Length::Fixed(group_width))
.style(theme::Button::IconVertical)
.padding([spacing.space_none, h_padding, spacing.space_xxs, h_padding])
.on_press(Message::StartNewGroup),
);
let mut group_rows: Vec<_> = self
.config
.groups()
.chunks(chunks)
.enumerate()
.map(|(chunk, groups)| {
let mut group_row = row![]
.spacing(spacing.space_xxs)
.padding([spacing.space_s, spacing.space_none])
.align_items(Alignment::Center);
for (i, group) in groups.iter().enumerate() {
let i = i + chunk * chunks;
let mut group_button = GroupButton::new(
group.name(),
&group.icon,
if self.menu.is_some() {
None
} else {
Some(Message::SelectGroup(i))
},
if self.offer_group == Some(i)
|| (self.cur_group == i && self.offer_group.is_none())
{
// TODO customize the IconVertical to highlight in the way we need
Button::Custom {
active: Box::new(|focused, theme| {
let s = theme.pressed(focused, false, &Button::IconVertical);
s
}),
disabled: Box::new(|theme| {
let s = theme.disabled(&Button::IconVertical);
s
}),
hovered: Box::new(|focused, theme| {
let s = theme.hovered(focused, false, &Button::IconVertical);
s
}),
pressed: Box::new(|focused, theme| {
let s = theme.pressed(focused, false, &Button::IconVertical);
s
}),
}
} else {
Button::IconVertical
},
group_icon_size,
[spacing.space_none, h_padding, spacing.space_xxs, h_padding],
group_width,
group_height,
spacing,
);
group_button = group_button
.on_finish(move |entry| Message::FinishDndOffer(i, entry))
.on_cancel(Message::LeaveDndOffer)
.on_offer(Message::StartDndOffer(i))
.on_dnd_command_produced(|c| {
Message::DndCommandProduced(DndCommand(Arc::new(c)))
});
group_row = group_row.push(group_button);
}
if groups.len() < chunks {
group_row = group_row.push(add_group_btn.take().unwrap());
}
group_row
})
.collect();
if let Some(add_group_button) = add_group_btn.take() {
group_rows.push(
row![add_group_button]
.spacing(8)
.padding([spacing.space_s, spacing.space_none])
.align_items(Alignment::Center),
);
};
let group_rows =
Column::with_children(group_rows.into_iter().map(|r| r.into()).collect_vec());
let content = column![
top_row,
app_scrollable,
container(horizontal_rule(1))
.padding([spacing.space_none, spacing.space_xxl])
.width(Length::Fill),
group_rows
]
.align_items(Alignment::Center);
let window = container(content)
.width(Length::Fill)
.height(Length::Fill)
.max_height(685)
.max_width(1200.0)
.style(theme::Container::Custom(Box::new(|theme| {
container::Appearance {
text_color: Some(theme.cosmic().on_bg_color().into()),
background: Some(Color::from(theme.cosmic().background.base).into()),
border: Border {
radius: theme.cosmic().corner_radii.radius_m.into(),
width: 1.0,
color: theme.cosmic().bg_divider().into(),
},
shadow: Shadow::default(),
icon_color: Some(theme.cosmic().on_bg_color().into()),
}
})))
.center_x();
row![
mouse_area(
container(horizontal_space(Length::Fixed(1.0)))
.width(Length::Fill)
.height(Length::Fill)
)
.on_press(Message::Hide),
container(
column![
mouse_area(
container(vertical_space(Length::Fill))
.width(Length::Fill)
.height(Length::Fixed(16.0))
)
.on_press(Message::Hide),
container(
mouse_area(window)
.on_release(Message::CloseContextMenu)
.on_right_release(Message::CloseContextMenu)
)
.width(Length::Shrink)
.height(Length::Shrink),
mouse_area(
container(vertical_space(Length::Fill))
.width(Length::Fill)
.height(Length::Fill)
)
.on_press(Message::Hide)
]
.height(Length::Fill)
)
.max_width(1200.0)
.width(Length::Shrink)
.height(Length::Fill),
mouse_area(
container(horizontal_space(Length::Fixed(1.0)))
.width(Length::Fill)
.height(Length::Fill)
)
.on_press(Message::Hide),
]
.width(Length::Fill)
.height(Length::Fill)
.into()
}
fn subscription(&self) -> Subscription<Message> {
Subscription::batch(
vec![
desktop_files(0).map(|_| Message::LoadApps),
listen_with(|e, _status| match e {
cosmic::iced::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::Layer(e, _, id),
)) => Some(Message::Layer(e, id)),
cosmic::iced::Event::Keyboard(cosmic::iced::keyboard::Event::KeyReleased {
key: Key::Named(Named::Escape),
modifiers: _mods,
..
}) => Some(Message::Hide),
_ => None,
}),
self.core
.watch_config::<cosmic_app_list_config::AppListConfig>(
cosmic_app_list_config::APP_ID,
)
.map(|config| Message::AppListConfig(config.config)),
]
.into_iter(),
)
}
fn style(&self) -> Option<<Theme as application::StyleSheet>::Style> {
Some(<Theme as application::StyleSheet>::Style::Custom(Box::new(
|theme| Appearance {
background_color: Color::from_rgba(0.0, 0.0, 0.0, 0.0),
text_color: theme.cosmic().on_bg_color().into(),
icon_color: theme.cosmic().on_bg_color().into(),
},
)))
}
fn core_mut(&mut self) -> &mut Core {
&mut self.core
}
fn init(
core: Core,
_flags: Args,
) -> (Self, iced::Command<cosmic::app::Message<Self::Message>>) {
let helper = AppLibraryConfig::helper();
let mut config: AppLibraryConfig = helper
.as_ref()
.map(|helper| {
AppLibraryConfig::get_entry(helper).unwrap_or_else(|(errors, config)| {
for err in errors {
error!("{:?}", err);
}
config
})
})
.unwrap_or_default();
config.groups.sort();
let self_ = Self {
locale: current_locale::current_locale().ok(),
config,
core,
helper,
last_hide: None,
..Default::default()
};
(self_, Command::none())
}
}
fn menu_divider<'a>(spacing: &Spacing) -> Container<'a, Message, cosmic::Theme, cosmic::Renderer> {
container(horizontal_rule(1))
.padding([spacing.space_none, spacing.space_xxs])
.width(Length::Fill)
}
0707010000004E000081A400000000000000000000000166AD2B9000002ACE000000000000000000000000000000000000003200000000cosmic-app-library-1.0.0~alpha.1/src/app_group.rsuse std::sync::Arc;
use std::vec;
use cosmic::cosmic_config::cosmic_config_derive::CosmicConfigEntry;
use cosmic::cosmic_config::{self, CosmicConfigEntry};
use cosmic::desktop::DesktopEntryData;
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use crate::config::APP_ID;
use crate::fl;
static HOME: Lazy<[AppGroup; 1]> = Lazy::new(|| {
[AppGroup {
name: "cosmic-library-home".to_string(),
icon: "user-home-symbolic".to_string(),
filter: FilterType::None,
}]
});
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub enum FilterType {
/// A list of application IDs to include in the group.
AppIds(Vec<String>),
Categories {
categories: Vec<String>,
/// The ID of applications which may not match the categories, but should be included anyway.
exclude: Vec<String>,
/// The ID of applications which should be excluded from the results.
include: Vec<String>,
},
/// No filter is applied.
/// This is intended for use with Home.
None,
}
impl Default for FilterType {
fn default() -> Self {
FilterType::AppIds(Vec::new())
}
}
impl Ord for FilterType {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
match (self, other) {
(FilterType::AppIds(_), FilterType::AppIds(_)) => std::cmp::Ordering::Equal,
(FilterType::None, FilterType::None) => std::cmp::Ordering::Equal,
(FilterType::Categories { .. }, FilterType::Categories { .. }) => {
std::cmp::Ordering::Equal
}
(FilterType::Categories { .. } | FilterType::None, FilterType::AppIds(_)) => {
std::cmp::Ordering::Less
}
(FilterType::AppIds(_), FilterType::Categories { .. } | FilterType::None) => {
std::cmp::Ordering::Greater
}
(FilterType::Categories { .. }, FilterType::None) => std::cmp::Ordering::Greater,
(FilterType::None, FilterType::Categories { .. }) => std::cmp::Ordering::Less,
}
}
}
impl PartialOrd for FilterType {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other))
}
}
// Object holding the state
#[derive(Default, Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct AppGroup {
pub name: String,
pub icon: String,
pub filter: FilterType,
// pub popup: bool,
}
impl PartialOrd for AppGroup {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other))
}
}
impl Ord for AppGroup {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
match (&self.filter, &other.filter) {
(FilterType::AppIds(_), FilterType::AppIds(_)) => {
self.name.to_lowercase().cmp(&other.name.to_lowercase())
}
(a, b) => a.cmp(b),
}
}
}
impl AppGroup {
pub fn filtered(
&self,
input_value: &str,
exceptions: &[Self],
all_entries: &[Arc<DesktopEntryData>],
) -> Vec<Arc<DesktopEntryData>> {
all_entries
.iter()
.filter(|de| {
let mut keep_de = self.matches(de);
keep_de &= if input_value.is_empty() {
!exceptions.iter().any(|x| x.matches(de))
} else {
de.name.to_lowercase().contains(&input_value.to_lowercase())
|| de
.categories
.iter()
.any(|acat| acat.to_lowercase() == input_value.to_lowercase())
};
keep_de
})
.cloned()
.collect()
}
fn matches(&self, entry: &DesktopEntryData) -> bool {
match &self.filter {
FilterType::AppIds(names) => names.iter().any(|id| id == &entry.id),
FilterType::Categories {
categories,
include,
exclude,
..
} => {
categories.iter().any(|cat| {
entry
.categories
.iter()
.any(|acat| acat.to_lowercase() == cat.to_lowercase())
}) && exclude.iter().all(|id| id != &entry.id)
|| include.iter().any(|id| id == &entry.id)
}
FilterType::None => true,
}
}
pub fn name(&self) -> String {
if &self.name == "cosmic-library-home" {
fl!("cosmic-library-home")
} else if &self.name == "cosmic-office" {
fl!("cosmic-office")
} else if &self.name == "cosmic-system" {
fl!("cosmic-system")
} else if &self.name == "cosmic-utilities" {
fl!("cosmic-utilities")
} else {
self.name.clone()
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize, CosmicConfigEntry)]
pub struct AppLibraryConfig {
pub(crate) groups: Vec<AppGroup>,
}
impl AppLibraryConfig {
pub fn version() -> u64 {
1
}
pub fn helper() -> Option<cosmic_config::Config> {
cosmic_config::Config::new(APP_ID, Self::version()).ok()
}
pub fn add(&mut self, name: String) {
self.groups.push(AppGroup {
name,
icon: "folder-symbolic".to_string(),
filter: FilterType::AppIds(Vec::new()),
});
self.groups.sort();
}
pub fn remove(&mut self, i: usize) {
if i - 1 < self.groups.len() {
self.groups.remove(i - 1);
}
}
pub fn set_name(&mut self, i: usize, name: String) {
if i - 1 < self.groups.len() {
self.groups[i - 1].name = name;
}
}
pub fn remove_entry(&mut self, i: usize, id: &str) {
if let Some(group) = self.groups.get_mut(i - 1) {
match &mut group.filter {
FilterType::AppIds(ids) => ids.retain(|conf_id| conf_id != id),
FilterType::Categories {
exclude, include, ..
} => {
include.retain(|conf_id| conf_id != id);
exclude.retain(|conf_id| conf_id != id);
exclude.push(id.to_string());
}
FilterType::None => {}
}
}
if i - 1 < self.groups.len() {
if let FilterType::AppIds(ids) = &mut self.groups[i - 1].filter {
ids.retain(|x| x != id);
}
}
}
pub fn add_entry(&mut self, i: usize, id: &str) {
if i - 1 < self.groups.len() {
if let FilterType::AppIds(ids) = &mut self.groups[i - 1].filter {
if ids.iter().all(|s| s != id) {
ids.push(id.to_string());
}
} else if let FilterType::Categories {
exclude, include, ..
} = &mut self.groups[i - 1].filter
{
include.retain(|conf_id| conf_id != id);
exclude.retain(|conf_id| conf_id != id);
include.push(id.to_string());
}
} else {
// add to filter of all groups, forcing it to the Home group
for group in &mut self.groups {
match &mut group.filter {
FilterType::AppIds(ids) => {
ids.retain(|conf_id| conf_id != id);
}
FilterType::Categories {
categories: _,
exclude,
include,
} => {
include.retain(|conf_id| conf_id != id);
if exclude.iter().all(|conf_id| conf_id != id) {
exclude.push(id.to_string());
}
}
FilterType::None => {}
}
}
}
}
pub fn groups(&self) -> Vec<&AppGroup> {
HOME.iter().chain(&self.groups).collect()
}
pub fn filtered(
&self,
i: usize,
input_value: &str,
entries: &Vec<Arc<DesktopEntryData>>,
) -> Vec<Arc<DesktopEntryData>> {
if i == 0 {
HOME[0].filtered(input_value, &self.groups, entries)
} else {
self._filtered(i - 1, input_value, entries)
}
}
pub fn _filtered(
&self,
i: usize,
input_value: &str,
entries: &Vec<Arc<DesktopEntryData>>,
) -> Vec<Arc<DesktopEntryData>> {
self.groups
.get(i)
.map(|g| g.filtered(input_value, &Vec::new(), entries))
.unwrap_or_default()
}
}
impl Default for AppLibraryConfig {
fn default() -> Self {
AppLibraryConfig {
groups: vec![
AppGroup {
name: "cosmic-office".to_string(),
icon: "folder-symbolic".to_string(),
filter: FilterType::Categories {
categories: vec!["Office".to_string()],
include: vec![
"org.gnome.Totem".to_string(),
"org.gnome.eog".to_string(),
"simple-scan".to_string(),
"thunderbird".to_string(),
],
exclude: Vec::new(),
},
},
AppGroup {
name: "cosmic-system".to_string(),
icon: "folder-symbolic".to_string(),
filter: FilterType::Categories {
categories: vec!["System".to_string()],
include: vec![
"gnome-language-selector".to_string(),
"im-config".to_string(),
"org.freedesktop.IBus.Setup".to_string(),
"system76-driver".to_string(),
],
exclude: vec![
"com.system76.CosmicStore".to_string(),
"com.system76.CosmicTerm".to_string(),
],
},
},
AppGroup {
name: "cosmic-utilities".to_string(),
icon: "folder-symbolic".to_string(),
filter: FilterType::Categories {
categories: vec!["Utility".to_string()],
include: vec!["nm-connection-editor".to_string()],
exclude: vec![
"com.system76.CosmicEdit".to_string(),
"com.system76.CosmicFiles".to_string(),
],
},
},
],
}
}
}
0707010000004F000081A400000000000000000000000166AD2B900000005D000000000000000000000000000000000000002F00000000cosmic-app-library-1.0.0~alpha.1/src/config.rspub const APP_ID: &str = "com.system76.CosmicAppLibrary";
pub const VERSION: &str = "0.1.0";
07070100000050000081A400000000000000000000000166AD2B9000000715000000000000000000000000000000000000003300000000cosmic-app-library-1.0.0~alpha.1/src/icon_cache.rs// SPDX-License-Identifier: GPL-3.0-only
use cosmic::widget::icon;
use std::{
collections::HashMap,
sync::{Mutex, OnceLock},
};
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct IconCacheKey {
name: &'static str,
size: u16,
}
pub struct IconCache {
cache: HashMap<IconCacheKey, icon::Handle>,
}
impl IconCache {
pub fn new() -> Self {
let mut cache = HashMap::new();
macro_rules! bundle {
($name:expr, $size:expr) => {
let data: &'static [u8] = include_bytes!(concat!("../data/icons/", $name, ".svg"));
cache.insert(
IconCacheKey {
name: $name,
size: $size,
},
icon::from_svg_bytes(data).symbolic($name.ends_with("-symbolic")),
);
};
}
bundle!("app-source-flatpak", 16);
bundle!("app-source-local-symbolic", 16);
bundle!("app-source-snap", 16);
bundle!("app-source-nix", 16);
bundle!("app-source-system-symbolic", 16);
Self { cache }
}
pub fn get(&mut self, name: &'static str, size: u16) -> icon::Handle {
self.cache
.entry(IconCacheKey { name, size })
.or_insert_with(|| {
icon::from_name(name)
.size(size)
.symbolic(name.ends_with("-symbolic"))
.handle()
})
.clone()
}
}
static ICON_CACHE: OnceLock<Mutex<IconCache>> = OnceLock::new();
pub fn icon_cache_handle(name: &'static str, size: u16) -> icon::Handle {
let mut icon_cache = ICON_CACHE
.get_or_init(|| Mutex::new(IconCache::new()))
.lock()
.unwrap();
icon_cache.get(name, size)
}
07070100000051000081A400000000000000000000000166AD2B900000050D000000000000000000000000000000000000003100000000cosmic-app-library-1.0.0~alpha.1/src/localize.rsuse i18n_embed::{
fluent::{fluent_language_loader, FluentLanguageLoader},
DefaultLocalizer, LanguageLoader, Localizer,
};
use once_cell::sync::Lazy;
use rust_embed::RustEmbed;
#[derive(RustEmbed)]
#[folder = "i18n/"]
struct Localizations;
pub static LANGUAGE_LOADER: Lazy<FluentLanguageLoader> = Lazy::new(|| {
let loader: FluentLanguageLoader = fluent_language_loader!();
loader
.load_fallback_language(&Localizations)
.expect("Error while loading fallback language");
loader
});
#[macro_export]
macro_rules! fl {
($message_id:literal) => {{
i18n_embed_fl::fl!($crate::localize::LANGUAGE_LOADER, $message_id)
}};
($message_id:literal, $($args:expr),*) => {{
i18n_embed_fl::fl!($crate::localize::LANGUAGE_LOADER, $message_id, $($args), *)
}};
}
// Get the `Localizer` to be used for localizing this library.
pub fn localizer() -> Box<dyn Localizer> {
Box::from(DefaultLocalizer::new(&*LANGUAGE_LOADER, &Localizations))
}
pub fn localize() {
let localizer = localizer();
let requested_languages = i18n_embed::DesktopLanguageRequester::requested_languages();
if let Err(error) = localizer.select(&requested_languages) {
eprintln!("Error while loading language for App List {}", error);
}
}
07070100000052000081A400000000000000000000000166AD2B9000000203000000000000000000000000000000000000002D00000000cosmic-app-library-1.0.0~alpha.1/src/main.rs#[rustfmt::skip]
mod config;
mod app;
mod app_group;
mod icon_cache;
mod localize;
mod subscriptions;
mod widgets;
use config::APP_ID;
use log::info;
use localize::localize;
use crate::config::VERSION;
// TODO watch the desktop dirs for changes and update the list of apps on change
fn main() -> cosmic::iced::Result {
// Initialize logger
pretty_env_logger::init();
info!("Cosmic App Library ({})", APP_ID);
info!("Version: {}", VERSION);
// Prepare i18n
localize();
app::run()
}
07070100000053000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000003300000000cosmic-app-library-1.0.0~alpha.1/src/subscriptions07070100000054000081A400000000000000000000000166AD2B9000000B10000000000000000000000000000000000000004400000000cosmic-app-library-1.0.0~alpha.1/src/subscriptions/desktop_files.rsuse cosmic::iced::subscription;
use notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher};
use std::fmt::Debug;
use std::hash::Hash;
use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver};
#[derive(Debug)]
pub enum State {
Ready,
Waiting {
watcher: RecommendedWatcher,
rx: UnboundedReceiver<notify::Result<Event>>,
},
Finished,
}
#[derive(Debug, Clone, Copy)]
pub enum DesktopFileEvent {
Changed,
}
pub fn desktop_files<I: 'static + Hash + Copy + Send + Sync + Debug>(
id: I,
) -> cosmic::iced::Subscription<(I, DesktopFileEvent)> {
subscription::unfold(id, State::Ready, move |mut state| async move {
loop {
let (event, new_state) = start_watching(id, state).await;
state = new_state;
if let Some(event) = event {
return (event, state);
}
}
})
}
async fn start_watching<I: Copy>(id: I, state: State) -> (Option<(I, DesktopFileEvent)>, State) {
match state {
State::Ready => {
let paths = freedesktop_desktop_entry::default_paths();
// TODO log errors
if let Ok((mut watcher, rx)) = async_watcher() {
for path in paths {
let _ = watcher.watch(path.as_ref(), RecursiveMode::Recursive);
}
(
Some((id, DesktopFileEvent::Changed)),
State::Waiting { watcher, rx },
)
} else {
(None, State::Finished)
}
}
State::Waiting { watcher, rx } => {
if let Some(rx) = async_watch(rx).await {
(
Some((id, DesktopFileEvent::Changed)),
State::Waiting { watcher, rx },
)
} else {
(None, State::Finished)
}
}
State::Finished => cosmic::iced::futures::future::pending().await,
}
}
fn async_watcher() -> notify::Result<(RecommendedWatcher, UnboundedReceiver<notify::Result<Event>>)>
{
let (tx, rx) = unbounded_channel();
// Automatically select the best implementation for your platform.
// You can also access each implementation directly e.g. INotifyWatcher.
let watcher = RecommendedWatcher::new(
move |res| {
futures::executor::block_on(async {
let _ = tx.send(res);
})
},
Config::default(),
)?;
Ok((watcher, rx))
}
async fn async_watch(
mut rx: UnboundedReceiver<notify::Result<Event>>,
) -> Option<UnboundedReceiver<notify::Result<Event>>> {
// TODO log errors
if let Some(res) = rx.recv().await {
match res {
Ok(_) => return Some(rx),
Err(_) => return None,
}
}
None
}
07070100000055000081A400000000000000000000000166AD2B9000000017000000000000000000000000000000000000003A00000000cosmic-app-library-1.0.0~alpha.1/src/subscriptions/mod.rspub mod desktop_files;
07070100000056000041ED00000000000000000000000266AD2B9000000000000000000000000000000000000000000000002D00000000cosmic-app-library-1.0.0~alpha.1/src/widgets07070100000057000081A400000000000000000000000166AD2B900000472F000000000000000000000000000000000000003C00000000cosmic-app-library-1.0.0~alpha.1/src/widgets/application.rs//! A widget that can be dragged and dropped.
use std::cell::RefCell;
use std::path::PathBuf;
use std::{iter, mem};
use cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction;
use cosmic::cosmic_theme::Spacing;
use cosmic::iced::alignment::Vertical;
use cosmic::iced::wayland::actions::data_device::{DataFromMimeType, DndIcon};
use cosmic::iced::{Size, Vector};
use cosmic::iced_core::alignment::Horizontal;
use cosmic::iced_core::event::{wayland, PlatformSpecific};
use cosmic::iced_runtime::command::platform_specific;
use cosmic::iced_core::{
event, layout, mouse, overlay, renderer, touch, Alignment, Clipboard, Event, Length, Point,
Rectangle, Shell, Widget,
};
use cosmic::desktop::DesktopEntryData;
use cosmic::iced_core::widget::{operation::OperationOutputWrapper, tree, Operation, Tree};
use cosmic::widget::container;
use cosmic::Element;
use cosmic::{
iced::widget::{column, text},
theme,
widget::button,
};
use crate::app::{AppSource, DND_ICON_ID, WINDOW_ID};
pub const MIME_TYPE: &str = "text/uri-list";
const DRAG_THRESHOLD: f32 = 25.0;
/// A widget that can be dragged and dropped.
#[allow(missing_debug_implementations)]
pub struct ApplicationButton<'a, Message> {
path: PathBuf,
content: Element<'a, Message>,
on_right_release: Box<dyn Fn(Rectangle) -> Message + 'a>,
on_create_dnd_source: Option<Message>,
on_finish: Option<Box<dyn Fn(bool) -> Message + 'a>>,
on_cancel: Option<Message>,
on_dnd_command_produced: Option<
Box<
dyn Fn(
Box<
dyn Send
+ Sync
+ Fn() -> platform_specific::wayland::data_device::ActionInner,
>,
) -> Message
+ 'a,
>,
>,
// Optional icon, and text
source_icon: Option<Element<'a, Message>>,
}
impl<'a, Message: Clone + 'static> ApplicationButton<'a, Message> {
/// Creates a new [`ApplicationButton`].
#[must_use]
pub fn new(
DesktopEntryData {
name,
icon: image,
path,
..
}: &'a DesktopEntryData,
on_right_release: impl Fn(Rectangle) -> Message + 'a,
on_pressed: Option<Message>,
spacing: &Spacing,
source: Option<&AppSource>,
selected: bool,
) -> Self {
let (source_icon, source_suffix_len) = match source {
Some(source) => {
let source_name = source.to_string();
(
source.as_icon().map(|i| {
Element::from(
container(i)
.style(cosmic::theme::Container::Card)
.width(Length::Fixed(24.0))
.height(Length::Fixed(24.0))
.align_x(Horizontal::Center)
.align_y(Vertical::Center),
)
}),
source_name.len().saturating_add(3), // 3 for the parentheses
)
}
None => (None, 0),
};
let max_name_len = 27 - source_suffix_len;
let name = if name.len() > max_name_len {
if let Some(source) = source {
format!("{name:.17}... ({source})")
} else {
format!("{name:.24}...")
}
} else {
if let Some(source) = source {
format!("{name} ({source})")
} else {
name.to_string()
}
};
let content = button(
column![
image
.as_cosmic_icon()
.width(Length::Fixed(72.0))
.height(Length::Fixed(72.0)),
text(name)
.horizontal_alignment(Horizontal::Center)
.size(14)
.height(Length::Fixed(40.0))
]
.width(Length::Fixed(120.0))
.height(Length::Fixed(120.0))
.spacing(spacing.space_xxs)
.align_items(Alignment::Center)
.width(Length::Fill),
)
.selected(selected)
.width(Length::FillPortion(1))
.style(theme::Button::IconVertical)
.padding(spacing.space_s)
.on_press_maybe(on_pressed.clone())
.into();
Self {
path: path.clone().unwrap(),
content,
on_right_release: Box::new(on_right_release),
on_create_dnd_source: None,
on_dnd_command_produced: None,
on_finish: None,
on_cancel: None,
source_icon,
}
}
pub fn on_dnd_command_produced(
self,
message: impl Fn(
Box<dyn Send + Sync + Fn() -> platform_specific::wayland::data_device::ActionInner>,
) -> Message
+ 'a,
) -> Self {
Self {
on_dnd_command_produced: Some(Box::new(message)),
..self
}
}
pub fn on_finish(self, message: impl Fn(bool) -> Message + 'a) -> Self {
Self {
on_finish: Some(Box::new(message)),
..self
}
}
pub fn on_cancel(self, message: Message) -> Self {
Self {
on_cancel: Some(message),
..self
}
}
pub fn on_create_dnd_source(self, message: Message) -> Self {
Self {
on_create_dnd_source: Some(message),
..self
}
}
}
impl<'a, Message> From<ApplicationButton<'a, Message>> for Element<'a, Message>
where
Message: Clone + 'a,
{
fn from(dnd_source: ApplicationButton<'a, Message>) -> Element<'a, Message> {
Element::new(dnd_source)
}
}
impl<'a, Message> Widget<Message, cosmic::Theme, cosmic::Renderer>
for ApplicationButton<'a, Message>
where
Message: Clone,
{
fn children(&self) -> Vec<Tree> {
iter::once(Tree::new(&self.content))
.chain(self.source_icon.as_ref().map(|i| Tree::new(i)))
.collect()
}
fn diff(&mut self, tree: &mut Tree) {
let mut children: Vec<_> = iter::once(&mut self.content)
.chain(self.source_icon.as_mut())
.collect();
tree.diff_children(children.as_mut_slice());
}
fn size(&self) -> cosmic::iced_core::Size<Length> {
self.content.as_widget().size()
}
fn layout(
&self,
tree: &mut Tree,
renderer: &cosmic::Renderer,
limits: &layout::Limits,
) -> layout::Node {
let size = self.size();
let tree = RefCell::new(tree);
layout(
renderer,
limits,
size.width,
size.height,
u32::MAX,
u32::MAX,
|renderer, limits| {
let content_state = &mut tree.borrow_mut().children[0];
self.content
.as_widget()
.layout(content_state, renderer, limits)
},
self.source_icon.as_ref(),
|renderer, limits, icon| {
let icon_state = &mut tree.borrow_mut().children[1];
icon.as_widget().layout(icon_state, renderer, limits)
},
)
}
fn draw(
&self,
tree: &Tree,
renderer: &mut cosmic::Renderer,
theme: &cosmic::theme::Theme,
renderer_style: &renderer::Style,
layout: layout::Layout<'_>,
cursor_position: mouse::Cursor,
viewport: &Rectangle,
) {
self.content.as_widget().draw(
&tree.children[0],
renderer,
theme,
renderer_style,
layout.children().next().unwrap(),
cursor_position,
viewport,
);
if let Some(icon) = self.source_icon.as_ref() {
icon.as_widget().draw(
&tree.children[1],
renderer,
theme,
renderer_style,
layout.children().nth(1).unwrap(),
cursor_position,
viewport,
);
}
}
fn operate(
&self,
tree: &mut Tree,
layout: layout::Layout<'_>,
renderer: &cosmic::Renderer,
operation: &mut dyn Operation<OperationOutputWrapper<Message>>,
) {
operation.container(None, layout.bounds(), &mut |operation| {
self.content.as_widget().operate(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,
operation,
);
});
}
fn overlay<'b>(
&'b mut self,
tree: &'b mut Tree,
layout: layout::Layout<'_>,
renderer: &cosmic::Renderer,
) -> Option<overlay::Element<'b, Message, cosmic::Theme, cosmic::Renderer>> {
self.content.as_widget_mut().overlay(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,
)
}
fn tag(&self) -> tree::Tag {
tree::Tag::of::<State>()
}
fn state(&self) -> tree::State {
tree::State::new(State::default())
}
fn on_event(
&mut self,
tree: &mut Tree,
event: Event,
layout: layout::Layout<'_>,
cursor_position: mouse::Cursor,
renderer: &cosmic::Renderer,
clipboard: &mut dyn Clipboard,
shell: &mut Shell<'_, Message>,
viewport: &Rectangle,
) -> event::Status {
let mut ret = self.content.as_widget_mut().on_event(
&mut tree.children[0],
event.clone(),
layout.children().next().unwrap(),
cursor_position,
renderer,
clipboard,
shell,
viewport,
);
let state = tree.state.downcast_mut::<State>();
if cursor_position.is_over(layout.bounds()) {
match &event {
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Right)) => {
state.right_press = true;
return event::Status::Captured;
}
Event::Mouse(mouse::Event::ButtonReleased(mouse::Button::Right)) => {
if state.right_press {
shell.publish(self.on_right_release.as_ref()(layout.bounds()));
state.right_press = false;
return event::Status::Captured;
}
}
_ => {}
}
}
if let (
Some(on_dnd_command_produced),
Some(on_create_dnd_source),
Some(on_cancel),
Some(on_finish),
) = (
self.on_dnd_command_produced.as_ref(),
self.on_create_dnd_source.as_ref(),
self.on_cancel.as_ref(),
self.on_finish.as_ref(),
) {
state.dragging_state = match mem::take(&mut state.dragging_state) {
DraggingState::None => {
// if no dragging state, listen for press events
match &event {
event::Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left))
| event::Event::Touch(touch::Event::FingerPressed { .. })
if cursor_position.is_over(layout.bounds()) =>
{
ret = event::Status::Captured;
DraggingState::Pressed(cursor_position.position().unwrap_or_default())
}
_ => DraggingState::None,
}
}
DraggingState::Dragging(applet, copy) => match &event {
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DataSource(wayland::DataSourceEvent::DndFinished),
)) => {
ret = event::Status::Captured;
shell.publish(on_finish.as_ref()(copy));
DraggingState::None
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DataSource(wayland::DataSourceEvent::Cancelled),
)) => {
ret = event::Status::Captured;
shell.publish(on_cancel.clone());
DraggingState::None
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DataSource(wayland::DataSourceEvent::DndActionAccepted(a)),
)) => {
ret = event::Status::Captured;
DraggingState::Dragging(applet, a.contains(DndAction::Copy))
}
_ => DraggingState::Dragging(applet, copy),
},
DraggingState::Pressed(start) => {
// if dragging state is pressed, listen for motion events or release events
match &event {
event::Event::Mouse(mouse::Event::CursorMoved { .. })
| event::Event::Touch(touch::Event::FingerMoved { .. }) => {
let pos = cursor_position.position().unwrap_or_default();
let d_y = pos.y - start.y;
let d_x = pos.x - start.x;
let distance_squared = d_y * d_y + d_x * d_x;
if distance_squared > DRAG_THRESHOLD {
state.dragging_state =
DraggingState::Dragging(self.path.clone(), false);
// TODO emit a dnd command
shell.publish(on_create_dnd_source.clone());
let p = self.path.to_path_buf();
shell.publish((on_dnd_command_produced)(Box::new(move || {
platform_specific::wayland::data_device::ActionInner::StartDnd {
mime_types: vec![MIME_TYPE.to_string()],
actions: DndAction::Copy.union(DndAction::Move),
origin_id: WINDOW_ID.clone(),
icon_id: Some((
DndIcon::Custom(DND_ICON_ID.clone()),
cosmic::iced::Vector::default(),
)),
data: Box::new(AppletString(p.clone())),
}
})));
ret = event::Status::Captured;
DraggingState::Dragging(self.path.clone(), false)
} else {
DraggingState::Pressed(start)
}
}
_ => DraggingState::Pressed(start),
}
}
};
}
ret
}
fn mouse_interaction(
&self,
tree: &Tree,
layout: layout::Layout<'_>,
cursor_position: mouse::Cursor,
viewport: &Rectangle,
renderer: &cosmic::Renderer,
) -> mouse::Interaction {
self.content.as_widget().mouse_interaction(
&tree.children[0],
layout.children().next().unwrap(),
cursor_position,
viewport,
renderer,
)
}
}
/// Computes the layout of a [`ApplicationButton`].
pub fn layout<'a, Renderer, M>(
renderer: &Renderer,
limits: &layout::Limits,
width: Length,
height: Length,
max_height: u32,
max_width: u32,
layout_content: impl FnOnce(&Renderer, &layout::Limits) -> layout::Node,
icon: Option<&Element<'a, M>>,
layout_icon: impl FnOnce(&Renderer, &layout::Limits, &Element<'a, M>) -> layout::Node,
) -> layout::Node {
let limits = limits
.loose()
.max_height(max_height as f32)
.max_width(max_width as f32)
.width(width)
.height(height);
let content = layout_content(renderer, &limits);
let size = limits.resolve(width, height, content.size());
let mut children = vec![content];
let app_icon_node = &children[0].children()[0].children()[0];
if let Some(icon) = icon {
let app_icon_size = app_icon_node.size();
let mut icon_node = layout_icon(
renderer,
&layout::Limits::new(Size::new(24., 24.), Size::new(24., 24.)),
icon,
);
icon_node = icon_node.move_to(app_icon_node.bounds().position());
// translate to the bottom right corner
icon_node = icon_node.translate(Vector::new(app_icon_size.width, app_icon_size.height));
children.push(icon_node);
}
layout::Node::with_children(size, children)
}
/// A string which can be sent to the clipboard or drag-and-dropped.
#[derive(Debug, Clone)]
pub struct AppletString(PathBuf);
impl DataFromMimeType for AppletString {
fn from_mime_type(&self, mime_type: &str) -> Option<Vec<u8>> {
if mime_type == MIME_TYPE {
let data = Some(
url::Url::from_file_path(self.0.clone())
.ok()?
.to_string()
.as_bytes()
.to_vec(),
);
data
} else {
None
}
}
}
#[derive(Debug, Default, Clone)]
pub enum DraggingState {
#[default]
/// No ongoing drag or press
None,
/// A draggable item was being pressed at the recorded point
Pressed(Point),
/// An item is being dragged
Dragging(PathBuf, bool),
}
#[derive(Debug, Default, Clone)]
pub struct State {
dragging_state: DraggingState,
right_press: bool,
}
07070100000058000081A400000000000000000000000166AD2B9000004C83000000000000000000000000000000000000003600000000cosmic-app-library-1.0.0~alpha.1/src/widgets/group.rs//! A widget that can be dragged and dropped.
use std::mem;
use std::str::FromStr;
use cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction;
use cosmic::cosmic_theme::Spacing;
use cosmic::iced_core::alignment::Horizontal;
use cosmic::iced_core::event::{wayland, PlatformSpecific};
use cosmic::iced_runtime::command::platform_specific;
use cosmic::iced_widget::graphics::image::image_rs::EncodableLayout;
use cosmic::iced_core::widget::{operation::OperationOutputWrapper, tree, Operation, Tree};
use cosmic::iced_core::{
event, layout, mouse, overlay, renderer, Alignment, Clipboard, Element, Event, Length, Padding,
Point, Rectangle, Shell, Widget,
};
use cosmic::desktop::{load_desktop_file, DesktopEntryData};
use cosmic::widget::container;
use cosmic::widget::icon::from_name;
use cosmic::{
iced::widget::{column, text},
theme,
widget::{button, icon},
};
use super::application::MIME_TYPE;
#[allow(missing_debug_implementations)]
pub struct GroupButton<'a, Message> {
content: Element<'a, Message, cosmic::Theme, cosmic::Renderer>,
on_offer: Option<Message>,
on_finish: Option<Box<dyn Fn(DesktopEntryData) -> Message + 'a>>,
on_leave: Option<Message>,
on_dnd_command_produced: Option<
Box<
dyn Fn(
Box<
dyn Send
+ Sync
+ Fn() -> platform_specific::wayland::data_device::ActionInner,
>,
) -> Message
+ 'a,
>,
>,
}
impl<'a, Message: Clone + 'static> GroupButton<'a, Message> {
/// Creates a new [`GroupButton`].
#[must_use]
pub fn new(
name: String,
icon_name: &'a str,
on_pressed: Option<Message>,
style: theme::Button,
icon_size: f32,
padding: impl Into<Padding>,
width: f32,
height: f32,
spacing: &Spacing,
) -> Self {
let content = button(
column![
container(
icon(from_name(icon_name).into())
.width(Length::Fixed(icon_size))
.height(Length::Fixed(icon_size))
)
.padding(spacing.space_xxs),
text(name).horizontal_alignment(Horizontal::Center).size(14)
]
.align_items(Alignment::Center)
.width(Length::Fill),
)
.height(Length::Fixed(height))
.width(Length::Fixed(width))
.style(style)
.padding(padding);
let content = if let Some(on_pressed) = on_pressed {
content.on_press(on_pressed)
} else {
content
}
.into();
Self {
content,
on_offer: None,
on_dnd_command_produced: None,
on_finish: None,
on_leave: None,
}
}
pub fn on_dnd_command_produced(
self,
message: impl Fn(
Box<dyn Send + Sync + Fn() -> platform_specific::wayland::data_device::ActionInner>,
) -> Message
+ 'a,
) -> Self {
Self {
on_dnd_command_produced: Some(Box::new(message)),
..self
}
}
pub fn on_finish(self, message: impl Fn(DesktopEntryData) -> Message + 'a) -> Self {
Self {
on_finish: Some(Box::new(message)),
..self
}
}
pub fn on_cancel(self, message: Message) -> Self {
Self {
on_leave: Some(message),
..self
}
}
pub fn on_offer(self, message: Message) -> Self {
Self {
on_offer: Some(message),
..self
}
}
}
impl<'a, Message> From<GroupButton<'a, Message>>
for Element<'a, Message, cosmic::Theme, cosmic::Renderer>
where
Message: Clone + 'a,
{
fn from(
dnd_source: GroupButton<'a, Message>,
) -> Element<'a, Message, cosmic::Theme, cosmic::Renderer> {
Element::new(dnd_source)
}
}
impl<'a, Message> Widget<Message, cosmic::Theme, cosmic::Renderer> for GroupButton<'a, Message>
where
Message: Clone,
{
fn children(&self) -> Vec<Tree> {
vec![Tree::new(&self.content)]
}
fn diff(&mut self, tree: &mut Tree) {
tree.diff_children(std::slice::from_mut(&mut self.content));
}
fn size(&self) -> cosmic::iced_core::Size<Length> {
self.content.as_widget().size()
}
fn layout(
&self,
tree: &mut Tree,
renderer: &cosmic::Renderer,
limits: &layout::Limits,
) -> layout::Node {
let size = self.size();
layout(
renderer,
limits,
size.width,
size.height,
u32::MAX,
u32::MAX,
|renderer, limits| {
self.content
.as_widget()
.layout(&mut tree.children[0], renderer, limits)
},
)
}
fn draw(
&self,
tree: &Tree,
renderer: &mut cosmic::Renderer,
theme: &cosmic::theme::Theme,
renderer_style: &renderer::Style,
layout: layout::Layout<'_>,
cursor_position: mouse::Cursor,
viewport: &Rectangle,
) {
self.content.as_widget().draw(
&tree.children[0],
renderer,
theme,
renderer_style,
layout.children().next().unwrap(),
cursor_position,
viewport,
);
}
fn operate(
&self,
tree: &mut Tree,
layout: layout::Layout<'_>,
renderer: &cosmic::Renderer,
operation: &mut dyn Operation<OperationOutputWrapper<Message>>,
) {
operation.container(None, layout.bounds(), &mut |operation| {
self.content.as_widget().operate(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,
operation,
);
});
}
fn overlay<'b>(
&'b mut self,
tree: &'b mut Tree,
layout: layout::Layout<'_>,
renderer: &cosmic::Renderer,
) -> Option<overlay::Element<'b, Message, cosmic::Theme, cosmic::Renderer>> {
self.content.as_widget_mut().overlay(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,
)
}
fn tag(&self) -> tree::Tag {
tree::Tag::of::<State>()
}
fn state(&self) -> tree::State {
tree::State::new(State::default())
}
fn on_event(
&mut self,
tree: &mut Tree,
event: Event,
layout: layout::Layout<'_>,
cursor_position: mouse::Cursor,
renderer: &cosmic::Renderer,
clipboard: &mut dyn Clipboard,
shell: &mut Shell<'_, Message>,
viewport: &Rectangle,
) -> event::Status {
let ret = self.content.as_widget_mut().on_event(
&mut tree.children[0],
event.clone(),
layout.children().next().unwrap(),
cursor_position,
renderer,
clipboard,
shell,
viewport,
);
let state = tree.state.downcast_mut::<State>();
if let (Some(on_dnd_command_produced), Some(on_offer), Some(on_cancel), Some(on_finish)) = (
self.on_dnd_command_produced.as_ref(),
self.on_offer.as_ref(),
self.on_leave.as_ref(),
self.on_finish.as_ref(),
) {
state.dnd_offer = match mem::take(&mut state.dnd_offer) {
DndOfferState::None => match &event {
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::SourceActions(actions)),
)) => DndOfferState::OutsideWidget(Vec::new(), *actions),
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::Enter {
x,
y,
mime_types,
}),
)) => {
if mime_types.iter().any(|m| m.as_str() == MIME_TYPE) {
let point = Point::new(*x as f32, *y as f32);
if layout.bounds().contains(point) {
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || {
platform_specific::wayland::data_device::ActionInner::SetActions {
preferred: DndAction::Move,
accepted: DndAction::Move,
}
},
)));
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || {
platform_specific::wayland::data_device::ActionInner::Accept(
Some(MIME_TYPE.to_string()),
)
},
)));
shell.publish(on_offer.clone());
DndOfferState::HandlingOffer(mime_types.clone(), DndAction::empty())
} else {
DndOfferState::OutsideWidget(mime_types.clone(), DndAction::empty())
}
} else {
DndOfferState::None
}
}
_ => DndOfferState::None,
},
DndOfferState::OutsideWidget(mime_types, action) => match &event {
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::SourceActions(actions)),
)) => DndOfferState::OutsideWidget(mime_types, *actions),
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::Motion { x, y }),
)) => {
let point = Point::new(*x as f32, *y as f32);
if layout.bounds().contains(point) {
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || {
platform_specific::wayland::data_device::ActionInner::SetActions {
preferred: DndAction::Move,
accepted: DndAction::Move,
}
},
)));
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || {
platform_specific::wayland::data_device::ActionInner::Accept(
Some(MIME_TYPE.to_string()),
)
},
)));
shell.publish(on_offer.clone());
// TODO maybe keep track of data and request here if we don't have it
// also maybe just refactor DND Targets to allow easier handling...
DndOfferState::HandlingOffer(mime_types, DndAction::empty())
} else {
DndOfferState::OutsideWidget(mime_types, DndAction::empty())
}
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(
wayland::DndOfferEvent::DropPerformed | wayland::DndOfferEvent::Leave,
),
)) => DndOfferState::None,
_ => DndOfferState::OutsideWidget(mime_types, action),
},
DndOfferState::HandlingOffer(mime_types, action) => match &event {
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::Motion { x, y }),
)) => {
let point = Point::new(*x as f32, *y as f32);
if layout.bounds().contains(point) {
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || {
platform_specific::wayland::data_device::ActionInner::SetActions {
preferred: DndAction::Move,
accepted: DndAction::Move,
}
},
)));
DndOfferState::HandlingOffer(mime_types, DndAction::empty())
} else {
shell.publish(on_cancel.clone());
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || {
platform_specific::wayland::data_device::ActionInner::Accept(
None,
)
},
)));
DndOfferState::OutsideWidget(mime_types, DndAction::empty())
}
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::Leave),
)) => {
shell.publish(on_cancel.clone());
DndOfferState::None
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::SourceActions(actions)),
)) => {
shell.publish((on_dnd_command_produced.as_ref())(Box::new(move || {
platform_specific::wayland::data_device::ActionInner::SetActions {
preferred: DndAction::Move,
accepted: DndAction::Move,
}
})));
DndOfferState::HandlingOffer(mime_types, *actions)
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::DropPerformed),
)) => {
shell.publish((on_dnd_command_produced.as_ref())(Box::new(move || {
platform_specific::wayland::data_device::ActionInner::SetActions {
preferred: DndAction::Move,
accepted: DndAction::Move,
}
})));
shell.publish((on_dnd_command_produced.as_ref())(Box::new(move || {
platform_specific::wayland::data_device::ActionInner::Accept(Some(
MIME_TYPE.to_string(),
))
})));
shell.publish((on_dnd_command_produced.as_ref())(Box::new(move || {
platform_specific::wayland::data_device::ActionInner::RequestDndData(
MIME_TYPE.to_string(),
)
})));
DndOfferState::Dropped
}
_ => DndOfferState::HandlingOffer(mime_types, action),
},
DndOfferState::Dropped => {
match &event {
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::DndData {
data,
mime_type,
}),
)) => {
if mime_type.as_str() == MIME_TYPE {
if let Some(data) = std::str::from_utf8(data.as_bytes())
.ok()
.and_then(|s| url::Url::from_str(s).ok())
.and_then(|url| url.to_file_path().ok())
.and_then(|p| load_desktop_file(None, p))
{
shell.publish(on_finish(data));
shell.publish((on_dnd_command_produced.as_ref())(Box::new(
move || platform_specific::wayland::data_device::ActionInner::DndFinished,
)));
}
}
DndOfferState::None
}
event::Event::PlatformSpecific(PlatformSpecific::Wayland(
wayland::Event::DndOffer(wayland::DndOfferEvent::Leave),
)) => {
// already applied the offer, so we can just finish
if let Some(on_cancel) = self.on_leave.clone() {
shell.publish(on_cancel);
}
DndOfferState::None
}
_ => DndOfferState::Dropped,
}
}
};
}
ret
}
fn mouse_interaction(
&self,
tree: &Tree,
layout: layout::Layout<'_>,
cursor_position: mouse::Cursor,
viewport: &Rectangle,
renderer: &cosmic::Renderer,
) -> mouse::Interaction {
self.content.as_widget().mouse_interaction(
&tree.children[0],
layout.children().next().unwrap(),
cursor_position,
viewport,
renderer,
)
}
}
/// Computes the layout of a [`ApplicationButton`].
pub fn layout<Renderer>(
renderer: &Renderer,
limits: &layout::Limits,
width: Length,
height: Length,
max_height: u32,
max_width: u32,
layout_content: impl FnOnce(&Renderer, &layout::Limits) -> layout::Node,
) -> layout::Node {
let limits = limits
.loose()
.max_height(max_height as f32)
.max_width(max_width as f32)
.width(width)
.height(height);
let content = layout_content(renderer, &limits);
let size = limits.resolve(width, height, content.size());
layout::Node::with_children(size, vec![content])
}
#[derive(Debug, Clone, Default)]
pub(crate) enum DndOfferState {
#[default]
None,
OutsideWidget(Vec<String>, DndAction),
HandlingOffer(Vec<String>, DndAction),
Dropped,
}
#[derive(Debug, Default, Clone)]
pub struct State {
dnd_offer: DndOfferState,
}
07070100000059000081A400000000000000000000000166AD2B9000000024000000000000000000000000000000000000003400000000cosmic-app-library-1.0.0~alpha.1/src/widgets/mod.rspub mod application;
pub mod group;
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!686 blocks