├── images
└── demo.gif
├── src
├── lib.rs
├── observer.rs
├── main.rs
├── observer
│ ├── notification.rs
│ ├── input_source.rs
│ ├── window.rs
│ └── workspace.rs
├── error.rs
├── service.rs
├── util.rs
└── cmd.rs
├── .cspell.json
├── rustfmt.toml
├── .github
├── workflows
│ ├── test.yml
│ └── publish.yml
└── dependabot.yml
├── assets
├── Info.plist
└── launchd.plist
├── .gitignore
├── Cargo.toml
├── README.md
├── .goreleaser.yml
├── LICENSE.txt
└── Cargo.lock
/images/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rami3l/clavy/HEAD/images/demo.gif
--------------------------------------------------------------------------------
/src/lib.rs:
--------------------------------------------------------------------------------
1 | pub mod error;
2 | pub mod observer;
3 | pub mod service;
4 | pub mod util;
5 |
--------------------------------------------------------------------------------
/src/observer.rs:
--------------------------------------------------------------------------------
1 | pub mod input_source;
2 | pub mod notification;
3 | pub mod window;
4 | pub mod workspace;
5 |
--------------------------------------------------------------------------------
/.cspell.json:
--------------------------------------------------------------------------------
1 | {
2 | "words": [
3 | "AXUI",
4 | "clavy",
5 | "libc",
6 | "notif",
7 | "objc",
8 | "refcon",
9 | "runloop",
10 | "subcmd"
11 | ]
12 | }
13 |
--------------------------------------------------------------------------------
/rustfmt.toml:
--------------------------------------------------------------------------------
1 | edition = "2024"
2 | unstable_features = true
3 |
4 | format_macro_matchers = true
5 | format_macro_bodies = true
6 | group_imports = "StdExternalCrate"
7 | imports_granularity = "Crate"
8 | reorder_impl_items = true
9 | wrap_comments = true
10 |
11 | use_field_init_shorthand = true
12 | trailing_semicolon = true
13 |
--------------------------------------------------------------------------------
/src/main.rs:
--------------------------------------------------------------------------------
1 | use clap::Parser;
2 | use clavy::error::Result;
3 | use embed_plist::embed_info_plist;
4 |
5 | use crate::cmd::Clavy;
6 |
7 | mod cmd;
8 |
9 | mod _built {
10 | include!(concat!(env!("OUT_DIR"), "/built.rs"));
11 | }
12 |
13 | embed_info_plist!("../assets/Info.plist");
14 |
15 | fn main() -> Result<()> {
16 | Clavy::parse().dispatch()
17 | }
18 |
--------------------------------------------------------------------------------
/.github/workflows/test.yml:
--------------------------------------------------------------------------------
1 | name: test
2 |
3 | on:
4 | pull_request:
5 | push:
6 | branches:
7 | - master
8 |
9 | env:
10 | CARGO_TERM_COLOR: always
11 |
12 | jobs:
13 | macos-test:
14 | runs-on: macos-latest
15 | steps:
16 | - uses: actions/checkout@v6
17 | - uses: dtolnay/rust-toolchain@stable
18 | - name: Test native build
19 | run: cargo build --verbose --locked
20 | - name: Run simple tests
21 | run: cargo test --verbose
22 | - name: Run heavy tests
23 | run: cargo test --verbose -- --ignored
24 |
--------------------------------------------------------------------------------
/assets/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleIdentifier
6 | io.github.rami3l.clavy
7 | CFBundleShortVersionString
8 | 0.1.0
9 | CFBundlePackageType
10 | BNDL
11 | NSHumanReadableCopyright
12 | Copyright © 2023-2024 rami3l. All rights reserved.
13 |
14 |
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # ** macOS **
2 | .DS_Store
3 |
4 | # ** Rust **
5 | # Generated by Cargo
6 | # will have compiled files and executables
7 | /target/
8 |
9 | # Binaries for programs and plugins
10 | *.exe
11 | *.exe~
12 | *.dll
13 | *.so
14 | *.dylib
15 |
16 | # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
17 | # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
18 | # Cargo.lock
19 |
20 | # These are backup files generated by rustfmt
21 | **/*.rs.bk
22 |
23 | # ** IDE **
24 | .vscode/
25 |
26 | # ** Dist **
27 | # Choco files that should get ignored
28 | ignore.*
29 |
30 | # Generated by GoReleaser
31 | dist/
32 |
33 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5 |
6 | version: 2
7 | updates:
8 | - package-ecosystem: "github-actions" # See documentation for possible values
9 | directory: "/" # Location of package manifests
10 | schedule:
11 | interval: "weekly"
12 |
13 | - package-ecosystem: "cargo"
14 | directory: "/"
15 | schedule:
16 | interval: "monthly"
17 | groups:
18 | minors:
19 | update-types:
20 | - "minor"
21 | - "patch"
22 |
--------------------------------------------------------------------------------
/assets/launchd.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | KeepAlive
6 |
7 | Crashed
8 |
9 | SuccessfulExit
10 |
11 |
12 | Label
13 | {name}
14 | Nice
15 | -20
16 | ProcessType
17 | Interactive
18 | Program
19 | {bin_path}
20 | EnvironmentVariables
21 |
22 | NO_COLOR
23 | 1
24 | CLAVY_DETECT_POPUP
25 | {detect_popup}
26 |
27 | RunAtLoad
28 |
29 | StandardErrorPath
30 | {out_log_path}
31 | StandardOutPath
32 | {error_log_path}
33 |
34 |
35 |
--------------------------------------------------------------------------------
/src/observer/notification.rs:
--------------------------------------------------------------------------------
1 | use std::{ptr::NonNull, sync::LazyLock};
2 |
3 | use block2::StackBlock;
4 | use objc2::rc::Retained;
5 | use objc2_foundation::{NSNotification, NSNotificationCenter, NSNotificationName, NSObject};
6 | use tracing::trace;
7 |
8 | pub static LOCAL_NOTIFICATION_CENTER: LazyLock> =
9 | LazyLock::new(|| unsafe { NSNotificationCenter::new() });
10 |
11 | pub const FOCUSED_WINDOW_CHANGED_NOTIFICATION: &str = "ClavyFocusedWindowsChangedNotification";
12 | pub const APP_HIDDEN_NOTIFICATION: &str = "ClavyAppHiddenNotification";
13 |
14 | #[derive(Debug)]
15 | pub struct NotificationObserver {
16 | center: Retained,
17 | raw: Retained,
18 | }
19 |
20 | impl NotificationObserver {
21 | pub fn new(
22 | center: Retained,
23 | name: &NSNotificationName,
24 | update: impl Fn(NonNull) + Clone + 'static,
25 | ) -> Self {
26 | let raw = unsafe {
27 | Retained::cast_unchecked(center.addObserverForName_object_queue_usingBlock(
28 | Some(name),
29 | None,
30 | None,
31 | &StackBlock::new(move |notif: NonNull| {
32 | trace!("received `{}`", notif.as_ref().name());
33 | update(notif);
34 | }),
35 | ))
36 | };
37 | Self { center, raw }
38 | }
39 | }
40 |
41 | impl Drop for NotificationObserver {
42 | fn drop(&mut self) {
43 | unsafe { self.center.removeObserver(&self.raw) };
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "clavy"
3 | version = "0.1.0-alpha8"
4 | license = "GPL-3.0"
5 | edition = "2024"
6 | homepage = "https://github.com/rami3l/clavy"
7 | repository = "https://github.com/rami3l/clavy"
8 | description = "An input source switching daemon for macOS."
9 | readme = "README.md"
10 |
11 | [dependencies]
12 | accessibility-sys = "0.2.0"
13 | block2 = "0.6.2"
14 | clap = { version = "4.5.53", features = ["cargo", "derive", "env"] }
15 | core-foundation = "0.10.1"
16 | core-graphics = "0.25.0"
17 | embed_plist = "1.2.2"
18 | launchctl = "0.3.2"
19 | libc = "0.2.177"
20 | objc2 = "0.6.3"
21 | objc2-app-kit = { version = "0.3.2", features = [
22 | "libc",
23 | "NSRunningApplication",
24 | "NSWorkspace",
25 | ] }
26 | objc2-foundation = { version = "0.3.0", features = [
27 | "NSDictionary",
28 | "NSDistributedNotificationCenter",
29 | "NSEnumerator",
30 | "NSKeyValueObserving",
31 | "NSNotification",
32 | "NSOperation",
33 | "NSRange",
34 | "NSString",
35 | "block2",
36 | ] }
37 | smol = "2.0.2"
38 | thiserror = "2.0.17"
39 | tracing = "0.1.43"
40 | tracing-subscriber = "0.3.22"
41 |
42 | [build-dependencies]
43 | built = { version = "0.8.0", features = ["git2"] }
44 |
45 | [lints.rust]
46 | rust_2018_idioms = { level = "deny", priority = -1 }
47 | missing_copy_implementations = "warn"
48 | missing_debug_implementations = "warn"
49 | trivial_numeric_casts = "warn"
50 | unused_allocation = "warn"
51 |
52 | [lints.clippy]
53 | nursery = { level = "warn", priority = -1 }
54 | pedantic = { level = "warn", priority = -1 }
55 | dbg_macro = "warn"
56 | todo = "warn"
57 | missing_errors_doc = "allow"
58 | missing_panics_doc = "allow"
59 | module_name_repetitions = "allow"
60 | wildcard_imports = "allow"
61 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # clavy
2 |
3 | `clavy` (formerly `claveilleur`) is a simple input source switching daemon for macOS.
4 |
5 | ## About
6 |
7 | Inspired by a native Windows functionality, `clavy` can automatically switch the current input source for you according to the current application (rather than the current document).
8 |
9 | This is especially useful for polyglot users who often need to switch between languages depending on the application they are using
10 | (e.g. using English for coding in VSCode and Chinese for writing emails in Safari).
11 |
12 | 
13 |
14 | ## Status
15 |
16 | The author of this project has been daily-driving the daemon since 2023.
17 | Thus, it can be considered ready for everyday use.
18 |
19 | ## Building & Installation
20 |
21 | ### Installing with `brew`
22 |
23 | ```sh
24 | brew install rami3l/tap/clavy
25 | ```
26 |
27 | ### Building from source
28 |
29 | ```sh
30 | # Live on the bleeding edge
31 | cargo install clavy --git=https://github.com/rami3l/clavy.git
32 | ```
33 |
34 | ## Usage
35 |
36 | Getting started is as simple as:
37 |
38 | ```sh
39 | # Installs the launch agent under `~/Library/LaunchAgents`
40 | clavy install
41 |
42 | # Starts the service through launchd
43 | clavy start
44 | ```
45 |
46 | If this is your first time using `clavy`, please note that you might need to grant necessary privileges through `System Settings > Privacy & Security > Accessibility`.
47 | After doing so, you might need to stop the service and start it again for those changes to take effect:
48 |
49 | ```sh
50 | # Restarts the service through launchd
51 | clavy restart
52 | ```
53 |
54 | To uninstall the service, you just need to run the following:
55 |
56 | ```sh
57 | # Stops the service through launchd
58 | clavy stop
59 |
60 | # Removes the launch agent from `~/Library/LaunchAgents`
61 | clavy uninstall
62 | ```
63 |
--------------------------------------------------------------------------------
/.github/workflows/publish.yml:
--------------------------------------------------------------------------------
1 | name: publish
2 |
3 | on:
4 | # pull_request:
5 | push:
6 | branches:
7 | - master
8 | tags:
9 | - "*"
10 |
11 | jobs:
12 | create-release:
13 | name: Create GitHub release
14 | runs-on: ubuntu-latest
15 | steps:
16 | - uses: actions/checkout@v6
17 | if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
18 | - name: Create release
19 | if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
20 | uses: softprops/action-gh-release@v2
21 | with:
22 | prerelease: ${{ contains(github.ref, '-') }}
23 |
24 | publish:
25 | name: Publish for ${{ matrix.os }}
26 | needs: [create-release]
27 | runs-on: ${{ matrix.os }}
28 | strategy:
29 | matrix:
30 | include:
31 | - os: macos-latest
32 | target: aarch64-apple-darwin
33 | alias: darwin_arm64
34 | target1: x86_64-apple-darwin
35 | alias1: darwin_amd64
36 | steps:
37 | - uses: actions/checkout@v6
38 |
39 | - name: Set up Go
40 | uses: actions/setup-go@v6
41 | with:
42 | go-version: stable
43 |
44 | - name: Setup Rust
45 | uses: dtolnay/rust-toolchain@stable
46 | with:
47 | targets: ${{ matrix.target }},${{ matrix.target1 }}
48 |
49 | - name: Cache Rust
50 | uses: Swatinem/rust-cache@v2
51 |
52 | - name: Build
53 | run: |
54 | mkdir -p target/gh-artifacts/
55 | cargo build --verbose --bin=clavy --release --locked --target=${{ matrix.target }}
56 | mv -f target/${{ matrix.target }}/release/ target/gh-artifacts/clavy_${{ matrix.alias }}/
57 | echo '======='
58 | cargo build --verbose --bin=clavy --release --locked --target=${{ matrix.target1 }}
59 | mv -f target/${{ matrix.target1 }}/release/ target/gh-artifacts/clavy_${{ matrix.alias1 }}/
60 | echo '======='
61 | ls -laR target/gh-artifacts
62 |
63 | # https://goreleaser.com/ci/actions/?h=github+act#usage
64 | - name: Publish via GoReleaser
65 | uses: goreleaser/goreleaser-action@v6
66 | with:
67 | distribution: goreleaser
68 | version: latest
69 | args: release --clean --verbose ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') && ' ' || '--snapshot --skip=publish' }}
70 | env:
71 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72 | TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
73 |
--------------------------------------------------------------------------------
/.goreleaser.yml:
--------------------------------------------------------------------------------
1 | # Check the documentation at https://goreleaser.com
2 |
3 | # Adapted from https://github.com/LGUG2Z/komorebi/blob/e240bc770619fa7c1f311b8a376551f2dde8a2d7/.goreleaser.yml
4 | version: 2
5 | project_name: clavy
6 |
7 | before:
8 | hooks:
9 | - bash -c 'echo "package main; func main() { panic(0xdeadbeef) }" > dummy.go'
10 |
11 | builds:
12 | - id: clavy
13 | binary: clavy
14 | main: dummy.go
15 | # env:
16 | # - CGO_ENABLED=0
17 | goos:
18 | - darwin
19 | goarch:
20 | - amd64
21 | - arm64
22 | hooks:
23 | # Actually override the release binary.
24 | post: bash -c 'mv -f target/gh-artifacts/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/{{ .Name }} {{ .Path }}'
25 |
26 | universal_binaries:
27 | - replace: true
28 | id: clavy
29 | hooks:
30 | post: codesign -dvvv --force --sign - {{ .Path }}
31 |
32 | archives:
33 | - format: tar.gz
34 | # https://goreleaser.com/customization/archive/#packaging-only-the-binaries
35 | files:
36 | - none*
37 | name_template: >-
38 | {{ .ProjectName }}_
39 | {{- .Os }}_
40 | {{- if eq .Arch "all" }}universal2
41 | {{- else if eq .Arch "386" }}i386
42 | {{- else }}{{ .Arch }}{{ end }}
43 | {{- if .Arm }}v{{ .Arm }}{{ end }}
44 | format_overrides:
45 | # Use zip for windows archives
46 | - goos: windows
47 | format: zip
48 |
49 | checksum:
50 | name_template: "checksums.txt"
51 |
52 | release:
53 | prerelease: auto
54 |
55 | brews:
56 | # https://goreleaser.com/customization/homebrew/
57 | - homepage: https://github.com/rami3l/clavy
58 | description: An input source switching daemon for macOS.
59 | license: GPL-3.0-only
60 |
61 | directory: Formula
62 | commit_msg_template: "feat(formula): add `{{ .ProjectName }}` {{ .Tag }}"
63 |
64 | custom_block: |
65 | head "https://github.com/rami3l/clavy.git"
66 |
67 | head do
68 | depends_on "rust" => :build
69 | end
70 |
71 | install: |
72 | if build.head? then
73 | system "cargo", "install", *std_cargo_args
74 | else
75 | bin.install "clavy"
76 | end
77 |
78 | test: |
79 | system "#{bin}/clavy --help"
80 |
81 | # TODO: Use `auto` when we move out of prerelease.
82 | # skip_upload: auto
83 | skip_upload: false
84 |
85 | # https://github.com/goreleaser/goreleaser/blob/a0f0d01a8143913cde72ebc1248abef089ae9b27/.goreleaser.yaml#L211
86 | repository:
87 | owner: rami3l
88 | name: homebrew-tap
89 | branch: "{{.ProjectName}}-{{.Version}}"
90 | token: "{{ .Env.TAP_GITHUB_TOKEN }}"
91 | pull_request:
92 | enabled: true
93 | base:
94 | owner: rami3l
95 | name: homebrew-tap
96 | branch: master
97 |
--------------------------------------------------------------------------------
/src/observer/input_source.rs:
--------------------------------------------------------------------------------
1 | use std::{
2 | collections::HashMap,
3 | ffi::c_void,
4 | sync::{Arc, Mutex},
5 | };
6 |
7 | use core_foundation::{
8 | array::{CFArray, CFArrayRef},
9 | base::{CFTypeID, FromVoid, OSStatus, TCFType, ToVoid},
10 | data::CFDataRef,
11 | declare_TCFType,
12 | dictionary::{CFDictionary, CFDictionaryRef},
13 | impl_TCFType,
14 | string::{CFString, CFStringRef},
15 | };
16 | use tracing::info;
17 |
18 | #[must_use]
19 | #[derive(Default, Clone, Debug)]
20 | pub struct InputSourceState(Arc>>);
21 |
22 | impl InputSourceState {
23 | pub fn new() -> Self {
24 | Self::default()
25 | }
26 |
27 | pub fn save(&self, bundle_id: String, input_source: String) {
28 | self.0.lock().unwrap().insert(bundle_id, input_source);
29 | }
30 |
31 | pub fn load(&self, bundle_id: &str) -> Option {
32 | self.0.lock().unwrap().get(bundle_id).map(ToOwned::to_owned)
33 | }
34 | }
35 |
36 | // https://github.com/mzp/EmojiIM/issues/27#issue-1361876711
37 | #[must_use]
38 | pub fn input_source() -> String {
39 | unsafe {
40 | let src = TISCopyCurrentKeyboardInputSource();
41 | let src_id = TISGetInputSourceProperty(src, kTISPropertyInputSourceID) as CFStringRef;
42 | CFString::wrap_under_get_rule(src_id).to_string()
43 | }
44 | }
45 |
46 | // https://github.com/daipeihust/im-select/blob/83046bb75333e58c9a7cbfbd055db6f360361781/macOS/im-select/im-select/main.m
47 | pub fn set_input_source(id: &str) -> bool {
48 | if input_source() == id {
49 | return true;
50 | }
51 | info!("restoring current input source to `{id}`");
52 | unsafe {
53 | let filter = CFDictionary::from_CFType_pairs(&[(
54 | CFString::from_void(kTISPropertyInputSourceID.cast()).clone(),
55 | CFString::new(id),
56 | )]);
57 | let srcs = CFArray::::wrap_under_get_rule(TISCreateInputSourceList(
58 | filter.to_untyped().to_void().cast(),
59 | false,
60 | ));
61 | let Some(src) = srcs.get(0) else {
62 | return false;
63 | };
64 | TISSelectInputSource(src.as_concrete_TypeRef());
65 | }
66 | true
67 | }
68 |
69 | #[derive(Debug)]
70 | #[repr(transparent)]
71 | pub struct __TISInputSource(c_void);
72 | pub type TISInputSourceRef = *const __TISInputSource;
73 |
74 | declare_TCFType!(TISInputSource, TISInputSourceRef);
75 | impl_TCFType!(TISInputSource, TISInputSourceRef, TISInputSourceGetTypeID);
76 |
77 | #[link(name = "Carbon", kind = "framework")]
78 | unsafe extern "C" {
79 | fn TISInputSourceGetTypeID() -> CFTypeID;
80 | fn TISCopyCurrentKeyboardInputSource() -> TISInputSourceRef;
81 | fn TISGetInputSourceProperty(source: TISInputSourceRef, propertyKey: CFStringRef) -> CFDataRef;
82 | fn TISCreateInputSourceList(
83 | properties: CFDictionaryRef,
84 | includeAllInstalled: bool,
85 | ) -> CFArrayRef;
86 | fn TISSelectInputSource(source: TISInputSourceRef) -> OSStatus;
87 |
88 | static kTISPropertyInputSourceID: CFStringRef;
89 | pub static kTISNotifySelectedKeyboardInputSourceChanged: CFStringRef;
90 | }
91 |
--------------------------------------------------------------------------------
/src/error.rs:
--------------------------------------------------------------------------------
1 | use std::io;
2 |
3 | use accessibility_sys::AXError;
4 | use thiserror::Error as ThisError;
5 |
6 | pub type Result = std::result::Result;
7 |
8 | #[derive(Debug, ThisError)]
9 | pub enum Error {
10 | #[error("the $HOME environment variable is not set")]
11 | HomeNotSet,
12 | #[error("the current executable path could not be retrieved")]
13 | FaultyExePath,
14 | #[error("accessibility privileges are not detected")]
15 | AxPrivilegesNotDetected,
16 | #[error(transparent)]
17 | Io(#[from] io::Error),
18 | }
19 |
20 | // https://github.com/tasuren/window-observer-rs/blob/6981559652fdefe656926814f81464c5c23046d4/src/platform_impl/macos/helper.rs
21 | #[derive(Clone, Copy, Debug, ThisError)]
22 | pub enum AccessibilityError {
23 | #[error("assistive applications are not enabled in System Preferences")]
24 | APIDisabled(i32),
25 | #[error("the referenced action is not supported")]
26 | ActionUnsupported(i32),
27 | #[error("the referenced attribute is not supported")]
28 | AttributeUnsupported(i32),
29 | #[error(
30 | "a fundamental error has occurred, such as a failure to allocate memory during processing"
31 | )]
32 | CannotComplete(i32),
33 | #[error("a system error occurred, such as the failure to allocate an object")]
34 | Failure(i32),
35 | #[error(
36 | "the value received in this event is an invalid value for this attribute, or there are invalid parameters in parameterized attributes"
37 | )]
38 | IllegalArgument(i32),
39 | #[error("the accessibility object received in this event is invalid")]
40 | InvalidUIElement(i32),
41 | #[error("the observer for the accessibility object received in this event is invalid")]
42 | InvalidUIElementObserver(i32),
43 | #[error("the requested value or AXUIElementRef does not exist")]
44 | NoValue(i32),
45 | #[error("not enough precision")]
46 | NotEnoughPrecision(i32),
47 | #[error(
48 | "the function or method is not implemented, or this process does not support the accessibility API"
49 | )]
50 | NotImplemented(i32),
51 | #[error("this notification has already been registered for")]
52 | NotificationAlreadyRegistered(i32),
53 | #[error("indicates that a notification is not registered yet")]
54 | NotificationNotRegistered(i32),
55 | #[error("the notification is not supported by the AXUIElementRef")]
56 | NotificationUnsupported(i32),
57 | #[error("the parameterized attribute is not supported")]
58 | ParameterizedAttributeUnsupported(i32),
59 | }
60 |
61 | impl AccessibilityError {
62 | pub fn wrap(e: AXError) -> Result<(), Self> {
63 | match e.try_into() {
64 | Ok(e) => Err(e),
65 | Err(()) => Ok(()),
66 | }
67 | }
68 | }
69 |
70 | impl TryFrom for AccessibilityError {
71 | type Error = ();
72 |
73 | fn try_from(e: AXError) -> Result {
74 | #![allow(non_upper_case_globals)]
75 |
76 | use accessibility_sys::*;
77 | if e == kAXErrorSuccess {
78 | return Err(());
79 | }
80 |
81 | Ok(match e {
82 | kAXErrorAPIDisabled => Self::APIDisabled(e),
83 | kAXErrorActionUnsupported => Self::ActionUnsupported(e),
84 | kAXErrorAttributeUnsupported => Self::AttributeUnsupported(e),
85 | kAXErrorCannotComplete => Self::CannotComplete(e),
86 | kAXErrorFailure => Self::Failure(e),
87 | kAXErrorIllegalArgument => Self::IllegalArgument(e),
88 | kAXErrorInvalidUIElement => Self::InvalidUIElement(e),
89 | kAXErrorInvalidUIElementObserver => Self::InvalidUIElementObserver(e),
90 | kAXErrorNoValue => Self::NoValue(e),
91 | kAXErrorNotEnoughPrecision => Self::NotEnoughPrecision(e),
92 | kAXErrorNotImplemented => Self::NotImplemented(e),
93 | kAXErrorNotificationAlreadyRegistered => Self::NotificationAlreadyRegistered(e),
94 | kAXErrorNotificationNotRegistered => Self::NotificationNotRegistered(e),
95 | kAXErrorNotificationUnsupported => Self::NotificationUnsupported(e),
96 | kAXErrorParameterizedAttributeUnsupported => Self::ParameterizedAttributeUnsupported(e),
97 | _ => unreachable!(),
98 | })
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/src/service.rs:
--------------------------------------------------------------------------------
1 | use std::{
2 | env, fs,
3 | io::Write,
4 | path::{Path, PathBuf},
5 | };
6 |
7 | use tracing::{info, warn};
8 |
9 | use crate::{
10 | error::{Error, Result},
11 | util::exe_path,
12 | };
13 |
14 | pub const ID: &str = "io.github.rami3l.clavy";
15 |
16 | #[derive(Debug)]
17 | pub struct Service {
18 | pub raw: launchctl::Service,
19 | pub bin_path: PathBuf,
20 | pub detect_popup: String,
21 | }
22 |
23 | impl Service {
24 | pub fn try_new>(
25 | name: &str,
26 | detect_popup: impl IntoIterator- ,
27 | ) -> Result {
28 | Ok(Self {
29 | bin_path: exe_path().ok_or(Error::FaultyExePath)?,
30 | detect_popup: join(detect_popup, ","),
31 | raw: launchctl::Service::builder()
32 | .name(name)
33 | .uid(unsafe { libc::getuid() }.to_string())
34 | .plist_path(format!(
35 | "{home}/Library/LaunchAgents/{name}.plist",
36 | home = env::home_dir().ok_or(Error::HomeNotSet)?.display()
37 | ))
38 | .build(),
39 | })
40 | }
41 |
42 | #[must_use]
43 | pub fn plist_path(&self) -> &Path {
44 | Path::new(&self.raw.plist_path)
45 | }
46 |
47 | #[must_use]
48 | pub fn is_installed(&self) -> bool {
49 | self.plist_path().is_file()
50 | }
51 |
52 | pub fn install(&self) -> Result<()> {
53 | let plist_path = self.plist_path();
54 | if self.is_installed() {
55 | warn!(
56 | "existing launch agent detected at `{}`, skipping installation",
57 | plist_path.display()
58 | );
59 | return Ok(());
60 | }
61 |
62 | let mut plist = fs::File::create(plist_path)?;
63 | plist.write_all(self.launchd_plist().as_bytes())?;
64 | info!("installed launch agent to `{}`", plist_path.display());
65 | Ok(())
66 | }
67 |
68 | pub fn uninstall(&self) -> Result<()> {
69 | let plist_path = self.plist_path();
70 | if !self.is_installed() {
71 | warn!(
72 | "no launch agent detected at `{}`, skipping uninstallation",
73 | plist_path.display(),
74 | );
75 | return Ok(());
76 | }
77 |
78 | if let Err(e) = self.stop() {
79 | warn!("failed to stop service: {e:?}");
80 | }
81 |
82 | fs::remove_file(plist_path)?;
83 | info!(
84 | "removed existing launch agent at `{}`",
85 | plist_path.display()
86 | );
87 | Ok(())
88 | }
89 |
90 | pub fn reinstall(&self) -> Result<()> {
91 | self.uninstall()?;
92 | self.install()
93 | }
94 |
95 | pub fn start(&self) -> Result<()> {
96 | if !self.is_installed() {
97 | self.install()?;
98 | }
99 | info!("starting service...");
100 | self.raw.start()?;
101 | info!("service started");
102 | Ok(())
103 | }
104 |
105 | pub fn stop(&self) -> Result<()> {
106 | info!("stopping service...");
107 | self.raw.stop()?;
108 | info!("service stopped");
109 | Ok(())
110 | }
111 |
112 | pub fn restart(&self) -> Result<()> {
113 | self.stop()?;
114 | self.start()
115 | }
116 |
117 | #[must_use]
118 | pub fn launchd_plist(&self) -> String {
119 | format!(
120 | include_str!("../assets/launchd.plist"),
121 | name = self.raw.name,
122 | bin_path = self.bin_path.display(),
123 | out_log_path = self.raw.out_log_path,
124 | error_log_path = self.raw.error_log_path,
125 | detect_popup = self.detect_popup,
126 | )
127 | }
128 | }
129 |
130 | fn join>(ss: impl IntoIterator
- , sep: &str) -> String {
131 | let mut res = String::new();
132 | for (i, s) in ss.into_iter().enumerate() {
133 | if i != 0 {
134 | res.push_str(sep);
135 | }
136 | res.push_str(s.as_ref());
137 | }
138 | res
139 | }
140 |
141 | #[cfg(test)]
142 | mod tests {
143 | use super::*;
144 |
145 | #[test]
146 | fn test_join() {
147 | assert_eq!(join(["foo", "baar", "bz", "", "5"], ","), "foo,baar,bz,,5");
148 | }
149 | }
150 |
--------------------------------------------------------------------------------
/src/observer/window.rs:
--------------------------------------------------------------------------------
1 | // https://github.com/tasuren/window-observer-rs/blob/6981559652fdefe656926814f81464c5c23046d4/src/platform_impl/macos/mod.rs
2 |
3 | use std::{
4 | borrow::Cow,
5 | ffi::c_void,
6 | fmt,
7 | pin::Pin,
8 | ptr::{self, NonNull},
9 | };
10 |
11 | use accessibility_sys::{
12 | AXObserverAddNotification, AXObserverCreate, AXObserverGetRunLoopSource, AXObserverRef,
13 | AXObserverRemoveNotification, AXUIElementCreateApplication, AXUIElementRef,
14 | };
15 | use core_foundation::{
16 | base::{CFRelease, TCFType, ToVoid},
17 | runloop,
18 | string::{CFString, CFStringRef},
19 | };
20 | use libc::pid_t;
21 | use tracing::debug;
22 |
23 | use crate::error::AccessibilityError;
24 |
25 | pub type OnNotifFn = Box)>;
26 |
27 | // Special thanks to
28 | //
29 | // for providing the basic methodological guidance for supporting
30 | // Spotlight and co.
31 |
32 | // https://juejin.cn/post/6919716600543182855
33 | pub struct WindowObserver {
34 | pid: pid_t,
35 | elem: AXUIElementRef,
36 | raw: AXObserverRef,
37 | pub on_notif: OnNotifFn,
38 | }
39 |
40 | impl fmt::Debug for WindowObserver {
41 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
42 | f.debug_struct("WindowObserver")
43 | .field("pid", &self.pid)
44 | .field("elem", &self.elem)
45 | .field("raw", &self.raw)
46 | .field("on_notif", &"")
47 | .finish()
48 | }
49 | }
50 |
51 | unsafe impl ToVoid for WindowObserver {
52 | fn to_void(&self) -> *const c_void {
53 | ptr::from_ref(self).cast()
54 | }
55 | }
56 |
57 | impl WindowObserver {
58 | #[must_use]
59 | pub const fn pid(&self) -> pid_t {
60 | self.pid
61 | }
62 |
63 | pub fn try_new(pid: pid_t, on_notif: OnNotifFn) -> Result>, AccessibilityError> {
64 | unsafe extern "C" fn callback(
65 | _: AXObserverRef,
66 | _: AXUIElementRef,
67 | notif: CFStringRef,
68 | refcon: *mut c_void,
69 | ) {
70 | let Some(self_) = NonNull::new(refcon.cast()) else {
71 | return;
72 | };
73 | let self_: &WindowObserver = unsafe { self_.as_ref() };
74 | let pid = self_.pid();
75 | let notif = unsafe { CFString::wrap_under_get_rule(notif) };
76 | debug!("received `{notif}` from PID {pid}");
77 | (self_.on_notif)(self_, Cow::from(¬if));
78 | }
79 |
80 | let mut raw = ptr::null_mut();
81 | unsafe {
82 | AccessibilityError::wrap(AXObserverCreate(pid, callback, &raw mut raw))?;
83 | }
84 | Ok(Box::pin(Self {
85 | pid,
86 | on_notif,
87 | raw,
88 | elem: unsafe { AXUIElementCreateApplication(pid) },
89 | }))
90 | }
91 |
92 | pub fn subscribe(mut self: Pin<&mut Self>, notif: &str) -> Result<(), AccessibilityError> {
93 | AccessibilityError::wrap(unsafe {
94 | AXObserverAddNotification(
95 | self.raw,
96 | self.elem,
97 | CFString::new(notif).to_void().cast(),
98 | (&raw mut *self).cast(),
99 | )
100 | })
101 | }
102 |
103 | pub fn unsubscribe(&self, notif: &str) -> Result<(), AccessibilityError> {
104 | AccessibilityError::wrap(unsafe {
105 | AXObserverRemoveNotification(self.raw, self.elem, CFString::new(notif).to_void().cast())
106 | })
107 | }
108 |
109 | pub fn start(&mut self) {
110 | unsafe {
111 | runloop::CFRunLoopAddSource(
112 | runloop::CFRunLoopGetCurrent(),
113 | AXObserverGetRunLoopSource(self.raw),
114 | runloop::kCFRunLoopDefaultMode,
115 | );
116 | };
117 | }
118 |
119 | pub fn stop(&self) {
120 | if self.raw.is_null() {
121 | return;
122 | }
123 | unsafe {
124 | runloop::CFRunLoopRemoveSource(
125 | runloop::CFRunLoopGetCurrent(),
126 | AXObserverGetRunLoopSource(self.raw),
127 | runloop::kCFRunLoopDefaultMode,
128 | );
129 | }
130 | }
131 | }
132 |
133 | impl Drop for WindowObserver {
134 | fn drop(&mut self) {
135 | self.stop();
136 | unsafe {
137 | CFRelease(self.raw.cast());
138 | }
139 | }
140 | }
141 |
--------------------------------------------------------------------------------
/src/util.rs:
--------------------------------------------------------------------------------
1 | use std::{
2 | ffi::{CStr, OsStr, c_int},
3 | os::unix::ffi::OsStrExt,
4 | path::PathBuf,
5 | ptr,
6 | };
7 |
8 | use accessibility_sys::{
9 | AXIsProcessTrustedWithOptions, AXUIElementCopyAttributeValue, AXUIElementCreateSystemWide,
10 | AXUIElementGetPid, AXUIElementRef, kAXFocusedApplicationAttribute, kAXTrustedCheckOptionPrompt,
11 | };
12 | use core_foundation::{
13 | base::{CFTypeRef, FromVoid, TCFType},
14 | boolean::CFBoolean,
15 | string::CFString,
16 | };
17 | use core_graphics::display::CFDictionary;
18 | use libc::pid_t;
19 | use objc2::rc::Retained;
20 | use objc2_app_kit::{NSRunningApplication, NSWorkspace, NSWorkspaceApplicationKey};
21 | use objc2_foundation::{NSNotification, NSString};
22 | use tracing::debug;
23 |
24 | use crate::error::AccessibilityError;
25 |
26 | /// Returns the path of the current executable.
27 | #[must_use]
28 | pub fn exe_path() -> Option {
29 | #[link(name = "Foundation", kind = "framework")]
30 | unsafe extern "C" {
31 | fn _NSGetExecutablePath(buf: *mut u8, buf_size: *mut u32) -> c_int;
32 | }
33 |
34 | let mut path_buf = [0_u8; 4096];
35 |
36 | #[allow(clippy::cast_possible_truncation)]
37 | let mut path_buf_size = path_buf.len() as u32;
38 | #[allow(clippy::used_underscore_items)]
39 | let path = unsafe { _NSGetExecutablePath(path_buf.as_mut_ptr(), &raw mut path_buf_size) == 0 }
40 | .then(|| CStr::from_bytes_until_nul(&path_buf).ok())??;
41 | Some(OsStr::from_bytes(path.to_bytes()).into())
42 | }
43 |
44 | /// Returns if the right privileges have been granted to use the
45 | /// Accessibility APIs.
46 | // https://github.com/koekeishiya/yabai/blob/a8eb6b1a7da4e33954b716b424eb51ce47317865/src/misc/helpers.h#L328
47 | #[must_use]
48 | pub fn has_ax_privileges() -> bool {
49 | unsafe {
50 | let opts = CFDictionary::from_CFType_pairs(&[(
51 | CFString::from_void(kAXTrustedCheckOptionPrompt.cast()).clone(),
52 | CFBoolean::true_value(),
53 | )]);
54 | AXIsProcessTrustedWithOptions(opts.as_concrete_TypeRef())
55 | }
56 | }
57 |
58 | fn ax_ui_element_value(elem: AXUIElementRef, key: &str) -> Result {
59 | let mut val: CFTypeRef = ptr::null_mut();
60 | AccessibilityError::wrap(unsafe {
61 | AXUIElementCopyAttributeValue(elem, CFString::new(key).as_concrete_TypeRef(), &raw mut val)
62 | })?;
63 | Ok(val)
64 | }
65 |
66 | /// Converts a running application's PID to its Bundle ID.
67 | #[must_use]
68 | pub fn bundle_id_from_pid(pid: pid_t) -> Option> {
69 | unsafe {
70 | NSWorkspace::sharedWorkspace()
71 | .runningApplications()
72 | .iter()
73 | .find_map(|app| (app.processIdentifier() == pid).then(|| app.bundleIdentifier())?)
74 | }
75 | }
76 |
77 | /// Returns the PID of the frontmost application from a notification
78 | /// sent by `NotificationCenter`.
79 | ///
80 | /// # Note
81 | /// This function could always return `None` for certain notification types.
82 | pub fn bundle_id_from_notification(notif: &NSNotification) -> Option> {
83 | unsafe {
84 | Retained::cast_unchecked::(
85 | notif.userInfo()?.objectForKey(NSWorkspaceApplicationKey)?,
86 | )
87 | .bundleIdentifier()
88 | }
89 | }
90 |
91 | /// Returns the PID of the frontmost application from the Accessibility APIs.
92 | pub fn pid_from_current_app() -> Result {
93 | unsafe {
94 | let curr = ax_ui_element_value(
95 | AXUIElementCreateSystemWide(),
96 | kAXFocusedApplicationAttribute,
97 | )?;
98 | let curr = curr as AXUIElementRef;
99 | let mut pid = 0;
100 | AccessibilityError::wrap(AXUIElementGetPid(curr, &raw mut pid))?;
101 | Ok(pid)
102 | }
103 | }
104 |
105 | /// Returns the Bundle ID of the frontmost application as indicated by
106 | /// `NSWorkspace`.
107 | ///
108 | /// # Note
109 | /// Floating panels (such as the Spotlight search box triggered by cmd-space)
110 | /// are ignored by this API.
111 | #[must_use]
112 | pub fn bundle_id_from_frontmost_app() -> Option> {
113 | unsafe {
114 | NSWorkspace::sharedWorkspace()
115 | .frontmostApplication()?
116 | .bundleIdentifier()
117 | }
118 | }
119 |
120 | /// Returns the Bundle ID of the currently focused application.
121 | ///
122 | /// # Note
123 | /// This function always tries to get the current application from the
124 | /// Accessibility APIs first, and uses the `NSWorkspace` result as a fallback.
125 | /// Despite these efforts, the result might still be inaccurate.
126 | #[must_use]
127 | pub fn bundle_id_from_current_app() -> Option> {
128 | match pid_from_current_app() {
129 | Ok(pid) => bundle_id_from_pid(pid),
130 | Err(e) => {
131 | debug!("failed to get current app PID, falling back to frontmost app PID: {e:?}");
132 | // HACK: I don't know why I am doing this, but this seems to work 90% of the
133 | // time.
134 | // TODO: What happens when `getCurrentAppPID()` fails and we fall back to this
135 | // one, but the frontmost app is NOT the current app?
136 | bundle_id_from_frontmost_app()
137 | }
138 | }
139 | }
140 |
--------------------------------------------------------------------------------
/src/observer/workspace.rs:
--------------------------------------------------------------------------------
1 | use std::{
2 | collections::{HashMap, HashSet},
3 | ffi::c_void,
4 | pin::Pin,
5 | ptr,
6 | sync::{Mutex, OnceLock},
7 | };
8 |
9 | use accessibility_sys::{kAXApplicationHiddenNotification, kAXFocusedWindowChangedNotification};
10 | use core_foundation::{base::FromVoid, dictionary::CFDictionary, number::CFNumber};
11 | use core_graphics::window::{
12 | copy_window_info, kCGNullWindowID, kCGWindowListOptionAll, kCGWindowOwnerPID,
13 | };
14 | use libc::pid_t;
15 | use objc2::{
16 | AllocAnyThread, DeclaredClass, define_class, msg_send,
17 | rc::{Allocated, Retained},
18 | runtime::AnyObject,
19 | };
20 | use objc2_app_kit::{NSRunningApplication, NSWorkspace};
21 | use objc2_foundation::{
22 | NSDictionary, NSKeyValueChangeKey, NSKeyValueObservingOptions, NSNotificationName, NSNumber,
23 | NSObject, NSObjectNSKeyValueObserverRegistration, NSString, ns_string,
24 | };
25 | use tracing::{debug, trace, warn};
26 |
27 | use super::window::WindowObserver;
28 | use crate::observer::notification::{
29 | APP_HIDDEN_NOTIFICATION, FOCUSED_WINDOW_CHANGED_NOTIFICATION, LOCAL_NOTIFICATION_CENTER,
30 | };
31 |
32 | #[derive(Debug)]
33 | pub struct WorkspaceObserverIvars {
34 | workspace: Retained,
35 | children: Mutex>>>,
36 | allowed_app_ids: OnceLock>,
37 | }
38 |
39 | define_class![
40 | #[unsafe(super = NSObject)]
41 | #[name = "WorkspaceObserver"]
42 | #[ivars = WorkspaceObserverIvars]
43 | pub struct WorkspaceObserver;
44 |
45 | impl WorkspaceObserver {
46 | #[unsafe(method_id(init))]
47 | fn init(this: Allocated) -> Option> {
48 | let this = this.set_ivars(WorkspaceObserverIvars {
49 | workspace: unsafe { NSWorkspace::sharedWorkspace() },
50 | children: Mutex::default(),
51 | allowed_app_ids: OnceLock::default(),
52 | });
53 | unsafe { msg_send![super(this), init] }
54 | }
55 |
56 | #[unsafe(method(observeValueForKeyPath:ofObject:change:context:))]
57 | fn observe_value(
58 | &self,
59 | key_path: Option<&NSString>,
60 | _object: Option<&AnyObject>,
61 | change: Option<&NSDictionary>,
62 | _context: *mut c_void,
63 | ) {
64 | self.update(key_path, change);
65 | }
66 | }
67 | ];
68 |
69 | const RUNNING_APPLICATIONS: &str = "runningApplications";
70 |
71 | impl WorkspaceObserver {
72 | /// Creating `AXObserver` for some system apps is simply impossible.
73 | const EXCLUDED_APP_IDS: [&str; 4] = [
74 | "com.apple.dock",
75 | "com.apple.universalcontrol",
76 | // HACK: When hiding some system apps, `AXApplicationHidden` is not sent.
77 | // We exclude these apps from the observation for now.
78 | // See: https://github.com/rami3l/clavy/issues/3
79 | "com.apple.controlcenter",
80 | "com.apple.notificationcenterui",
81 | ];
82 | /// A list of known Spotlight-like apps that only show a popup window.
83 | /// See:
84 | const KNOWN_POPUP_ONLY_APP_IDS: [&str; 12] = [
85 | "com.apple.Spotlight",
86 | "com.runningwithcrayons.Alfred",
87 | "at.obdev.LaunchBar",
88 | "com.raycast.macos",
89 | "com.googlecode.iterm2",
90 | "com.xunyong.hapigo",
91 | "com.hezongyidev.Bob",
92 | "com.ripperhe.Bob",
93 | "org.yuanli.utools",
94 | "com.1password.1password",
95 | "com.eusoft.eudic.LightPeek",
96 | "com.contextsformac.Contexts",
97 | ];
98 |
99 | #[must_use]
100 | pub fn new>(allowed_app_ids: impl IntoIterator
- ) -> Retained {
101 | let res: Retained = unsafe { msg_send![Self::alloc(), init] };
102 | let mut allowed_app_ids: HashSet<_> = allowed_app_ids
103 | .into_iter()
104 | .map(|s| s.as_ref().to_owned())
105 | .collect();
106 | for id in Self::KNOWN_POPUP_ONLY_APP_IDS {
107 | allowed_app_ids.insert(id.to_owned());
108 | }
109 | for id in Self::EXCLUDED_APP_IDS {
110 | allowed_app_ids.remove(id);
111 | }
112 | res.ivars().allowed_app_ids.set(allowed_app_ids).unwrap();
113 | res.start();
114 | res
115 | }
116 |
117 | fn start(&self) {
118 | unsafe {
119 | self.ivars()
120 | .workspace
121 | .addObserver_forKeyPath_options_context(
122 | self,
123 | ns_string!(RUNNING_APPLICATIONS),
124 | NSKeyValueObservingOptions::Initial
125 | | NSKeyValueObservingOptions::Old
126 | | NSKeyValueObservingOptions::New,
127 | ptr::null_mut(),
128 | );
129 | }
130 | }
131 |
132 | fn stop(&self) {
133 | unsafe {
134 | self.ivars().workspace.removeObserver_forKeyPath_context(
135 | self,
136 | ns_string!(RUNNING_APPLICATIONS),
137 | ptr::null_mut(),
138 | );
139 | }
140 | }
141 |
142 | fn update(
143 | &self,
144 | key_path: Option<&NSString>,
145 | _change: Option<&NSDictionary>,
146 | ) {
147 | if !key_path.is_some_and(|p| unsafe { p.isEqualToString(ns_string!(RUNNING_APPLICATIONS)) })
148 | {
149 | warn!("received an unexpected change from key path `{key_path:?}`");
150 | return;
151 | }
152 |
153 | let ivars = self.ivars();
154 |
155 | let new = unsafe { ivars.workspace.runningApplications() };
156 | let new_keys = self.window_change_pids(&new.to_vec());
157 |
158 | let mut children = ivars.children.lock().expect("failed to lock children");
159 | let old_keys = children.keys().copied().collect::>();
160 |
161 | for pid in old_keys.difference(&new_keys) {
162 | trace!("removing from children: {pid}");
163 | children.remove(pid);
164 | }
165 | for pid in new_keys.difference(&old_keys) {
166 | trace!("adding to children: {pid}");
167 | _ = WindowObserver::try_new(
168 | *pid,
169 | Box::new(|obs, notif| {
170 | #[allow(non_upper_case_globals)]
171 | let name = match notif.as_ref() {
172 | kAXFocusedWindowChangedNotification => FOCUSED_WINDOW_CHANGED_NOTIFICATION,
173 | kAXApplicationHiddenNotification => APP_HIDDEN_NOTIFICATION,
174 | notif => {
175 | debug!("unexpected notification `{notif}` detected");
176 | return;
177 | }
178 | };
179 | unsafe {
180 | LOCAL_NOTIFICATION_CENTER.postNotificationName_object(
181 | &NSNotificationName::from_str(name),
182 | Some(&NSNumber::new_i32(obs.pid())),
183 | );
184 | };
185 | }),
186 | )
187 | .and_then(|mut new| {
188 | new.as_mut()
189 | .subscribe(kAXFocusedWindowChangedNotification)?;
190 | new.as_mut().subscribe(kAXApplicationHiddenNotification)?;
191 | new.start();
192 | children.insert(*pid, new);
193 | Ok(())
194 | })
195 | .inspect_err(|e| debug!("failed to create `WindowObserver` for PID {pid}: {e}"));
196 | }
197 | drop(children);
198 | }
199 |
200 | fn window_change_pids(
201 | &self,
202 | running_apps: &[Retained],
203 | ) -> HashSet {
204 | // https://apple.stackexchange.com/a/317705
205 | // https://gist.github.com/ljos/3040846
206 | // https://stackoverflow.com/a/61688877
207 | let window_info = copy_window_info(kCGWindowListOptionAll, kCGNullWindowID)
208 | .expect("failed to copy window info");
209 |
210 | let windowed_pids: HashSet = window_info
211 | .iter()
212 | .filter_map(|d| unsafe {
213 | let d = CFDictionary::from_void(*d);
214 | CFNumber::from_void(*d.find(kCGWindowOwnerPID)?).to_i32()
215 | })
216 | .collect();
217 |
218 | running_apps
219 | .iter()
220 | .filter(|&app| {
221 | unsafe { app.bundleIdentifier() }.is_some_and(|nss| {
222 | self.ivars()
223 | .allowed_app_ids
224 | .get()
225 | .unwrap()
226 | .contains(&nss.to_string())
227 | })
228 | })
229 | .map(|app| unsafe { app.processIdentifier() })
230 | .filter(|pid| windowed_pids.contains(pid))
231 | .collect()
232 | }
233 | }
234 |
235 | impl Drop for WorkspaceObserver {
236 | fn drop(&mut self) {
237 | self.stop();
238 | }
239 | }
240 |
--------------------------------------------------------------------------------
/src/cmd.rs:
--------------------------------------------------------------------------------
1 | use std::{env, str::FromStr};
2 |
3 | use clap::{Parser, Subcommand, builder::FalseyValueParser};
4 | use clavy::{
5 | error::{Error, Result},
6 | observer::{
7 | input_source::{
8 | InputSourceState, input_source, kTISNotifySelectedKeyboardInputSourceChanged,
9 | set_input_source,
10 | },
11 | notification::{
12 | APP_HIDDEN_NOTIFICATION, FOCUSED_WINDOW_CHANGED_NOTIFICATION,
13 | LOCAL_NOTIFICATION_CENTER, NotificationObserver,
14 | },
15 | workspace::WorkspaceObserver,
16 | },
17 | service::{self, Service},
18 | util::{
19 | bundle_id_from_current_app, bundle_id_from_notification, bundle_id_from_pid,
20 | has_ax_privileges,
21 | },
22 | };
23 | use core_foundation::runloop::CFRunLoopRun;
24 | use libc::pid_t;
25 | use objc2::rc::Retained;
26 | use objc2_app_kit::{NSWorkspace, NSWorkspaceDidActivateApplicationNotification};
27 | use objc2_foundation::{NSDistributedNotificationCenter, NSNotification, NSNumber, NSString};
28 | use smol::channel;
29 | use tracing::{Level, debug, event, event_enabled, info, warn};
30 |
31 | use crate::_built::GIT_VERSION;
32 |
33 | // TODO: Replace this with `.unwrap_or()` when it's available in `const`.
34 | const VERSION: &str = match GIT_VERSION {
35 | Some(v) => v,
36 | None => clap::crate_version!(),
37 | };
38 |
39 | /// The command line options to be collected.
40 | #[derive(Clone, Debug, Parser)]
41 | #[command(
42 | version = VERSION,
43 | author = clap::crate_authors!(),
44 | about = clap::crate_description!(),
45 | before_help = format!("{name} {VERSION}", name = clap::crate_name!()),
46 | )]
47 | pub struct Clavy {
48 | #[clap(subcommand)]
49 | subcmd: Option,
50 |
51 | /// Do not use colors in output.
52 | #[clap(long, env, value_parser = FalseyValueParser::new())]
53 | no_color: bool,
54 |
55 | /// Comma-separated list of bundle IDs to detect popup windows from.
56 | #[clap(long, env = "CLAVY_DETECT_POPUP", value_delimiter = ',')]
57 | detect_popup: Vec,
58 | }
59 |
60 | #[derive(Default, Copy, Clone, Debug, Subcommand)]
61 | pub enum Subcmd {
62 | /// Launch the daemon directly in the console.
63 | #[default]
64 | Launch,
65 |
66 | /// Install the service.
67 | Install,
68 |
69 | /// Uninstall the service.
70 | Uninstall,
71 |
72 | /// Reinstall the service.
73 | Reinstall,
74 |
75 | /// Start the service.
76 | Start,
77 |
78 | /// Stop the service.
79 | Stop,
80 |
81 | /// Restart the service.
82 | Restart,
83 | }
84 |
85 | impl Clavy {
86 | pub(crate) fn dispatch(&self) -> Result<()> {
87 | tracing_subscriber::fmt()
88 | .compact()
89 | .with_ansi(!self.no_color)
90 | .with_max_level(
91 | env::var_os("RUST_LOG")
92 | .and_then(|s| Level::from_str(&s.to_string_lossy()).ok())
93 | .unwrap_or(Level::INFO),
94 | )
95 | .init();
96 |
97 | if !has_ax_privileges() {
98 | warn!(
99 | "it looks like required accessibility privileges have not been granted yet, and the service might exit immediately on startup..."
100 | );
101 | warn!(
102 | "to fix this issue, you may need to update your configuration in `System Settings > Privacy & Security > Accessibility`"
103 | );
104 | }
105 |
106 | let detect_popup = &self.detect_popup;
107 | let service = || Service::try_new(service::ID, detect_popup);
108 |
109 | match self.subcmd.unwrap_or_default() {
110 | Subcmd::Launch => launch(detect_popup)?,
111 | Subcmd::Install => service()?.install()?,
112 | Subcmd::Uninstall => service()?.uninstall()?,
113 | Subcmd::Reinstall => service()?.reinstall()?,
114 | Subcmd::Start => service()?.start()?,
115 | Subcmd::Stop => service()?.stop()?,
116 | Subcmd::Restart => service()?.restart()?,
117 | }
118 | Ok(())
119 | }
120 | }
121 |
122 | #[allow(clippy::too_many_lines)]
123 | fn launch>(detect_popup: impl IntoIterator
- ) -> Result<()> {
124 | const NOTIF_NAME_LVL: Level = Level::DEBUG;
125 | let activation_signal = |notif: &NSNotification, bundle_id: Retained| unsafe {
126 | (
127 | event_enabled!(NOTIF_NAME_LVL).then(|| notif.name().to_string()),
128 | bundle_id.to_string(),
129 | )
130 | };
131 |
132 | if !has_ax_privileges() {
133 | return Err(Error::AxPrivilegesNotDetected);
134 | }
135 |
136 | info!("Hello from clavy!");
137 |
138 | let input_source_state = InputSourceState::new();
139 | let (activation_tx, activation_rx) = channel::unbounded();
140 | let (input_source_tx, input_source_rx) = channel::unbounded();
141 |
142 | let _workspace_observer = WorkspaceObserver::new(detect_popup);
143 |
144 | let _focused_window_observer = NotificationObserver::new(
145 | LOCAL_NOTIFICATION_CENTER.clone(),
146 | &NSString::from_str(FOCUSED_WINDOW_CHANGED_NOTIFICATION),
147 | {
148 | let tx = activation_tx.clone();
149 | move |notif| unsafe {
150 | let notif = notif.as_ref();
151 | let Some(pid) = notif.object() else {
152 | return;
153 | };
154 | let pid: pid_t = Retained::cast_unchecked::(pid).as_i32();
155 | let Some(bundle_id) = bundle_id_from_pid(pid) else {
156 | return;
157 | };
158 | let tx = tx.clone();
159 | let signal = activation_signal(notif, bundle_id);
160 | smol::spawn(async move { tx.send(signal).await.unwrap() }).detach();
161 | }
162 | },
163 | );
164 |
165 | let _app_hidden_observer = NotificationObserver::new(
166 | LOCAL_NOTIFICATION_CENTER.clone(),
167 | &NSString::from_str(APP_HIDDEN_NOTIFICATION),
168 | {
169 | let tx = activation_tx.clone();
170 | move |notif| unsafe {
171 | let notif = notif.as_ref();
172 | let Some(bundle_id) = bundle_id_from_current_app() else {
173 | return;
174 | };
175 | let tx = tx.clone();
176 | let signal = activation_signal(notif, bundle_id);
177 | smol::spawn(async move { tx.send(signal).await.unwrap() }).detach();
178 | }
179 | },
180 | );
181 |
182 | let _did_activate_app_observer = unsafe {
183 | NotificationObserver::new(
184 | NSWorkspace::sharedWorkspace().notificationCenter(),
185 | NSWorkspaceDidActivateApplicationNotification,
186 | {
187 | let tx = activation_tx;
188 | move |notif| {
189 | let notif = notif.as_ref();
190 | let Some(bundle_id) = bundle_id_from_notification(notif) else {
191 | return;
192 | };
193 | let tx = tx.clone();
194 | let signal = activation_signal(notif, bundle_id);
195 | smol::spawn(async move { tx.send(signal).await.unwrap() }).detach();
196 | }
197 | },
198 | )
199 | };
200 |
201 | smol::spawn({
202 | let input_source_state = input_source_state.clone();
203 | async move {
204 | let mut prev_app = None;
205 | while let Ok((notif, curr_app)) = activation_rx.recv().await {
206 | if prev_app.as_ref() == Some(&curr_app) {
207 | continue;
208 | }
209 | prev_app = Some(curr_app.clone());
210 | event!(
211 | NOTIF_NAME_LVL,
212 | "detected activation of app `{curr_app}` via `{notif}`",
213 | // Unwrapping is safe here because we only send `Some()` with this level.
214 | notif = notif.unwrap()
215 | );
216 | if let Some(old_src) = input_source_state.load(&curr_app)
217 | && set_input_source(&old_src)
218 | {
219 | continue;
220 | }
221 | let new_src = input_source();
222 | debug!("registering input source for `{curr_app}` as `{new_src}`");
223 | input_source_state.save(curr_app, new_src);
224 | }
225 | }
226 | })
227 | .detach();
228 |
229 | let _curr_input_source_observer = unsafe {
230 | NotificationObserver::new(
231 | Retained::cast_unchecked(NSDistributedNotificationCenter::defaultCenter()),
232 | &*kTISNotifySelectedKeyboardInputSourceChanged.cast(),
233 | move |_| {
234 | smol::spawn({
235 | let tx = input_source_tx.clone();
236 | async move { tx.send(input_source()).await.unwrap() }
237 | })
238 | .detach();
239 | },
240 | )
241 | };
242 |
243 | smol::spawn(async move {
244 | let mut prev: Option = None;
245 | while let Ok(src) = input_source_rx.recv().await {
246 | if prev.as_ref() == Some(&src) {
247 | continue;
248 | }
249 | prev = Some(src.clone());
250 | let Some(curr_app) = bundle_id_from_current_app() else {
251 | warn!("failed to get bundle ID from current app");
252 | continue;
253 | };
254 | debug!("updating input source for `{curr_app}` to `{src}`");
255 | input_source_state.save(curr_app.to_string(), src);
256 | }
257 | })
258 | .detach();
259 |
260 | unsafe { CFRunLoopRun() };
261 | Ok(())
262 | }
263 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | version = 4
4 |
5 | [[package]]
6 | name = "accessibility-sys"
7 | version = "0.2.0"
8 | source = "registry+https://github.com/rust-lang/crates.io-index"
9 | checksum = "46a6a8e90a1d8b96a48249e7c8f5b4058447bea8847280db7bfccb6dcab6b8e1"
10 | dependencies = [
11 | "core-foundation-sys",
12 | ]
13 |
14 | [[package]]
15 | name = "anstream"
16 | version = "0.6.18"
17 | source = "registry+https://github.com/rust-lang/crates.io-index"
18 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
19 | dependencies = [
20 | "anstyle",
21 | "anstyle-parse",
22 | "anstyle-query",
23 | "anstyle-wincon",
24 | "colorchoice",
25 | "is_terminal_polyfill",
26 | "utf8parse",
27 | ]
28 |
29 | [[package]]
30 | name = "anstyle"
31 | version = "1.0.10"
32 | source = "registry+https://github.com/rust-lang/crates.io-index"
33 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
34 |
35 | [[package]]
36 | name = "anstyle-parse"
37 | version = "0.2.6"
38 | source = "registry+https://github.com/rust-lang/crates.io-index"
39 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
40 | dependencies = [
41 | "utf8parse",
42 | ]
43 |
44 | [[package]]
45 | name = "anstyle-query"
46 | version = "1.1.2"
47 | source = "registry+https://github.com/rust-lang/crates.io-index"
48 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
49 | dependencies = [
50 | "windows-sys 0.59.0",
51 | ]
52 |
53 | [[package]]
54 | name = "anstyle-wincon"
55 | version = "3.0.8"
56 | source = "registry+https://github.com/rust-lang/crates.io-index"
57 | checksum = "6680de5231bd6ee4c6191b8a1325daa282b415391ec9d3a37bd34f2060dc73fa"
58 | dependencies = [
59 | "anstyle",
60 | "once_cell_polyfill",
61 | "windows-sys 0.59.0",
62 | ]
63 |
64 | [[package]]
65 | name = "async-channel"
66 | version = "2.3.1"
67 | source = "registry+https://github.com/rust-lang/crates.io-index"
68 | checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a"
69 | dependencies = [
70 | "concurrent-queue",
71 | "event-listener-strategy",
72 | "futures-core",
73 | "pin-project-lite",
74 | ]
75 |
76 | [[package]]
77 | name = "async-executor"
78 | version = "1.13.2"
79 | source = "registry+https://github.com/rust-lang/crates.io-index"
80 | checksum = "bb812ffb58524bdd10860d7d974e2f01cc0950c2438a74ee5ec2e2280c6c4ffa"
81 | dependencies = [
82 | "async-task",
83 | "concurrent-queue",
84 | "fastrand",
85 | "futures-lite",
86 | "pin-project-lite",
87 | "slab",
88 | ]
89 |
90 | [[package]]
91 | name = "async-fs"
92 | version = "2.1.2"
93 | source = "registry+https://github.com/rust-lang/crates.io-index"
94 | checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a"
95 | dependencies = [
96 | "async-lock",
97 | "blocking",
98 | "futures-lite",
99 | ]
100 |
101 | [[package]]
102 | name = "async-io"
103 | version = "2.4.0"
104 | source = "registry+https://github.com/rust-lang/crates.io-index"
105 | checksum = "43a2b323ccce0a1d90b449fd71f2a06ca7faa7c54c2751f06c9bd851fc061059"
106 | dependencies = [
107 | "async-lock",
108 | "cfg-if",
109 | "concurrent-queue",
110 | "futures-io",
111 | "futures-lite",
112 | "parking",
113 | "polling",
114 | "rustix",
115 | "slab",
116 | "tracing",
117 | "windows-sys 0.59.0",
118 | ]
119 |
120 | [[package]]
121 | name = "async-lock"
122 | version = "3.4.0"
123 | source = "registry+https://github.com/rust-lang/crates.io-index"
124 | checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18"
125 | dependencies = [
126 | "event-listener",
127 | "event-listener-strategy",
128 | "pin-project-lite",
129 | ]
130 |
131 | [[package]]
132 | name = "async-net"
133 | version = "2.0.0"
134 | source = "registry+https://github.com/rust-lang/crates.io-index"
135 | checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"
136 | dependencies = [
137 | "async-io",
138 | "blocking",
139 | "futures-lite",
140 | ]
141 |
142 | [[package]]
143 | name = "async-process"
144 | version = "2.3.0"
145 | source = "registry+https://github.com/rust-lang/crates.io-index"
146 | checksum = "63255f1dc2381611000436537bbedfe83183faa303a5a0edaf191edef06526bb"
147 | dependencies = [
148 | "async-channel",
149 | "async-io",
150 | "async-lock",
151 | "async-signal",
152 | "async-task",
153 | "blocking",
154 | "cfg-if",
155 | "event-listener",
156 | "futures-lite",
157 | "rustix",
158 | "tracing",
159 | ]
160 |
161 | [[package]]
162 | name = "async-signal"
163 | version = "0.2.10"
164 | source = "registry+https://github.com/rust-lang/crates.io-index"
165 | checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3"
166 | dependencies = [
167 | "async-io",
168 | "async-lock",
169 | "atomic-waker",
170 | "cfg-if",
171 | "futures-core",
172 | "futures-io",
173 | "rustix",
174 | "signal-hook-registry",
175 | "slab",
176 | "windows-sys 0.59.0",
177 | ]
178 |
179 | [[package]]
180 | name = "async-task"
181 | version = "4.7.1"
182 | source = "registry+https://github.com/rust-lang/crates.io-index"
183 | checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
184 |
185 | [[package]]
186 | name = "atomic-waker"
187 | version = "1.1.2"
188 | source = "registry+https://github.com/rust-lang/crates.io-index"
189 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
190 |
191 | [[package]]
192 | name = "autocfg"
193 | version = "1.4.0"
194 | source = "registry+https://github.com/rust-lang/crates.io-index"
195 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
196 |
197 | [[package]]
198 | name = "bitflags"
199 | version = "2.9.1"
200 | source = "registry+https://github.com/rust-lang/crates.io-index"
201 | checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
202 |
203 | [[package]]
204 | name = "block2"
205 | version = "0.6.2"
206 | source = "registry+https://github.com/rust-lang/crates.io-index"
207 | checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
208 | dependencies = [
209 | "objc2",
210 | ]
211 |
212 | [[package]]
213 | name = "blocking"
214 | version = "1.6.1"
215 | source = "registry+https://github.com/rust-lang/crates.io-index"
216 | checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea"
217 | dependencies = [
218 | "async-channel",
219 | "async-task",
220 | "futures-io",
221 | "futures-lite",
222 | "piper",
223 | ]
224 |
225 | [[package]]
226 | name = "bon"
227 | version = "3.6.3"
228 | source = "registry+https://github.com/rust-lang/crates.io-index"
229 | checksum = "ced38439e7a86a4761f7f7d5ded5ff009135939ecb464a24452eaa4c1696af7d"
230 | dependencies = [
231 | "bon-macros",
232 | "rustversion",
233 | ]
234 |
235 | [[package]]
236 | name = "bon-macros"
237 | version = "3.6.3"
238 | source = "registry+https://github.com/rust-lang/crates.io-index"
239 | checksum = "0ce61d2d3844c6b8d31b2353d9f66cf5e632b3e9549583fe3cac2f4f6136725e"
240 | dependencies = [
241 | "darling",
242 | "ident_case",
243 | "prettyplease",
244 | "proc-macro2",
245 | "quote",
246 | "rustversion",
247 | "syn",
248 | ]
249 |
250 | [[package]]
251 | name = "built"
252 | version = "0.8.0"
253 | source = "registry+https://github.com/rust-lang/crates.io-index"
254 | checksum = "f4ad8f11f288f48ca24471bbd51ac257aaeaaa07adae295591266b792902ae64"
255 | dependencies = [
256 | "git2",
257 | ]
258 |
259 | [[package]]
260 | name = "cc"
261 | version = "1.2.23"
262 | source = "registry+https://github.com/rust-lang/crates.io-index"
263 | checksum = "5f4ac86a9e5bc1e2b3449ab9d7d3a6a405e3d1bb28d7b9be8614f55846ae3766"
264 | dependencies = [
265 | "jobserver",
266 | "libc",
267 | "shlex",
268 | ]
269 |
270 | [[package]]
271 | name = "cfg-if"
272 | version = "1.0.0"
273 | source = "registry+https://github.com/rust-lang/crates.io-index"
274 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
275 |
276 | [[package]]
277 | name = "clap"
278 | version = "4.5.53"
279 | source = "registry+https://github.com/rust-lang/crates.io-index"
280 | checksum = "c9e340e012a1bf4935f5282ed1436d1489548e8f72308207ea5df0e23d2d03f8"
281 | dependencies = [
282 | "clap_builder",
283 | "clap_derive",
284 | ]
285 |
286 | [[package]]
287 | name = "clap_builder"
288 | version = "4.5.53"
289 | source = "registry+https://github.com/rust-lang/crates.io-index"
290 | checksum = "d76b5d13eaa18c901fd2f7fca939fefe3a0727a953561fefdf3b2922b8569d00"
291 | dependencies = [
292 | "anstream",
293 | "anstyle",
294 | "clap_lex",
295 | "strsim",
296 | ]
297 |
298 | [[package]]
299 | name = "clap_derive"
300 | version = "4.5.49"
301 | source = "registry+https://github.com/rust-lang/crates.io-index"
302 | checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671"
303 | dependencies = [
304 | "heck",
305 | "proc-macro2",
306 | "quote",
307 | "syn",
308 | ]
309 |
310 | [[package]]
311 | name = "clap_lex"
312 | version = "0.7.4"
313 | source = "registry+https://github.com/rust-lang/crates.io-index"
314 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
315 |
316 | [[package]]
317 | name = "clavy"
318 | version = "0.1.0-alpha8"
319 | dependencies = [
320 | "accessibility-sys",
321 | "block2",
322 | "built",
323 | "clap",
324 | "core-foundation",
325 | "core-graphics",
326 | "embed_plist",
327 | "launchctl",
328 | "libc",
329 | "objc2",
330 | "objc2-app-kit",
331 | "objc2-foundation",
332 | "smol",
333 | "thiserror",
334 | "tracing",
335 | "tracing-subscriber",
336 | ]
337 |
338 | [[package]]
339 | name = "colorchoice"
340 | version = "1.0.3"
341 | source = "registry+https://github.com/rust-lang/crates.io-index"
342 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
343 |
344 | [[package]]
345 | name = "concurrent-queue"
346 | version = "2.5.0"
347 | source = "registry+https://github.com/rust-lang/crates.io-index"
348 | checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
349 | dependencies = [
350 | "crossbeam-utils",
351 | ]
352 |
353 | [[package]]
354 | name = "core-foundation"
355 | version = "0.10.1"
356 | source = "registry+https://github.com/rust-lang/crates.io-index"
357 | checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
358 | dependencies = [
359 | "core-foundation-sys",
360 | "libc",
361 | ]
362 |
363 | [[package]]
364 | name = "core-foundation-sys"
365 | version = "0.8.7"
366 | source = "registry+https://github.com/rust-lang/crates.io-index"
367 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
368 |
369 | [[package]]
370 | name = "core-graphics"
371 | version = "0.25.0"
372 | source = "registry+https://github.com/rust-lang/crates.io-index"
373 | checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
374 | dependencies = [
375 | "bitflags",
376 | "core-foundation",
377 | "core-graphics-types",
378 | "foreign-types",
379 | "libc",
380 | ]
381 |
382 | [[package]]
383 | name = "core-graphics-types"
384 | version = "0.2.0"
385 | source = "registry+https://github.com/rust-lang/crates.io-index"
386 | checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
387 | dependencies = [
388 | "bitflags",
389 | "core-foundation",
390 | "libc",
391 | ]
392 |
393 | [[package]]
394 | name = "crossbeam-utils"
395 | version = "0.8.21"
396 | source = "registry+https://github.com/rust-lang/crates.io-index"
397 | checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
398 |
399 | [[package]]
400 | name = "darling"
401 | version = "0.20.11"
402 | source = "registry+https://github.com/rust-lang/crates.io-index"
403 | checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
404 | dependencies = [
405 | "darling_core",
406 | "darling_macro",
407 | ]
408 |
409 | [[package]]
410 | name = "darling_core"
411 | version = "0.20.11"
412 | source = "registry+https://github.com/rust-lang/crates.io-index"
413 | checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
414 | dependencies = [
415 | "fnv",
416 | "ident_case",
417 | "proc-macro2",
418 | "quote",
419 | "strsim",
420 | "syn",
421 | ]
422 |
423 | [[package]]
424 | name = "darling_macro"
425 | version = "0.20.11"
426 | source = "registry+https://github.com/rust-lang/crates.io-index"
427 | checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
428 | dependencies = [
429 | "darling_core",
430 | "quote",
431 | "syn",
432 | ]
433 |
434 | [[package]]
435 | name = "dispatch2"
436 | version = "0.3.0"
437 | source = "registry+https://github.com/rust-lang/crates.io-index"
438 | checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
439 | dependencies = [
440 | "bitflags",
441 | "objc2",
442 | ]
443 |
444 | [[package]]
445 | name = "displaydoc"
446 | version = "0.2.5"
447 | source = "registry+https://github.com/rust-lang/crates.io-index"
448 | checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
449 | dependencies = [
450 | "proc-macro2",
451 | "quote",
452 | "syn",
453 | ]
454 |
455 | [[package]]
456 | name = "embed_plist"
457 | version = "1.2.2"
458 | source = "registry+https://github.com/rust-lang/crates.io-index"
459 | checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
460 |
461 | [[package]]
462 | name = "errno"
463 | version = "0.3.12"
464 | source = "registry+https://github.com/rust-lang/crates.io-index"
465 | checksum = "cea14ef9355e3beab063703aa9dab15afd25f0667c341310c1e5274bb1d0da18"
466 | dependencies = [
467 | "libc",
468 | "windows-sys 0.59.0",
469 | ]
470 |
471 | [[package]]
472 | name = "event-listener"
473 | version = "5.4.0"
474 | source = "registry+https://github.com/rust-lang/crates.io-index"
475 | checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae"
476 | dependencies = [
477 | "concurrent-queue",
478 | "parking",
479 | "pin-project-lite",
480 | ]
481 |
482 | [[package]]
483 | name = "event-listener-strategy"
484 | version = "0.5.4"
485 | source = "registry+https://github.com/rust-lang/crates.io-index"
486 | checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
487 | dependencies = [
488 | "event-listener",
489 | "pin-project-lite",
490 | ]
491 |
492 | [[package]]
493 | name = "fastrand"
494 | version = "2.3.0"
495 | source = "registry+https://github.com/rust-lang/crates.io-index"
496 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
497 |
498 | [[package]]
499 | name = "fnv"
500 | version = "1.0.7"
501 | source = "registry+https://github.com/rust-lang/crates.io-index"
502 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
503 |
504 | [[package]]
505 | name = "foreign-types"
506 | version = "0.5.0"
507 | source = "registry+https://github.com/rust-lang/crates.io-index"
508 | checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
509 | dependencies = [
510 | "foreign-types-macros",
511 | "foreign-types-shared",
512 | ]
513 |
514 | [[package]]
515 | name = "foreign-types-macros"
516 | version = "0.2.3"
517 | source = "registry+https://github.com/rust-lang/crates.io-index"
518 | checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
519 | dependencies = [
520 | "proc-macro2",
521 | "quote",
522 | "syn",
523 | ]
524 |
525 | [[package]]
526 | name = "foreign-types-shared"
527 | version = "0.3.1"
528 | source = "registry+https://github.com/rust-lang/crates.io-index"
529 | checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
530 |
531 | [[package]]
532 | name = "form_urlencoded"
533 | version = "1.2.1"
534 | source = "registry+https://github.com/rust-lang/crates.io-index"
535 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
536 | dependencies = [
537 | "percent-encoding",
538 | ]
539 |
540 | [[package]]
541 | name = "futures-core"
542 | version = "0.3.31"
543 | source = "registry+https://github.com/rust-lang/crates.io-index"
544 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
545 |
546 | [[package]]
547 | name = "futures-io"
548 | version = "0.3.31"
549 | source = "registry+https://github.com/rust-lang/crates.io-index"
550 | checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
551 |
552 | [[package]]
553 | name = "futures-lite"
554 | version = "2.6.0"
555 | source = "registry+https://github.com/rust-lang/crates.io-index"
556 | checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532"
557 | dependencies = [
558 | "fastrand",
559 | "futures-core",
560 | "futures-io",
561 | "parking",
562 | "pin-project-lite",
563 | ]
564 |
565 | [[package]]
566 | name = "getrandom"
567 | version = "0.3.3"
568 | source = "registry+https://github.com/rust-lang/crates.io-index"
569 | checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
570 | dependencies = [
571 | "cfg-if",
572 | "libc",
573 | "r-efi",
574 | "wasi",
575 | ]
576 |
577 | [[package]]
578 | name = "git2"
579 | version = "0.20.2"
580 | source = "registry+https://github.com/rust-lang/crates.io-index"
581 | checksum = "2deb07a133b1520dc1a5690e9bd08950108873d7ed5de38dcc74d3b5ebffa110"
582 | dependencies = [
583 | "bitflags",
584 | "libc",
585 | "libgit2-sys",
586 | "log",
587 | "url",
588 | ]
589 |
590 | [[package]]
591 | name = "heck"
592 | version = "0.5.0"
593 | source = "registry+https://github.com/rust-lang/crates.io-index"
594 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
595 |
596 | [[package]]
597 | name = "hermit-abi"
598 | version = "0.4.0"
599 | source = "registry+https://github.com/rust-lang/crates.io-index"
600 | checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"
601 |
602 | [[package]]
603 | name = "icu_collections"
604 | version = "2.0.0"
605 | source = "registry+https://github.com/rust-lang/crates.io-index"
606 | checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47"
607 | dependencies = [
608 | "displaydoc",
609 | "potential_utf",
610 | "yoke",
611 | "zerofrom",
612 | "zerovec",
613 | ]
614 |
615 | [[package]]
616 | name = "icu_locale_core"
617 | version = "2.0.0"
618 | source = "registry+https://github.com/rust-lang/crates.io-index"
619 | checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a"
620 | dependencies = [
621 | "displaydoc",
622 | "litemap",
623 | "tinystr",
624 | "writeable",
625 | "zerovec",
626 | ]
627 |
628 | [[package]]
629 | name = "icu_normalizer"
630 | version = "2.0.0"
631 | source = "registry+https://github.com/rust-lang/crates.io-index"
632 | checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979"
633 | dependencies = [
634 | "displaydoc",
635 | "icu_collections",
636 | "icu_normalizer_data",
637 | "icu_properties",
638 | "icu_provider",
639 | "smallvec",
640 | "zerovec",
641 | ]
642 |
643 | [[package]]
644 | name = "icu_normalizer_data"
645 | version = "2.0.0"
646 | source = "registry+https://github.com/rust-lang/crates.io-index"
647 | checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3"
648 |
649 | [[package]]
650 | name = "icu_properties"
651 | version = "2.0.1"
652 | source = "registry+https://github.com/rust-lang/crates.io-index"
653 | checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b"
654 | dependencies = [
655 | "displaydoc",
656 | "icu_collections",
657 | "icu_locale_core",
658 | "icu_properties_data",
659 | "icu_provider",
660 | "potential_utf",
661 | "zerotrie",
662 | "zerovec",
663 | ]
664 |
665 | [[package]]
666 | name = "icu_properties_data"
667 | version = "2.0.1"
668 | source = "registry+https://github.com/rust-lang/crates.io-index"
669 | checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632"
670 |
671 | [[package]]
672 | name = "icu_provider"
673 | version = "2.0.0"
674 | source = "registry+https://github.com/rust-lang/crates.io-index"
675 | checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af"
676 | dependencies = [
677 | "displaydoc",
678 | "icu_locale_core",
679 | "stable_deref_trait",
680 | "tinystr",
681 | "writeable",
682 | "yoke",
683 | "zerofrom",
684 | "zerotrie",
685 | "zerovec",
686 | ]
687 |
688 | [[package]]
689 | name = "ident_case"
690 | version = "1.0.1"
691 | source = "registry+https://github.com/rust-lang/crates.io-index"
692 | checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
693 |
694 | [[package]]
695 | name = "idna"
696 | version = "1.0.3"
697 | source = "registry+https://github.com/rust-lang/crates.io-index"
698 | checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
699 | dependencies = [
700 | "idna_adapter",
701 | "smallvec",
702 | "utf8_iter",
703 | ]
704 |
705 | [[package]]
706 | name = "idna_adapter"
707 | version = "1.2.1"
708 | source = "registry+https://github.com/rust-lang/crates.io-index"
709 | checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
710 | dependencies = [
711 | "icu_normalizer",
712 | "icu_properties",
713 | ]
714 |
715 | [[package]]
716 | name = "is_terminal_polyfill"
717 | version = "1.70.1"
718 | source = "registry+https://github.com/rust-lang/crates.io-index"
719 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
720 |
721 | [[package]]
722 | name = "jobserver"
723 | version = "0.1.33"
724 | source = "registry+https://github.com/rust-lang/crates.io-index"
725 | checksum = "38f262f097c174adebe41eb73d66ae9c06b2844fb0da69969647bbddd9b0538a"
726 | dependencies = [
727 | "getrandom",
728 | "libc",
729 | ]
730 |
731 | [[package]]
732 | name = "launchctl"
733 | version = "0.3.2"
734 | source = "registry+https://github.com/rust-lang/crates.io-index"
735 | checksum = "eed05bc4f899349f6354e3e6b2a5d91cffe94932deae9051977c0fa9bed1329f"
736 | dependencies = [
737 | "bon",
738 | ]
739 |
740 | [[package]]
741 | name = "lazy_static"
742 | version = "1.5.0"
743 | source = "registry+https://github.com/rust-lang/crates.io-index"
744 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
745 |
746 | [[package]]
747 | name = "libc"
748 | version = "0.2.177"
749 | source = "registry+https://github.com/rust-lang/crates.io-index"
750 | checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
751 |
752 | [[package]]
753 | name = "libgit2-sys"
754 | version = "0.18.1+1.9.0"
755 | source = "registry+https://github.com/rust-lang/crates.io-index"
756 | checksum = "e1dcb20f84ffcdd825c7a311ae347cce604a6f084a767dec4a4929829645290e"
757 | dependencies = [
758 | "cc",
759 | "libc",
760 | "libz-sys",
761 | "pkg-config",
762 | ]
763 |
764 | [[package]]
765 | name = "libz-sys"
766 | version = "1.1.22"
767 | source = "registry+https://github.com/rust-lang/crates.io-index"
768 | checksum = "8b70e7a7df205e92a1a4cd9aaae7898dac0aa555503cc0a649494d0d60e7651d"
769 | dependencies = [
770 | "cc",
771 | "libc",
772 | "pkg-config",
773 | "vcpkg",
774 | ]
775 |
776 | [[package]]
777 | name = "linux-raw-sys"
778 | version = "0.4.15"
779 | source = "registry+https://github.com/rust-lang/crates.io-index"
780 | checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
781 |
782 | [[package]]
783 | name = "litemap"
784 | version = "0.8.0"
785 | source = "registry+https://github.com/rust-lang/crates.io-index"
786 | checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956"
787 |
788 | [[package]]
789 | name = "log"
790 | version = "0.4.27"
791 | source = "registry+https://github.com/rust-lang/crates.io-index"
792 | checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
793 |
794 | [[package]]
795 | name = "nu-ansi-term"
796 | version = "0.50.1"
797 | source = "registry+https://github.com/rust-lang/crates.io-index"
798 | checksum = "d4a28e057d01f97e61255210fcff094d74ed0466038633e95017f5beb68e4399"
799 | dependencies = [
800 | "windows-sys 0.52.0",
801 | ]
802 |
803 | [[package]]
804 | name = "objc2"
805 | version = "0.6.3"
806 | source = "registry+https://github.com/rust-lang/crates.io-index"
807 | checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"
808 | dependencies = [
809 | "objc2-encode",
810 | ]
811 |
812 | [[package]]
813 | name = "objc2-app-kit"
814 | version = "0.3.2"
815 | source = "registry+https://github.com/rust-lang/crates.io-index"
816 | checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
817 | dependencies = [
818 | "bitflags",
819 | "block2",
820 | "libc",
821 | "objc2",
822 | "objc2-cloud-kit",
823 | "objc2-core-data",
824 | "objc2-core-foundation",
825 | "objc2-core-graphics",
826 | "objc2-core-image",
827 | "objc2-core-text",
828 | "objc2-core-video",
829 | "objc2-foundation",
830 | "objc2-quartz-core",
831 | ]
832 |
833 | [[package]]
834 | name = "objc2-cloud-kit"
835 | version = "0.3.2"
836 | source = "registry+https://github.com/rust-lang/crates.io-index"
837 | checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
838 | dependencies = [
839 | "bitflags",
840 | "objc2",
841 | "objc2-foundation",
842 | ]
843 |
844 | [[package]]
845 | name = "objc2-core-data"
846 | version = "0.3.2"
847 | source = "registry+https://github.com/rust-lang/crates.io-index"
848 | checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
849 | dependencies = [
850 | "bitflags",
851 | "objc2",
852 | "objc2-foundation",
853 | ]
854 |
855 | [[package]]
856 | name = "objc2-core-foundation"
857 | version = "0.3.2"
858 | source = "registry+https://github.com/rust-lang/crates.io-index"
859 | checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
860 | dependencies = [
861 | "bitflags",
862 | "dispatch2",
863 | "objc2",
864 | ]
865 |
866 | [[package]]
867 | name = "objc2-core-graphics"
868 | version = "0.3.2"
869 | source = "registry+https://github.com/rust-lang/crates.io-index"
870 | checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
871 | dependencies = [
872 | "bitflags",
873 | "dispatch2",
874 | "objc2",
875 | "objc2-core-foundation",
876 | "objc2-io-surface",
877 | ]
878 |
879 | [[package]]
880 | name = "objc2-core-image"
881 | version = "0.3.2"
882 | source = "registry+https://github.com/rust-lang/crates.io-index"
883 | checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
884 | dependencies = [
885 | "objc2",
886 | "objc2-foundation",
887 | ]
888 |
889 | [[package]]
890 | name = "objc2-core-text"
891 | version = "0.3.2"
892 | source = "registry+https://github.com/rust-lang/crates.io-index"
893 | checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
894 | dependencies = [
895 | "bitflags",
896 | "objc2",
897 | "objc2-core-foundation",
898 | "objc2-core-graphics",
899 | ]
900 |
901 | [[package]]
902 | name = "objc2-core-video"
903 | version = "0.3.2"
904 | source = "registry+https://github.com/rust-lang/crates.io-index"
905 | checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"
906 | dependencies = [
907 | "bitflags",
908 | "objc2",
909 | "objc2-core-foundation",
910 | "objc2-core-graphics",
911 | "objc2-io-surface",
912 | ]
913 |
914 | [[package]]
915 | name = "objc2-encode"
916 | version = "4.1.0"
917 | source = "registry+https://github.com/rust-lang/crates.io-index"
918 | checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
919 |
920 | [[package]]
921 | name = "objc2-foundation"
922 | version = "0.3.2"
923 | source = "registry+https://github.com/rust-lang/crates.io-index"
924 | checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
925 | dependencies = [
926 | "bitflags",
927 | "block2",
928 | "libc",
929 | "objc2",
930 | "objc2-core-foundation",
931 | ]
932 |
933 | [[package]]
934 | name = "objc2-io-surface"
935 | version = "0.3.2"
936 | source = "registry+https://github.com/rust-lang/crates.io-index"
937 | checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
938 | dependencies = [
939 | "bitflags",
940 | "objc2",
941 | "objc2-core-foundation",
942 | ]
943 |
944 | [[package]]
945 | name = "objc2-quartz-core"
946 | version = "0.3.2"
947 | source = "registry+https://github.com/rust-lang/crates.io-index"
948 | checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
949 | dependencies = [
950 | "bitflags",
951 | "objc2",
952 | "objc2-foundation",
953 | ]
954 |
955 | [[package]]
956 | name = "once_cell"
957 | version = "1.21.3"
958 | source = "registry+https://github.com/rust-lang/crates.io-index"
959 | checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
960 |
961 | [[package]]
962 | name = "once_cell_polyfill"
963 | version = "1.70.1"
964 | source = "registry+https://github.com/rust-lang/crates.io-index"
965 | checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
966 |
967 | [[package]]
968 | name = "parking"
969 | version = "2.2.1"
970 | source = "registry+https://github.com/rust-lang/crates.io-index"
971 | checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
972 |
973 | [[package]]
974 | name = "percent-encoding"
975 | version = "2.3.1"
976 | source = "registry+https://github.com/rust-lang/crates.io-index"
977 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
978 |
979 | [[package]]
980 | name = "pin-project-lite"
981 | version = "0.2.16"
982 | source = "registry+https://github.com/rust-lang/crates.io-index"
983 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
984 |
985 | [[package]]
986 | name = "piper"
987 | version = "0.2.4"
988 | source = "registry+https://github.com/rust-lang/crates.io-index"
989 | checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066"
990 | dependencies = [
991 | "atomic-waker",
992 | "fastrand",
993 | "futures-io",
994 | ]
995 |
996 | [[package]]
997 | name = "pkg-config"
998 | version = "0.3.32"
999 | source = "registry+https://github.com/rust-lang/crates.io-index"
1000 | checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
1001 |
1002 | [[package]]
1003 | name = "polling"
1004 | version = "3.7.4"
1005 | source = "registry+https://github.com/rust-lang/crates.io-index"
1006 | checksum = "a604568c3202727d1507653cb121dbd627a58684eb09a820fd746bee38b4442f"
1007 | dependencies = [
1008 | "cfg-if",
1009 | "concurrent-queue",
1010 | "hermit-abi",
1011 | "pin-project-lite",
1012 | "rustix",
1013 | "tracing",
1014 | "windows-sys 0.59.0",
1015 | ]
1016 |
1017 | [[package]]
1018 | name = "potential_utf"
1019 | version = "0.1.2"
1020 | source = "registry+https://github.com/rust-lang/crates.io-index"
1021 | checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
1022 | dependencies = [
1023 | "zerovec",
1024 | ]
1025 |
1026 | [[package]]
1027 | name = "prettyplease"
1028 | version = "0.2.32"
1029 | source = "registry+https://github.com/rust-lang/crates.io-index"
1030 | checksum = "664ec5419c51e34154eec046ebcba56312d5a2fc3b09a06da188e1ad21afadf6"
1031 | dependencies = [
1032 | "proc-macro2",
1033 | "syn",
1034 | ]
1035 |
1036 | [[package]]
1037 | name = "proc-macro2"
1038 | version = "1.0.95"
1039 | source = "registry+https://github.com/rust-lang/crates.io-index"
1040 | checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
1041 | dependencies = [
1042 | "unicode-ident",
1043 | ]
1044 |
1045 | [[package]]
1046 | name = "quote"
1047 | version = "1.0.40"
1048 | source = "registry+https://github.com/rust-lang/crates.io-index"
1049 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
1050 | dependencies = [
1051 | "proc-macro2",
1052 | ]
1053 |
1054 | [[package]]
1055 | name = "r-efi"
1056 | version = "5.2.0"
1057 | source = "registry+https://github.com/rust-lang/crates.io-index"
1058 | checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5"
1059 |
1060 | [[package]]
1061 | name = "rustix"
1062 | version = "0.38.44"
1063 | source = "registry+https://github.com/rust-lang/crates.io-index"
1064 | checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
1065 | dependencies = [
1066 | "bitflags",
1067 | "errno",
1068 | "libc",
1069 | "linux-raw-sys",
1070 | "windows-sys 0.59.0",
1071 | ]
1072 |
1073 | [[package]]
1074 | name = "rustversion"
1075 | version = "1.0.21"
1076 | source = "registry+https://github.com/rust-lang/crates.io-index"
1077 | checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
1078 |
1079 | [[package]]
1080 | name = "serde"
1081 | version = "1.0.219"
1082 | source = "registry+https://github.com/rust-lang/crates.io-index"
1083 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
1084 | dependencies = [
1085 | "serde_derive",
1086 | ]
1087 |
1088 | [[package]]
1089 | name = "serde_derive"
1090 | version = "1.0.219"
1091 | source = "registry+https://github.com/rust-lang/crates.io-index"
1092 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
1093 | dependencies = [
1094 | "proc-macro2",
1095 | "quote",
1096 | "syn",
1097 | ]
1098 |
1099 | [[package]]
1100 | name = "sharded-slab"
1101 | version = "0.1.7"
1102 | source = "registry+https://github.com/rust-lang/crates.io-index"
1103 | checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
1104 | dependencies = [
1105 | "lazy_static",
1106 | ]
1107 |
1108 | [[package]]
1109 | name = "shlex"
1110 | version = "1.3.0"
1111 | source = "registry+https://github.com/rust-lang/crates.io-index"
1112 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1113 |
1114 | [[package]]
1115 | name = "signal-hook-registry"
1116 | version = "1.4.5"
1117 | source = "registry+https://github.com/rust-lang/crates.io-index"
1118 | checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410"
1119 | dependencies = [
1120 | "libc",
1121 | ]
1122 |
1123 | [[package]]
1124 | name = "slab"
1125 | version = "0.4.9"
1126 | source = "registry+https://github.com/rust-lang/crates.io-index"
1127 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
1128 | dependencies = [
1129 | "autocfg",
1130 | ]
1131 |
1132 | [[package]]
1133 | name = "smallvec"
1134 | version = "1.15.0"
1135 | source = "registry+https://github.com/rust-lang/crates.io-index"
1136 | checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9"
1137 |
1138 | [[package]]
1139 | name = "smol"
1140 | version = "2.0.2"
1141 | source = "registry+https://github.com/rust-lang/crates.io-index"
1142 | checksum = "a33bd3e260892199c3ccfc487c88b2da2265080acb316cd920da72fdfd7c599f"
1143 | dependencies = [
1144 | "async-channel",
1145 | "async-executor",
1146 | "async-fs",
1147 | "async-io",
1148 | "async-lock",
1149 | "async-net",
1150 | "async-process",
1151 | "blocking",
1152 | "futures-lite",
1153 | ]
1154 |
1155 | [[package]]
1156 | name = "stable_deref_trait"
1157 | version = "1.2.0"
1158 | source = "registry+https://github.com/rust-lang/crates.io-index"
1159 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
1160 |
1161 | [[package]]
1162 | name = "strsim"
1163 | version = "0.11.1"
1164 | source = "registry+https://github.com/rust-lang/crates.io-index"
1165 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1166 |
1167 | [[package]]
1168 | name = "syn"
1169 | version = "2.0.101"
1170 | source = "registry+https://github.com/rust-lang/crates.io-index"
1171 | checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
1172 | dependencies = [
1173 | "proc-macro2",
1174 | "quote",
1175 | "unicode-ident",
1176 | ]
1177 |
1178 | [[package]]
1179 | name = "synstructure"
1180 | version = "0.13.2"
1181 | source = "registry+https://github.com/rust-lang/crates.io-index"
1182 | checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
1183 | dependencies = [
1184 | "proc-macro2",
1185 | "quote",
1186 | "syn",
1187 | ]
1188 |
1189 | [[package]]
1190 | name = "thiserror"
1191 | version = "2.0.17"
1192 | source = "registry+https://github.com/rust-lang/crates.io-index"
1193 | checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
1194 | dependencies = [
1195 | "thiserror-impl",
1196 | ]
1197 |
1198 | [[package]]
1199 | name = "thiserror-impl"
1200 | version = "2.0.17"
1201 | source = "registry+https://github.com/rust-lang/crates.io-index"
1202 | checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
1203 | dependencies = [
1204 | "proc-macro2",
1205 | "quote",
1206 | "syn",
1207 | ]
1208 |
1209 | [[package]]
1210 | name = "thread_local"
1211 | version = "1.1.8"
1212 | source = "registry+https://github.com/rust-lang/crates.io-index"
1213 | checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"
1214 | dependencies = [
1215 | "cfg-if",
1216 | "once_cell",
1217 | ]
1218 |
1219 | [[package]]
1220 | name = "tinystr"
1221 | version = "0.8.1"
1222 | source = "registry+https://github.com/rust-lang/crates.io-index"
1223 | checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b"
1224 | dependencies = [
1225 | "displaydoc",
1226 | "zerovec",
1227 | ]
1228 |
1229 | [[package]]
1230 | name = "tracing"
1231 | version = "0.1.43"
1232 | source = "registry+https://github.com/rust-lang/crates.io-index"
1233 | checksum = "2d15d90a0b5c19378952d479dc858407149d7bb45a14de0142f6c534b16fc647"
1234 | dependencies = [
1235 | "pin-project-lite",
1236 | "tracing-attributes",
1237 | "tracing-core",
1238 | ]
1239 |
1240 | [[package]]
1241 | name = "tracing-attributes"
1242 | version = "0.1.31"
1243 | source = "registry+https://github.com/rust-lang/crates.io-index"
1244 | checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
1245 | dependencies = [
1246 | "proc-macro2",
1247 | "quote",
1248 | "syn",
1249 | ]
1250 |
1251 | [[package]]
1252 | name = "tracing-core"
1253 | version = "0.1.35"
1254 | source = "registry+https://github.com/rust-lang/crates.io-index"
1255 | checksum = "7a04e24fab5c89c6a36eb8558c9656f30d81de51dfa4d3b45f26b21d61fa0a6c"
1256 | dependencies = [
1257 | "once_cell",
1258 | "valuable",
1259 | ]
1260 |
1261 | [[package]]
1262 | name = "tracing-log"
1263 | version = "0.2.0"
1264 | source = "registry+https://github.com/rust-lang/crates.io-index"
1265 | checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
1266 | dependencies = [
1267 | "log",
1268 | "once_cell",
1269 | "tracing-core",
1270 | ]
1271 |
1272 | [[package]]
1273 | name = "tracing-subscriber"
1274 | version = "0.3.22"
1275 | source = "registry+https://github.com/rust-lang/crates.io-index"
1276 | checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e"
1277 | dependencies = [
1278 | "nu-ansi-term",
1279 | "sharded-slab",
1280 | "smallvec",
1281 | "thread_local",
1282 | "tracing-core",
1283 | "tracing-log",
1284 | ]
1285 |
1286 | [[package]]
1287 | name = "unicode-ident"
1288 | version = "1.0.18"
1289 | source = "registry+https://github.com/rust-lang/crates.io-index"
1290 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
1291 |
1292 | [[package]]
1293 | name = "url"
1294 | version = "2.5.4"
1295 | source = "registry+https://github.com/rust-lang/crates.io-index"
1296 | checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
1297 | dependencies = [
1298 | "form_urlencoded",
1299 | "idna",
1300 | "percent-encoding",
1301 | ]
1302 |
1303 | [[package]]
1304 | name = "utf8_iter"
1305 | version = "1.0.4"
1306 | source = "registry+https://github.com/rust-lang/crates.io-index"
1307 | checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
1308 |
1309 | [[package]]
1310 | name = "utf8parse"
1311 | version = "0.2.2"
1312 | source = "registry+https://github.com/rust-lang/crates.io-index"
1313 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1314 |
1315 | [[package]]
1316 | name = "valuable"
1317 | version = "0.1.1"
1318 | source = "registry+https://github.com/rust-lang/crates.io-index"
1319 | checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
1320 |
1321 | [[package]]
1322 | name = "vcpkg"
1323 | version = "0.2.15"
1324 | source = "registry+https://github.com/rust-lang/crates.io-index"
1325 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
1326 |
1327 | [[package]]
1328 | name = "wasi"
1329 | version = "0.14.2+wasi-0.2.4"
1330 | source = "registry+https://github.com/rust-lang/crates.io-index"
1331 | checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
1332 | dependencies = [
1333 | "wit-bindgen-rt",
1334 | ]
1335 |
1336 | [[package]]
1337 | name = "windows-sys"
1338 | version = "0.52.0"
1339 | source = "registry+https://github.com/rust-lang/crates.io-index"
1340 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1341 | dependencies = [
1342 | "windows-targets",
1343 | ]
1344 |
1345 | [[package]]
1346 | name = "windows-sys"
1347 | version = "0.59.0"
1348 | source = "registry+https://github.com/rust-lang/crates.io-index"
1349 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1350 | dependencies = [
1351 | "windows-targets",
1352 | ]
1353 |
1354 | [[package]]
1355 | name = "windows-targets"
1356 | version = "0.52.6"
1357 | source = "registry+https://github.com/rust-lang/crates.io-index"
1358 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1359 | dependencies = [
1360 | "windows_aarch64_gnullvm",
1361 | "windows_aarch64_msvc",
1362 | "windows_i686_gnu",
1363 | "windows_i686_gnullvm",
1364 | "windows_i686_msvc",
1365 | "windows_x86_64_gnu",
1366 | "windows_x86_64_gnullvm",
1367 | "windows_x86_64_msvc",
1368 | ]
1369 |
1370 | [[package]]
1371 | name = "windows_aarch64_gnullvm"
1372 | version = "0.52.6"
1373 | source = "registry+https://github.com/rust-lang/crates.io-index"
1374 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1375 |
1376 | [[package]]
1377 | name = "windows_aarch64_msvc"
1378 | version = "0.52.6"
1379 | source = "registry+https://github.com/rust-lang/crates.io-index"
1380 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1381 |
1382 | [[package]]
1383 | name = "windows_i686_gnu"
1384 | version = "0.52.6"
1385 | source = "registry+https://github.com/rust-lang/crates.io-index"
1386 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1387 |
1388 | [[package]]
1389 | name = "windows_i686_gnullvm"
1390 | version = "0.52.6"
1391 | source = "registry+https://github.com/rust-lang/crates.io-index"
1392 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1393 |
1394 | [[package]]
1395 | name = "windows_i686_msvc"
1396 | version = "0.52.6"
1397 | source = "registry+https://github.com/rust-lang/crates.io-index"
1398 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1399 |
1400 | [[package]]
1401 | name = "windows_x86_64_gnu"
1402 | version = "0.52.6"
1403 | source = "registry+https://github.com/rust-lang/crates.io-index"
1404 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1405 |
1406 | [[package]]
1407 | name = "windows_x86_64_gnullvm"
1408 | version = "0.52.6"
1409 | source = "registry+https://github.com/rust-lang/crates.io-index"
1410 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1411 |
1412 | [[package]]
1413 | name = "windows_x86_64_msvc"
1414 | version = "0.52.6"
1415 | source = "registry+https://github.com/rust-lang/crates.io-index"
1416 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1417 |
1418 | [[package]]
1419 | name = "wit-bindgen-rt"
1420 | version = "0.39.0"
1421 | source = "registry+https://github.com/rust-lang/crates.io-index"
1422 | checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
1423 | dependencies = [
1424 | "bitflags",
1425 | ]
1426 |
1427 | [[package]]
1428 | name = "writeable"
1429 | version = "0.6.1"
1430 | source = "registry+https://github.com/rust-lang/crates.io-index"
1431 | checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
1432 |
1433 | [[package]]
1434 | name = "yoke"
1435 | version = "0.8.0"
1436 | source = "registry+https://github.com/rust-lang/crates.io-index"
1437 | checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc"
1438 | dependencies = [
1439 | "serde",
1440 | "stable_deref_trait",
1441 | "yoke-derive",
1442 | "zerofrom",
1443 | ]
1444 |
1445 | [[package]]
1446 | name = "yoke-derive"
1447 | version = "0.8.0"
1448 | source = "registry+https://github.com/rust-lang/crates.io-index"
1449 | checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
1450 | dependencies = [
1451 | "proc-macro2",
1452 | "quote",
1453 | "syn",
1454 | "synstructure",
1455 | ]
1456 |
1457 | [[package]]
1458 | name = "zerofrom"
1459 | version = "0.1.6"
1460 | source = "registry+https://github.com/rust-lang/crates.io-index"
1461 | checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
1462 | dependencies = [
1463 | "zerofrom-derive",
1464 | ]
1465 |
1466 | [[package]]
1467 | name = "zerofrom-derive"
1468 | version = "0.1.6"
1469 | source = "registry+https://github.com/rust-lang/crates.io-index"
1470 | checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
1471 | dependencies = [
1472 | "proc-macro2",
1473 | "quote",
1474 | "syn",
1475 | "synstructure",
1476 | ]
1477 |
1478 | [[package]]
1479 | name = "zerotrie"
1480 | version = "0.2.2"
1481 | source = "registry+https://github.com/rust-lang/crates.io-index"
1482 | checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595"
1483 | dependencies = [
1484 | "displaydoc",
1485 | "yoke",
1486 | "zerofrom",
1487 | ]
1488 |
1489 | [[package]]
1490 | name = "zerovec"
1491 | version = "0.11.2"
1492 | source = "registry+https://github.com/rust-lang/crates.io-index"
1493 | checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428"
1494 | dependencies = [
1495 | "yoke",
1496 | "zerofrom",
1497 | "zerovec-derive",
1498 | ]
1499 |
1500 | [[package]]
1501 | name = "zerovec-derive"
1502 | version = "0.11.1"
1503 | source = "registry+https://github.com/rust-lang/crates.io-index"
1504 | checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
1505 | dependencies = [
1506 | "proc-macro2",
1507 | "quote",
1508 | "syn",
1509 | ]
1510 |
--------------------------------------------------------------------------------