├── .github └── workflows │ └── build.yml ├── .gitignore ├── LICENSE ├── README.md ├── app ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── README.md └── src │ ├── ai │ ├── generate.rs │ └── mod.rs │ ├── cli │ ├── interface.rs │ └── mod.rs │ ├── constants.rs │ ├── git │ ├── commit.rs │ ├── diff.rs │ └── mod.rs │ ├── lib.rs │ ├── main.rs │ └── utils │ ├── config.rs │ └── mod.rs └── server ├── .dockerignore ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── README.md ├── build.sh ├── compile.yml ├── docker-compose.yml ├── sample.env └── src ├── errors.rs ├── lib.rs ├── main.rs └── routes ├── commit_message.rs └── mod.rs /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build and Package 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | paths: 8 | - 'app/**' # Only trigger if files in the app folder change 9 | 10 | jobs: 11 | build: 12 | runs-on: ${{ matrix.os }} 13 | continue-on-error: true 14 | strategy: 15 | fail-fast: false 16 | matrix: 17 | os: [ubuntu-latest, windows-latest, macos-latest, archlinux-latest] 18 | include: 19 | - os: ubuntu-latest 20 | target: x86_64-unknown-linux-gnu 21 | package_type: deb 22 | - os: windows-latest 23 | target: x86_64-pc-windows-gnu 24 | package_type: windows 25 | - os: macos-latest 26 | target: aarch64-apple-darwin 27 | package_type: mac 28 | - os: archlinux-latest 29 | target: x86_64-unknown-linux-gnu 30 | package_type: archzst 31 | 32 | steps: 33 | - name: Checkout code 34 | uses: actions/checkout@v4 35 | 36 | - name: Install Rust toolchain 37 | uses: dtolnay/rust-toolchain@stable 38 | with: 39 | target: ${{ matrix.target }} 40 | 41 | - name: Cache cargo dependencies 42 | uses: actions/cache@v4 43 | with: 44 | path: | 45 | ~/.cargo/bin/ 46 | ~/.cargo/registry/index/ 47 | ~/.cargo/registry/cache/ 48 | ~/.cargo/git/db/ 49 | target/ 50 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} 51 | restore-keys: | 52 | ${{ runner.os }}-cargo- 53 | 54 | - name: Install dependencies (Linux - Ubuntu) 55 | if: matrix.os == 'ubuntu-latest' 56 | run: | 57 | sudo apt-get update 58 | sudo apt-get install -y dpkg-dev libssl-dev pkg-config 59 | 60 | - name: Install dependencies (Linux - Arch) 61 | if: matrix.os == 'archlinux-latest' 62 | run: | 63 | sudo pacman -Syu --noconfirm 64 | sudo pacman -S --needed --noconfirm base-devel openssl pkg-config zstd 65 | 66 | - name: Install dependencies (macOS) 67 | if: matrix.os == 'macos-latest' 68 | run: | 69 | brew update 70 | brew install openssl@3 rustup-init pkg-config llvm zstd 71 | echo "OPENSSL_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV 72 | echo "OPENSSL_LIB_DIR=$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV 73 | echo "OPENSSL_INCLUDE_DIR=$(brew --prefix openssl@3)/include" >> $GITHUB_ENV 74 | echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV 75 | echo "CC=$(brew --prefix llvm)/bin/clang" >> $GITHUB_ENV 76 | echo "CXX=$(brew --prefix llvm)/bin/clang++" >> $GITHUB_ENV 77 | 78 | - name: Install dependencies (Windows) 79 | if: matrix.os == 'windows-latest' 80 | run: | 81 | choco install wixtoolset -y 82 | choco install openssl -y 83 | choco install zstd -y 84 | 85 | 86 | - name: Build Rust project (Windows/Linux) 87 | if: matrix.package_type != 'mac' 88 | run: | 89 | cargo build --release --locked --target ${{ matrix.target }} --manifest-path app/Cargo.toml 90 | env: 91 | PKG_CONFIG_ALLOW_CROSS: 1 92 | 93 | - name: Build Rust project (macOS) 94 | if: matrix.package_type == 'mac' 95 | run: | 96 | cargo build --release --locked --target ${{ matrix.target }} --manifest-path app/Cargo.toml 97 | env: 98 | PKG_CONFIG_ALLOW_CROSS: 1 99 | OPENSSL_DIR: ${{ env.OPENSSL_DIR }} 100 | OPENSSL_LIB_DIR: ${{ env.OPENSSL_LIB_DIR }} 101 | OPENSSL_INCLUDE_DIR: ${{ env.OPENSSL_INCLUDE_DIR }} 102 | 103 | 104 | - name: Package Debian (.deb) 105 | if: matrix.package_type == 'deb' 106 | run: | 107 | cargo install cargo-deb --force 108 | cargo deb --target ${{ matrix.target }} --manifest-path app/Cargo.toml 109 | mkdir -p artifacts 110 | mv app/target/${{ matrix.target }}/debian/*.deb artifacts/ 111 | 112 | env: 113 | DEB_BUILD_OPTIONS: nocheck 114 | 115 | - name: Package Arch Linux (.tar.zst) 116 | if: matrix.package_type == 'archzst' 117 | run: | 118 | cargo install cargo-makepkg --force 119 | cd app 120 | # Create a basic PKGBUILD 121 | echo "pkgname='gitswift'" > PKGBUILD 122 | echo "pkgver=1.0" >> PKGBUILD 123 | echo "pkgrel=1" >> PKGBUILD 124 | echo "pkgdesc='A Git-Swift application'" >> PKGBUILD 125 | echo "arch=('any')" >> PKGBUILD 126 | echo "license=('MIT')" >> PKGBUILD 127 | echo "depends=()" >> PKGBUILD 128 | echo "makedepends=('rust')" >> PKGBUILD 129 | echo "source=(\"gitswift-$pkgver.tar.gz::$(pwd)/gitswift-$pkgver.tar.gz\")" >> PKGBUILD 130 | echo "sha256sums=('SKIP')" >> PKGBUILD 131 | echo "" >> PKGBUILD 132 | echo "package() {" >> PKGBUILD 133 | echo " install -Dm755 \"\$(pwd)/target/${{ matrix.target }}/release/gitswift\" \"\$pkgdir/usr/bin/gitswift\"" >> PKGBUILD 134 | echo "}" >> PKGBUILD 135 | 136 | # Create a dummy tar.gz for makepkg 137 | mkdir -p gitswift-1.0 138 | cp target/${{ matrix.target }}/release/gitswift gitswift-1.0/ 139 | tar -czvf gitswift-1.0.tar.gz gitswift-1.0 140 | 141 | makepkg --nocheck --config "options=(!strip)" --compress zstd 142 | 143 | mkdir -p artifacts 144 | mv *.zst artifacts/ 145 | cd .. 146 | 147 | - name: Package Windows (.exe/.msi) 148 | if: matrix.package_type == 'windows' 149 | run: | 150 | cargo install cargo-wix --force 151 | cd app 152 | cargo wix init 153 | cargo wix 154 | cd .. 155 | mkdir -p artifacts 156 | mv app/target/wix/*.msi artifacts/ 157 | shell: bash 158 | 159 | - name: Package macOS (.pkg) 160 | if: matrix.package_type == 'mac' 161 | run: | 162 | mkdir -p ~/gitswift-installer/user/local/bin 163 | mkdir -p artifacts 164 | cp app/target/${{ matrix.target }}/release/gitswift ~/gitswift-installer/user/local/bin/ 165 | pkgbuild --identifier com.singhropar.gitswift --version 1.0 --install-location / --root ~/gitswift-installer artifacts/gitswift.pkg 166 | env: 167 | BUNDLE_ID: com.singhropar.gitswift 168 | BUNDLE_NAME: gitswift 169 | MACOSX_DEPLOYMENT_TARGET: 11.0 170 | OPENSSL_DIR: ${{ env.OPENSSL_DIR }} 171 | OPENSSL_LIB_DIR: ${{ env.OPENSSL_LIB_DIR }} 172 | OPENSSL_INCLUDE_DIR: ${{ env.OPENSSL_INCLUDE_DIR }} 173 | CC: ${{ env.CC }} 174 | CXX: ${{ env.CXX }} 175 | 176 | 177 | - name: Upload Artifacts 178 | uses: actions/upload-artifact@v4 179 | with: 180 | name: packages-${{ matrix.os }} 181 | path: artifacts/* -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /server/target 2 | /git-swift/target 3 | .env 4 | /server/.env 5 | gitswift -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\deff0 2 | {\fonttbl {\f0 Arial;}} 3 | \pard\f0\fs24 4 | Copyright (c) 2025 SinghRopar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 7 | 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 11 | \par 12 | 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Git-Swift 2 | 3 | Git-Swift is a solution powering developers to don't worry at all about version control as our advanced AI solution is the one handling all that work. 4 | 5 | ## Features 6 | 7 | - Automatically detects repository changes 8 | - Generates multiple commit message options using AI 9 | - Follows conventional commit message format 10 | - Interactive selection of preferred message 11 | - Handles commit and push operations 12 | 13 | ## Prerequisites 14 | 15 | - Rust (latest stable) 16 | - Git 17 | - Groq API key 18 | 19 | ## Installation 20 | 21 | 1. Clone the repository: 22 | ```sh 23 | git clone https://github.com/its-me-ojas/git-swift.git 24 | cd git-swift 25 | ``` 26 | 27 | 2. Start the server: 28 | ```sh 29 | cd server 30 | docker compose up -d 31 | ``` 32 | 33 | 3. Build and install the CLI: 34 | ```sh 35 | cd ../git-swift 36 | cargo install --path . 37 | ``` 38 | 39 | ## Usage 40 | 41 | 1. Make changes to your repository 42 | 2. Run: 43 | ```sh 44 | git-swift push 45 | ``` 46 | 3. Select preferred commit message 47 | 4. Changes will be committed and pushed 48 | 49 | ## Environment Variables 50 | 51 | Create a `.env` file in the server directory: 52 | ```sh 53 | GROQ_API_KEY=your_api_key_here 54 | PORT=5000 55 | ``` 56 | 57 | ## Authors 58 | 59 | - Ojas - [@its-me-ojas](https://github.com/its-me-ojas) 60 | - Tarush Mohindru - [@tarushmohindru](https://github.com/tarushmohindru) 61 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | target/ -------------------------------------------------------------------------------- /app/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 = "addr2line" 7 | version = "0.24.2" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler2" 16 | version = "2.0.0" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 19 | 20 | [[package]] 21 | name = "anstream" 22 | version = "0.6.18" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" 25 | dependencies = [ 26 | "anstyle", 27 | "anstyle-parse", 28 | "anstyle-query", 29 | "anstyle-wincon", 30 | "colorchoice", 31 | "is_terminal_polyfill", 32 | "utf8parse", 33 | ] 34 | 35 | [[package]] 36 | name = "anstyle" 37 | version = "1.0.10" 38 | source = "registry+https://github.com/rust-lang/crates.io-index" 39 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" 40 | 41 | [[package]] 42 | name = "anstyle-parse" 43 | version = "0.2.6" 44 | source = "registry+https://github.com/rust-lang/crates.io-index" 45 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" 46 | dependencies = [ 47 | "utf8parse", 48 | ] 49 | 50 | [[package]] 51 | name = "anstyle-query" 52 | version = "1.1.2" 53 | source = "registry+https://github.com/rust-lang/crates.io-index" 54 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" 55 | dependencies = [ 56 | "windows-sys 0.59.0", 57 | ] 58 | 59 | [[package]] 60 | name = "anstyle-wincon" 61 | version = "3.0.6" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" 64 | dependencies = [ 65 | "anstyle", 66 | "windows-sys 0.59.0", 67 | ] 68 | 69 | [[package]] 70 | name = "atomic-waker" 71 | version = "1.1.2" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 74 | 75 | [[package]] 76 | name = "autocfg" 77 | version = "1.4.0" 78 | source = "registry+https://github.com/rust-lang/crates.io-index" 79 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 80 | 81 | [[package]] 82 | name = "backtrace" 83 | version = "0.3.74" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" 86 | dependencies = [ 87 | "addr2line", 88 | "cfg-if", 89 | "libc", 90 | "miniz_oxide", 91 | "object", 92 | "rustc-demangle", 93 | "windows-targets 0.52.6", 94 | ] 95 | 96 | [[package]] 97 | name = "base64" 98 | version = "0.22.1" 99 | source = "registry+https://github.com/rust-lang/crates.io-index" 100 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 101 | 102 | [[package]] 103 | name = "bitflags" 104 | version = "2.7.0" 105 | source = "registry+https://github.com/rust-lang/crates.io-index" 106 | checksum = "1be3f42a67d6d345ecd59f675f3f012d6974981560836e938c22b424b85ce1be" 107 | 108 | [[package]] 109 | name = "bumpalo" 110 | version = "3.16.0" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" 113 | 114 | [[package]] 115 | name = "bytes" 116 | version = "1.9.0" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" 119 | 120 | [[package]] 121 | name = "cc" 122 | version = "1.2.7" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7" 125 | dependencies = [ 126 | "jobserver", 127 | "libc", 128 | "shlex", 129 | ] 130 | 131 | [[package]] 132 | name = "cfg-if" 133 | version = "1.0.0" 134 | source = "registry+https://github.com/rust-lang/crates.io-index" 135 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 136 | 137 | [[package]] 138 | name = "clap" 139 | version = "4.5.26" 140 | source = "registry+https://github.com/rust-lang/crates.io-index" 141 | checksum = "a8eb5e908ef3a6efbe1ed62520fb7287959888c88485abe072543190ecc66783" 142 | dependencies = [ 143 | "clap_builder", 144 | ] 145 | 146 | [[package]] 147 | name = "clap_builder" 148 | version = "4.5.26" 149 | source = "registry+https://github.com/rust-lang/crates.io-index" 150 | checksum = "96b01801b5fc6a0a232407abc821660c9c6d25a1cafc0d4f85f29fb8d9afc121" 151 | dependencies = [ 152 | "anstream", 153 | "anstyle", 154 | "clap_lex", 155 | "strsim", 156 | ] 157 | 158 | [[package]] 159 | name = "clap_lex" 160 | version = "0.7.4" 161 | source = "registry+https://github.com/rust-lang/crates.io-index" 162 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" 163 | 164 | [[package]] 165 | name = "colorchoice" 166 | version = "1.0.3" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" 169 | 170 | [[package]] 171 | name = "core-foundation" 172 | version = "0.9.4" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 175 | dependencies = [ 176 | "core-foundation-sys", 177 | "libc", 178 | ] 179 | 180 | [[package]] 181 | name = "core-foundation-sys" 182 | version = "0.8.7" 183 | source = "registry+https://github.com/rust-lang/crates.io-index" 184 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 185 | 186 | [[package]] 187 | name = "dirs" 188 | version = "5.0.1" 189 | source = "registry+https://github.com/rust-lang/crates.io-index" 190 | checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" 191 | dependencies = [ 192 | "dirs-sys", 193 | ] 194 | 195 | [[package]] 196 | name = "dirs-sys" 197 | version = "0.4.1" 198 | source = "registry+https://github.com/rust-lang/crates.io-index" 199 | checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" 200 | dependencies = [ 201 | "libc", 202 | "option-ext", 203 | "redox_users", 204 | "windows-sys 0.48.0", 205 | ] 206 | 207 | [[package]] 208 | name = "displaydoc" 209 | version = "0.2.5" 210 | source = "registry+https://github.com/rust-lang/crates.io-index" 211 | checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" 212 | dependencies = [ 213 | "proc-macro2", 214 | "quote", 215 | "syn", 216 | ] 217 | 218 | [[package]] 219 | name = "dotenv" 220 | version = "0.15.0" 221 | source = "registry+https://github.com/rust-lang/crates.io-index" 222 | checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" 223 | 224 | [[package]] 225 | name = "encoding_rs" 226 | version = "0.8.35" 227 | source = "registry+https://github.com/rust-lang/crates.io-index" 228 | checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 229 | dependencies = [ 230 | "cfg-if", 231 | ] 232 | 233 | [[package]] 234 | name = "equivalent" 235 | version = "1.0.1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 238 | 239 | [[package]] 240 | name = "errno" 241 | version = "0.3.10" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" 244 | dependencies = [ 245 | "libc", 246 | "windows-sys 0.59.0", 247 | ] 248 | 249 | [[package]] 250 | name = "fastrand" 251 | version = "2.3.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 254 | 255 | [[package]] 256 | name = "fnv" 257 | version = "1.0.7" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 260 | 261 | [[package]] 262 | name = "foreign-types" 263 | version = "0.3.2" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 266 | dependencies = [ 267 | "foreign-types-shared", 268 | ] 269 | 270 | [[package]] 271 | name = "foreign-types-shared" 272 | version = "0.1.1" 273 | source = "registry+https://github.com/rust-lang/crates.io-index" 274 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 275 | 276 | [[package]] 277 | name = "form_urlencoded" 278 | version = "1.2.1" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 281 | dependencies = [ 282 | "percent-encoding", 283 | ] 284 | 285 | [[package]] 286 | name = "futures-channel" 287 | version = "0.3.31" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 290 | dependencies = [ 291 | "futures-core", 292 | ] 293 | 294 | [[package]] 295 | name = "futures-core" 296 | version = "0.3.31" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 299 | 300 | [[package]] 301 | name = "futures-sink" 302 | version = "0.3.31" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 305 | 306 | [[package]] 307 | name = "futures-task" 308 | version = "0.3.31" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 311 | 312 | [[package]] 313 | name = "futures-util" 314 | version = "0.3.31" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 317 | dependencies = [ 318 | "futures-core", 319 | "futures-task", 320 | "pin-project-lite", 321 | "pin-utils", 322 | ] 323 | 324 | [[package]] 325 | name = "gemini-rs" 326 | version = "0.4.2" 327 | source = "registry+https://github.com/rust-lang/crates.io-index" 328 | checksum = "f8bcddea0b28e3220824683f6e622d2ffb4cb234e9a6edd2a3cfa6840c99244b" 329 | dependencies = [ 330 | "json", 331 | "reqwest", 332 | "thiserror", 333 | "tokio", 334 | ] 335 | 336 | [[package]] 337 | name = "getrandom" 338 | version = "0.2.15" 339 | source = "registry+https://github.com/rust-lang/crates.io-index" 340 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" 341 | dependencies = [ 342 | "cfg-if", 343 | "libc", 344 | "wasi", 345 | ] 346 | 347 | [[package]] 348 | name = "gimli" 349 | version = "0.31.1" 350 | source = "registry+https://github.com/rust-lang/crates.io-index" 351 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 352 | 353 | [[package]] 354 | name = "git2" 355 | version = "0.20.0" 356 | source = "registry+https://github.com/rust-lang/crates.io-index" 357 | checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff" 358 | dependencies = [ 359 | "bitflags", 360 | "libc", 361 | "libgit2-sys", 362 | "log", 363 | "openssl-probe", 364 | "openssl-sys", 365 | "url", 366 | ] 367 | 368 | [[package]] 369 | name = "gitswift" 370 | version = "0.1.0" 371 | dependencies = [ 372 | "clap", 373 | "dirs", 374 | "dotenv", 375 | "gemini-rs", 376 | "git2", 377 | "reqwest", 378 | "serde", 379 | "tokio", 380 | ] 381 | 382 | [[package]] 383 | name = "h2" 384 | version = "0.4.7" 385 | source = "registry+https://github.com/rust-lang/crates.io-index" 386 | checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" 387 | dependencies = [ 388 | "atomic-waker", 389 | "bytes", 390 | "fnv", 391 | "futures-core", 392 | "futures-sink", 393 | "http", 394 | "indexmap", 395 | "slab", 396 | "tokio", 397 | "tokio-util", 398 | "tracing", 399 | ] 400 | 401 | [[package]] 402 | name = "hashbrown" 403 | version = "0.15.2" 404 | source = "registry+https://github.com/rust-lang/crates.io-index" 405 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" 406 | 407 | [[package]] 408 | name = "http" 409 | version = "1.2.0" 410 | source = "registry+https://github.com/rust-lang/crates.io-index" 411 | checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" 412 | dependencies = [ 413 | "bytes", 414 | "fnv", 415 | "itoa", 416 | ] 417 | 418 | [[package]] 419 | name = "http-body" 420 | version = "1.0.1" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 423 | dependencies = [ 424 | "bytes", 425 | "http", 426 | ] 427 | 428 | [[package]] 429 | name = "http-body-util" 430 | version = "0.1.2" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" 433 | dependencies = [ 434 | "bytes", 435 | "futures-util", 436 | "http", 437 | "http-body", 438 | "pin-project-lite", 439 | ] 440 | 441 | [[package]] 442 | name = "httparse" 443 | version = "1.9.5" 444 | source = "registry+https://github.com/rust-lang/crates.io-index" 445 | checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" 446 | 447 | [[package]] 448 | name = "hyper" 449 | version = "1.5.2" 450 | source = "registry+https://github.com/rust-lang/crates.io-index" 451 | checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" 452 | dependencies = [ 453 | "bytes", 454 | "futures-channel", 455 | "futures-util", 456 | "h2", 457 | "http", 458 | "http-body", 459 | "httparse", 460 | "itoa", 461 | "pin-project-lite", 462 | "smallvec", 463 | "tokio", 464 | "want", 465 | ] 466 | 467 | [[package]] 468 | name = "hyper-rustls" 469 | version = "0.27.5" 470 | source = "registry+https://github.com/rust-lang/crates.io-index" 471 | checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" 472 | dependencies = [ 473 | "futures-util", 474 | "http", 475 | "hyper", 476 | "hyper-util", 477 | "rustls", 478 | "rustls-pki-types", 479 | "tokio", 480 | "tokio-rustls", 481 | "tower-service", 482 | ] 483 | 484 | [[package]] 485 | name = "hyper-tls" 486 | version = "0.6.0" 487 | source = "registry+https://github.com/rust-lang/crates.io-index" 488 | checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 489 | dependencies = [ 490 | "bytes", 491 | "http-body-util", 492 | "hyper", 493 | "hyper-util", 494 | "native-tls", 495 | "tokio", 496 | "tokio-native-tls", 497 | "tower-service", 498 | ] 499 | 500 | [[package]] 501 | name = "hyper-util" 502 | version = "0.1.10" 503 | source = "registry+https://github.com/rust-lang/crates.io-index" 504 | checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" 505 | dependencies = [ 506 | "bytes", 507 | "futures-channel", 508 | "futures-util", 509 | "http", 510 | "http-body", 511 | "hyper", 512 | "pin-project-lite", 513 | "socket2", 514 | "tokio", 515 | "tower-service", 516 | "tracing", 517 | ] 518 | 519 | [[package]] 520 | name = "icu_collections" 521 | version = "1.5.0" 522 | source = "registry+https://github.com/rust-lang/crates.io-index" 523 | checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" 524 | dependencies = [ 525 | "displaydoc", 526 | "yoke", 527 | "zerofrom", 528 | "zerovec", 529 | ] 530 | 531 | [[package]] 532 | name = "icu_locid" 533 | version = "1.5.0" 534 | source = "registry+https://github.com/rust-lang/crates.io-index" 535 | checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" 536 | dependencies = [ 537 | "displaydoc", 538 | "litemap", 539 | "tinystr", 540 | "writeable", 541 | "zerovec", 542 | ] 543 | 544 | [[package]] 545 | name = "icu_locid_transform" 546 | version = "1.5.0" 547 | source = "registry+https://github.com/rust-lang/crates.io-index" 548 | checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" 549 | dependencies = [ 550 | "displaydoc", 551 | "icu_locid", 552 | "icu_locid_transform_data", 553 | "icu_provider", 554 | "tinystr", 555 | "zerovec", 556 | ] 557 | 558 | [[package]] 559 | name = "icu_locid_transform_data" 560 | version = "1.5.0" 561 | source = "registry+https://github.com/rust-lang/crates.io-index" 562 | checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" 563 | 564 | [[package]] 565 | name = "icu_normalizer" 566 | version = "1.5.0" 567 | source = "registry+https://github.com/rust-lang/crates.io-index" 568 | checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" 569 | dependencies = [ 570 | "displaydoc", 571 | "icu_collections", 572 | "icu_normalizer_data", 573 | "icu_properties", 574 | "icu_provider", 575 | "smallvec", 576 | "utf16_iter", 577 | "utf8_iter", 578 | "write16", 579 | "zerovec", 580 | ] 581 | 582 | [[package]] 583 | name = "icu_normalizer_data" 584 | version = "1.5.0" 585 | source = "registry+https://github.com/rust-lang/crates.io-index" 586 | checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" 587 | 588 | [[package]] 589 | name = "icu_properties" 590 | version = "1.5.1" 591 | source = "registry+https://github.com/rust-lang/crates.io-index" 592 | checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" 593 | dependencies = [ 594 | "displaydoc", 595 | "icu_collections", 596 | "icu_locid_transform", 597 | "icu_properties_data", 598 | "icu_provider", 599 | "tinystr", 600 | "zerovec", 601 | ] 602 | 603 | [[package]] 604 | name = "icu_properties_data" 605 | version = "1.5.0" 606 | source = "registry+https://github.com/rust-lang/crates.io-index" 607 | checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" 608 | 609 | [[package]] 610 | name = "icu_provider" 611 | version = "1.5.0" 612 | source = "registry+https://github.com/rust-lang/crates.io-index" 613 | checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" 614 | dependencies = [ 615 | "displaydoc", 616 | "icu_locid", 617 | "icu_provider_macros", 618 | "stable_deref_trait", 619 | "tinystr", 620 | "writeable", 621 | "yoke", 622 | "zerofrom", 623 | "zerovec", 624 | ] 625 | 626 | [[package]] 627 | name = "icu_provider_macros" 628 | version = "1.5.0" 629 | source = "registry+https://github.com/rust-lang/crates.io-index" 630 | checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" 631 | dependencies = [ 632 | "proc-macro2", 633 | "quote", 634 | "syn", 635 | ] 636 | 637 | [[package]] 638 | name = "idna" 639 | version = "1.0.3" 640 | source = "registry+https://github.com/rust-lang/crates.io-index" 641 | checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" 642 | dependencies = [ 643 | "idna_adapter", 644 | "smallvec", 645 | "utf8_iter", 646 | ] 647 | 648 | [[package]] 649 | name = "idna_adapter" 650 | version = "1.2.0" 651 | source = "registry+https://github.com/rust-lang/crates.io-index" 652 | checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" 653 | dependencies = [ 654 | "icu_normalizer", 655 | "icu_properties", 656 | ] 657 | 658 | [[package]] 659 | name = "indexmap" 660 | version = "2.7.0" 661 | source = "registry+https://github.com/rust-lang/crates.io-index" 662 | checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" 663 | dependencies = [ 664 | "equivalent", 665 | "hashbrown", 666 | ] 667 | 668 | [[package]] 669 | name = "ipnet" 670 | version = "2.10.1" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" 673 | 674 | [[package]] 675 | name = "is_terminal_polyfill" 676 | version = "1.70.1" 677 | source = "registry+https://github.com/rust-lang/crates.io-index" 678 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" 679 | 680 | [[package]] 681 | name = "itoa" 682 | version = "1.0.14" 683 | source = "registry+https://github.com/rust-lang/crates.io-index" 684 | checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" 685 | 686 | [[package]] 687 | name = "jobserver" 688 | version = "0.1.32" 689 | source = "registry+https://github.com/rust-lang/crates.io-index" 690 | checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" 691 | dependencies = [ 692 | "libc", 693 | ] 694 | 695 | [[package]] 696 | name = "js-sys" 697 | version = "0.3.76" 698 | source = "registry+https://github.com/rust-lang/crates.io-index" 699 | checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" 700 | dependencies = [ 701 | "once_cell", 702 | "wasm-bindgen", 703 | ] 704 | 705 | [[package]] 706 | name = "json" 707 | version = "0.12.4" 708 | source = "registry+https://github.com/rust-lang/crates.io-index" 709 | checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd" 710 | 711 | [[package]] 712 | name = "libc" 713 | version = "0.2.169" 714 | source = "registry+https://github.com/rust-lang/crates.io-index" 715 | checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 716 | 717 | [[package]] 718 | name = "libgit2-sys" 719 | version = "0.18.0+1.9.0" 720 | source = "registry+https://github.com/rust-lang/crates.io-index" 721 | checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec" 722 | dependencies = [ 723 | "cc", 724 | "libc", 725 | "libssh2-sys", 726 | "libz-sys", 727 | "openssl-sys", 728 | "pkg-config", 729 | ] 730 | 731 | [[package]] 732 | name = "libredox" 733 | version = "0.1.3" 734 | source = "registry+https://github.com/rust-lang/crates.io-index" 735 | checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" 736 | dependencies = [ 737 | "bitflags", 738 | "libc", 739 | ] 740 | 741 | [[package]] 742 | name = "libssh2-sys" 743 | version = "0.3.0" 744 | source = "registry+https://github.com/rust-lang/crates.io-index" 745 | checksum = "2dc8a030b787e2119a731f1951d6a773e2280c660f8ec4b0f5e1505a386e71ee" 746 | dependencies = [ 747 | "cc", 748 | "libc", 749 | "libz-sys", 750 | "openssl-sys", 751 | "pkg-config", 752 | "vcpkg", 753 | ] 754 | 755 | [[package]] 756 | name = "libz-sys" 757 | version = "1.1.21" 758 | source = "registry+https://github.com/rust-lang/crates.io-index" 759 | checksum = "df9b68e50e6e0b26f672573834882eb57759f6db9b3be2ea3c35c91188bb4eaa" 760 | dependencies = [ 761 | "cc", 762 | "libc", 763 | "pkg-config", 764 | "vcpkg", 765 | ] 766 | 767 | [[package]] 768 | name = "linux-raw-sys" 769 | version = "0.4.15" 770 | source = "registry+https://github.com/rust-lang/crates.io-index" 771 | checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" 772 | 773 | [[package]] 774 | name = "litemap" 775 | version = "0.7.4" 776 | source = "registry+https://github.com/rust-lang/crates.io-index" 777 | checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" 778 | 779 | [[package]] 780 | name = "lock_api" 781 | version = "0.4.12" 782 | source = "registry+https://github.com/rust-lang/crates.io-index" 783 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 784 | dependencies = [ 785 | "autocfg", 786 | "scopeguard", 787 | ] 788 | 789 | [[package]] 790 | name = "log" 791 | version = "0.4.22" 792 | source = "registry+https://github.com/rust-lang/crates.io-index" 793 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 794 | 795 | [[package]] 796 | name = "memchr" 797 | version = "2.7.4" 798 | source = "registry+https://github.com/rust-lang/crates.io-index" 799 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 800 | 801 | [[package]] 802 | name = "mime" 803 | version = "0.3.17" 804 | source = "registry+https://github.com/rust-lang/crates.io-index" 805 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 806 | 807 | [[package]] 808 | name = "miniz_oxide" 809 | version = "0.8.2" 810 | source = "registry+https://github.com/rust-lang/crates.io-index" 811 | checksum = "4ffbe83022cedc1d264172192511ae958937694cd57ce297164951b8b3568394" 812 | dependencies = [ 813 | "adler2", 814 | ] 815 | 816 | [[package]] 817 | name = "mio" 818 | version = "1.0.3" 819 | source = "registry+https://github.com/rust-lang/crates.io-index" 820 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" 821 | dependencies = [ 822 | "libc", 823 | "wasi", 824 | "windows-sys 0.52.0", 825 | ] 826 | 827 | [[package]] 828 | name = "native-tls" 829 | version = "0.2.12" 830 | source = "registry+https://github.com/rust-lang/crates.io-index" 831 | checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" 832 | dependencies = [ 833 | "libc", 834 | "log", 835 | "openssl", 836 | "openssl-probe", 837 | "openssl-sys", 838 | "schannel", 839 | "security-framework", 840 | "security-framework-sys", 841 | "tempfile", 842 | ] 843 | 844 | [[package]] 845 | name = "object" 846 | version = "0.36.7" 847 | source = "registry+https://github.com/rust-lang/crates.io-index" 848 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" 849 | dependencies = [ 850 | "memchr", 851 | ] 852 | 853 | [[package]] 854 | name = "once_cell" 855 | version = "1.20.2" 856 | source = "registry+https://github.com/rust-lang/crates.io-index" 857 | checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" 858 | 859 | [[package]] 860 | name = "openssl" 861 | version = "0.10.68" 862 | source = "registry+https://github.com/rust-lang/crates.io-index" 863 | checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" 864 | dependencies = [ 865 | "bitflags", 866 | "cfg-if", 867 | "foreign-types", 868 | "libc", 869 | "once_cell", 870 | "openssl-macros", 871 | "openssl-sys", 872 | ] 873 | 874 | [[package]] 875 | name = "openssl-macros" 876 | version = "0.1.1" 877 | source = "registry+https://github.com/rust-lang/crates.io-index" 878 | checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 879 | dependencies = [ 880 | "proc-macro2", 881 | "quote", 882 | "syn", 883 | ] 884 | 885 | [[package]] 886 | name = "openssl-probe" 887 | version = "0.1.5" 888 | source = "registry+https://github.com/rust-lang/crates.io-index" 889 | checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" 890 | 891 | [[package]] 892 | name = "openssl-sys" 893 | version = "0.9.104" 894 | source = "registry+https://github.com/rust-lang/crates.io-index" 895 | checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" 896 | dependencies = [ 897 | "cc", 898 | "libc", 899 | "pkg-config", 900 | "vcpkg", 901 | ] 902 | 903 | [[package]] 904 | name = "option-ext" 905 | version = "0.2.0" 906 | source = "registry+https://github.com/rust-lang/crates.io-index" 907 | checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" 908 | 909 | [[package]] 910 | name = "parking_lot" 911 | version = "0.12.3" 912 | source = "registry+https://github.com/rust-lang/crates.io-index" 913 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 914 | dependencies = [ 915 | "lock_api", 916 | "parking_lot_core", 917 | ] 918 | 919 | [[package]] 920 | name = "parking_lot_core" 921 | version = "0.9.10" 922 | source = "registry+https://github.com/rust-lang/crates.io-index" 923 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 924 | dependencies = [ 925 | "cfg-if", 926 | "libc", 927 | "redox_syscall", 928 | "smallvec", 929 | "windows-targets 0.52.6", 930 | ] 931 | 932 | [[package]] 933 | name = "percent-encoding" 934 | version = "2.3.1" 935 | source = "registry+https://github.com/rust-lang/crates.io-index" 936 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 937 | 938 | [[package]] 939 | name = "pin-project-lite" 940 | version = "0.2.16" 941 | source = "registry+https://github.com/rust-lang/crates.io-index" 942 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 943 | 944 | [[package]] 945 | name = "pin-utils" 946 | version = "0.1.0" 947 | source = "registry+https://github.com/rust-lang/crates.io-index" 948 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 949 | 950 | [[package]] 951 | name = "pkg-config" 952 | version = "0.3.31" 953 | source = "registry+https://github.com/rust-lang/crates.io-index" 954 | checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" 955 | 956 | [[package]] 957 | name = "proc-macro2" 958 | version = "1.0.92" 959 | source = "registry+https://github.com/rust-lang/crates.io-index" 960 | checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" 961 | dependencies = [ 962 | "unicode-ident", 963 | ] 964 | 965 | [[package]] 966 | name = "quote" 967 | version = "1.0.38" 968 | source = "registry+https://github.com/rust-lang/crates.io-index" 969 | checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" 970 | dependencies = [ 971 | "proc-macro2", 972 | ] 973 | 974 | [[package]] 975 | name = "redox_syscall" 976 | version = "0.5.8" 977 | source = "registry+https://github.com/rust-lang/crates.io-index" 978 | checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" 979 | dependencies = [ 980 | "bitflags", 981 | ] 982 | 983 | [[package]] 984 | name = "redox_users" 985 | version = "0.4.6" 986 | source = "registry+https://github.com/rust-lang/crates.io-index" 987 | checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" 988 | dependencies = [ 989 | "getrandom", 990 | "libredox", 991 | "thiserror", 992 | ] 993 | 994 | [[package]] 995 | name = "reqwest" 996 | version = "0.12.12" 997 | source = "registry+https://github.com/rust-lang/crates.io-index" 998 | checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" 999 | dependencies = [ 1000 | "base64", 1001 | "bytes", 1002 | "encoding_rs", 1003 | "futures-core", 1004 | "futures-util", 1005 | "h2", 1006 | "http", 1007 | "http-body", 1008 | "http-body-util", 1009 | "hyper", 1010 | "hyper-rustls", 1011 | "hyper-tls", 1012 | "hyper-util", 1013 | "ipnet", 1014 | "js-sys", 1015 | "log", 1016 | "mime", 1017 | "native-tls", 1018 | "once_cell", 1019 | "percent-encoding", 1020 | "pin-project-lite", 1021 | "rustls-pemfile", 1022 | "serde", 1023 | "serde_json", 1024 | "serde_urlencoded", 1025 | "sync_wrapper", 1026 | "system-configuration", 1027 | "tokio", 1028 | "tokio-native-tls", 1029 | "tower", 1030 | "tower-service", 1031 | "url", 1032 | "wasm-bindgen", 1033 | "wasm-bindgen-futures", 1034 | "web-sys", 1035 | "windows-registry", 1036 | ] 1037 | 1038 | [[package]] 1039 | name = "ring" 1040 | version = "0.17.8" 1041 | source = "registry+https://github.com/rust-lang/crates.io-index" 1042 | checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" 1043 | dependencies = [ 1044 | "cc", 1045 | "cfg-if", 1046 | "getrandom", 1047 | "libc", 1048 | "spin", 1049 | "untrusted", 1050 | "windows-sys 0.52.0", 1051 | ] 1052 | 1053 | [[package]] 1054 | name = "rustc-demangle" 1055 | version = "0.1.24" 1056 | source = "registry+https://github.com/rust-lang/crates.io-index" 1057 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 1058 | 1059 | [[package]] 1060 | name = "rustix" 1061 | version = "0.38.43" 1062 | source = "registry+https://github.com/rust-lang/crates.io-index" 1063 | checksum = "a78891ee6bf2340288408954ac787aa063d8e8817e9f53abb37c695c6d834ef6" 1064 | dependencies = [ 1065 | "bitflags", 1066 | "errno", 1067 | "libc", 1068 | "linux-raw-sys", 1069 | "windows-sys 0.59.0", 1070 | ] 1071 | 1072 | [[package]] 1073 | name = "rustls" 1074 | version = "0.23.21" 1075 | source = "registry+https://github.com/rust-lang/crates.io-index" 1076 | checksum = "8f287924602bf649d949c63dc8ac8b235fa5387d394020705b80c4eb597ce5b8" 1077 | dependencies = [ 1078 | "once_cell", 1079 | "rustls-pki-types", 1080 | "rustls-webpki", 1081 | "subtle", 1082 | "zeroize", 1083 | ] 1084 | 1085 | [[package]] 1086 | name = "rustls-pemfile" 1087 | version = "2.2.0" 1088 | source = "registry+https://github.com/rust-lang/crates.io-index" 1089 | checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" 1090 | dependencies = [ 1091 | "rustls-pki-types", 1092 | ] 1093 | 1094 | [[package]] 1095 | name = "rustls-pki-types" 1096 | version = "1.10.1" 1097 | source = "registry+https://github.com/rust-lang/crates.io-index" 1098 | checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" 1099 | 1100 | [[package]] 1101 | name = "rustls-webpki" 1102 | version = "0.102.8" 1103 | source = "registry+https://github.com/rust-lang/crates.io-index" 1104 | checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" 1105 | dependencies = [ 1106 | "ring", 1107 | "rustls-pki-types", 1108 | "untrusted", 1109 | ] 1110 | 1111 | [[package]] 1112 | name = "ryu" 1113 | version = "1.0.18" 1114 | source = "registry+https://github.com/rust-lang/crates.io-index" 1115 | checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" 1116 | 1117 | [[package]] 1118 | name = "schannel" 1119 | version = "0.1.27" 1120 | source = "registry+https://github.com/rust-lang/crates.io-index" 1121 | checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" 1122 | dependencies = [ 1123 | "windows-sys 0.59.0", 1124 | ] 1125 | 1126 | [[package]] 1127 | name = "scopeguard" 1128 | version = "1.2.0" 1129 | source = "registry+https://github.com/rust-lang/crates.io-index" 1130 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1131 | 1132 | [[package]] 1133 | name = "security-framework" 1134 | version = "2.11.1" 1135 | source = "registry+https://github.com/rust-lang/crates.io-index" 1136 | checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1137 | dependencies = [ 1138 | "bitflags", 1139 | "core-foundation", 1140 | "core-foundation-sys", 1141 | "libc", 1142 | "security-framework-sys", 1143 | ] 1144 | 1145 | [[package]] 1146 | name = "security-framework-sys" 1147 | version = "2.14.0" 1148 | source = "registry+https://github.com/rust-lang/crates.io-index" 1149 | checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" 1150 | dependencies = [ 1151 | "core-foundation-sys", 1152 | "libc", 1153 | ] 1154 | 1155 | [[package]] 1156 | name = "serde" 1157 | version = "1.0.217" 1158 | source = "registry+https://github.com/rust-lang/crates.io-index" 1159 | checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" 1160 | dependencies = [ 1161 | "serde_derive", 1162 | ] 1163 | 1164 | [[package]] 1165 | name = "serde_derive" 1166 | version = "1.0.217" 1167 | source = "registry+https://github.com/rust-lang/crates.io-index" 1168 | checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" 1169 | dependencies = [ 1170 | "proc-macro2", 1171 | "quote", 1172 | "syn", 1173 | ] 1174 | 1175 | [[package]] 1176 | name = "serde_json" 1177 | version = "1.0.135" 1178 | source = "registry+https://github.com/rust-lang/crates.io-index" 1179 | checksum = "2b0d7ba2887406110130a978386c4e1befb98c674b4fba677954e4db976630d9" 1180 | dependencies = [ 1181 | "itoa", 1182 | "memchr", 1183 | "ryu", 1184 | "serde", 1185 | ] 1186 | 1187 | [[package]] 1188 | name = "serde_urlencoded" 1189 | version = "0.7.1" 1190 | source = "registry+https://github.com/rust-lang/crates.io-index" 1191 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1192 | dependencies = [ 1193 | "form_urlencoded", 1194 | "itoa", 1195 | "ryu", 1196 | "serde", 1197 | ] 1198 | 1199 | [[package]] 1200 | name = "shlex" 1201 | version = "1.3.0" 1202 | source = "registry+https://github.com/rust-lang/crates.io-index" 1203 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1204 | 1205 | [[package]] 1206 | name = "signal-hook-registry" 1207 | version = "1.4.2" 1208 | source = "registry+https://github.com/rust-lang/crates.io-index" 1209 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 1210 | dependencies = [ 1211 | "libc", 1212 | ] 1213 | 1214 | [[package]] 1215 | name = "slab" 1216 | version = "0.4.9" 1217 | source = "registry+https://github.com/rust-lang/crates.io-index" 1218 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1219 | dependencies = [ 1220 | "autocfg", 1221 | ] 1222 | 1223 | [[package]] 1224 | name = "smallvec" 1225 | version = "1.13.2" 1226 | source = "registry+https://github.com/rust-lang/crates.io-index" 1227 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 1228 | 1229 | [[package]] 1230 | name = "socket2" 1231 | version = "0.5.8" 1232 | source = "registry+https://github.com/rust-lang/crates.io-index" 1233 | checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" 1234 | dependencies = [ 1235 | "libc", 1236 | "windows-sys 0.52.0", 1237 | ] 1238 | 1239 | [[package]] 1240 | name = "spin" 1241 | version = "0.9.8" 1242 | source = "registry+https://github.com/rust-lang/crates.io-index" 1243 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1244 | 1245 | [[package]] 1246 | name = "stable_deref_trait" 1247 | version = "1.2.0" 1248 | source = "registry+https://github.com/rust-lang/crates.io-index" 1249 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1250 | 1251 | [[package]] 1252 | name = "strsim" 1253 | version = "0.11.1" 1254 | source = "registry+https://github.com/rust-lang/crates.io-index" 1255 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1256 | 1257 | [[package]] 1258 | name = "subtle" 1259 | version = "2.6.1" 1260 | source = "registry+https://github.com/rust-lang/crates.io-index" 1261 | checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1262 | 1263 | [[package]] 1264 | name = "syn" 1265 | version = "2.0.96" 1266 | source = "registry+https://github.com/rust-lang/crates.io-index" 1267 | checksum = "d5d0adab1ae378d7f53bdebc67a39f1f151407ef230f0ce2883572f5d8985c80" 1268 | dependencies = [ 1269 | "proc-macro2", 1270 | "quote", 1271 | "unicode-ident", 1272 | ] 1273 | 1274 | [[package]] 1275 | name = "sync_wrapper" 1276 | version = "1.0.2" 1277 | source = "registry+https://github.com/rust-lang/crates.io-index" 1278 | checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1279 | dependencies = [ 1280 | "futures-core", 1281 | ] 1282 | 1283 | [[package]] 1284 | name = "synstructure" 1285 | version = "0.13.1" 1286 | source = "registry+https://github.com/rust-lang/crates.io-index" 1287 | checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" 1288 | dependencies = [ 1289 | "proc-macro2", 1290 | "quote", 1291 | "syn", 1292 | ] 1293 | 1294 | [[package]] 1295 | name = "system-configuration" 1296 | version = "0.6.1" 1297 | source = "registry+https://github.com/rust-lang/crates.io-index" 1298 | checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 1299 | dependencies = [ 1300 | "bitflags", 1301 | "core-foundation", 1302 | "system-configuration-sys", 1303 | ] 1304 | 1305 | [[package]] 1306 | name = "system-configuration-sys" 1307 | version = "0.6.0" 1308 | source = "registry+https://github.com/rust-lang/crates.io-index" 1309 | checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 1310 | dependencies = [ 1311 | "core-foundation-sys", 1312 | "libc", 1313 | ] 1314 | 1315 | [[package]] 1316 | name = "tempfile" 1317 | version = "3.15.0" 1318 | source = "registry+https://github.com/rust-lang/crates.io-index" 1319 | checksum = "9a8a559c81686f576e8cd0290cd2a24a2a9ad80c98b3478856500fcbd7acd704" 1320 | dependencies = [ 1321 | "cfg-if", 1322 | "fastrand", 1323 | "getrandom", 1324 | "once_cell", 1325 | "rustix", 1326 | "windows-sys 0.59.0", 1327 | ] 1328 | 1329 | [[package]] 1330 | name = "thiserror" 1331 | version = "1.0.69" 1332 | source = "registry+https://github.com/rust-lang/crates.io-index" 1333 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" 1334 | dependencies = [ 1335 | "thiserror-impl", 1336 | ] 1337 | 1338 | [[package]] 1339 | name = "thiserror-impl" 1340 | version = "1.0.69" 1341 | source = "registry+https://github.com/rust-lang/crates.io-index" 1342 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" 1343 | dependencies = [ 1344 | "proc-macro2", 1345 | "quote", 1346 | "syn", 1347 | ] 1348 | 1349 | [[package]] 1350 | name = "tinystr" 1351 | version = "0.7.6" 1352 | source = "registry+https://github.com/rust-lang/crates.io-index" 1353 | checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" 1354 | dependencies = [ 1355 | "displaydoc", 1356 | "zerovec", 1357 | ] 1358 | 1359 | [[package]] 1360 | name = "tokio" 1361 | version = "1.43.0" 1362 | source = "registry+https://github.com/rust-lang/crates.io-index" 1363 | checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" 1364 | dependencies = [ 1365 | "backtrace", 1366 | "bytes", 1367 | "libc", 1368 | "mio", 1369 | "parking_lot", 1370 | "pin-project-lite", 1371 | "signal-hook-registry", 1372 | "socket2", 1373 | "tokio-macros", 1374 | "windows-sys 0.52.0", 1375 | ] 1376 | 1377 | [[package]] 1378 | name = "tokio-macros" 1379 | version = "2.5.0" 1380 | source = "registry+https://github.com/rust-lang/crates.io-index" 1381 | checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" 1382 | dependencies = [ 1383 | "proc-macro2", 1384 | "quote", 1385 | "syn", 1386 | ] 1387 | 1388 | [[package]] 1389 | name = "tokio-native-tls" 1390 | version = "0.3.1" 1391 | source = "registry+https://github.com/rust-lang/crates.io-index" 1392 | checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 1393 | dependencies = [ 1394 | "native-tls", 1395 | "tokio", 1396 | ] 1397 | 1398 | [[package]] 1399 | name = "tokio-rustls" 1400 | version = "0.26.1" 1401 | source = "registry+https://github.com/rust-lang/crates.io-index" 1402 | checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" 1403 | dependencies = [ 1404 | "rustls", 1405 | "tokio", 1406 | ] 1407 | 1408 | [[package]] 1409 | name = "tokio-util" 1410 | version = "0.7.13" 1411 | source = "registry+https://github.com/rust-lang/crates.io-index" 1412 | checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" 1413 | dependencies = [ 1414 | "bytes", 1415 | "futures-core", 1416 | "futures-sink", 1417 | "pin-project-lite", 1418 | "tokio", 1419 | ] 1420 | 1421 | [[package]] 1422 | name = "tower" 1423 | version = "0.5.2" 1424 | source = "registry+https://github.com/rust-lang/crates.io-index" 1425 | checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 1426 | dependencies = [ 1427 | "futures-core", 1428 | "futures-util", 1429 | "pin-project-lite", 1430 | "sync_wrapper", 1431 | "tokio", 1432 | "tower-layer", 1433 | "tower-service", 1434 | ] 1435 | 1436 | [[package]] 1437 | name = "tower-layer" 1438 | version = "0.3.3" 1439 | source = "registry+https://github.com/rust-lang/crates.io-index" 1440 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 1441 | 1442 | [[package]] 1443 | name = "tower-service" 1444 | version = "0.3.3" 1445 | source = "registry+https://github.com/rust-lang/crates.io-index" 1446 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 1447 | 1448 | [[package]] 1449 | name = "tracing" 1450 | version = "0.1.41" 1451 | source = "registry+https://github.com/rust-lang/crates.io-index" 1452 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 1453 | dependencies = [ 1454 | "pin-project-lite", 1455 | "tracing-core", 1456 | ] 1457 | 1458 | [[package]] 1459 | name = "tracing-core" 1460 | version = "0.1.33" 1461 | source = "registry+https://github.com/rust-lang/crates.io-index" 1462 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" 1463 | dependencies = [ 1464 | "once_cell", 1465 | ] 1466 | 1467 | [[package]] 1468 | name = "try-lock" 1469 | version = "0.2.5" 1470 | source = "registry+https://github.com/rust-lang/crates.io-index" 1471 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1472 | 1473 | [[package]] 1474 | name = "unicode-ident" 1475 | version = "1.0.14" 1476 | source = "registry+https://github.com/rust-lang/crates.io-index" 1477 | checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" 1478 | 1479 | [[package]] 1480 | name = "untrusted" 1481 | version = "0.9.0" 1482 | source = "registry+https://github.com/rust-lang/crates.io-index" 1483 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1484 | 1485 | [[package]] 1486 | name = "url" 1487 | version = "2.5.4" 1488 | source = "registry+https://github.com/rust-lang/crates.io-index" 1489 | checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" 1490 | dependencies = [ 1491 | "form_urlencoded", 1492 | "idna", 1493 | "percent-encoding", 1494 | ] 1495 | 1496 | [[package]] 1497 | name = "utf16_iter" 1498 | version = "1.0.5" 1499 | source = "registry+https://github.com/rust-lang/crates.io-index" 1500 | checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" 1501 | 1502 | [[package]] 1503 | name = "utf8_iter" 1504 | version = "1.0.4" 1505 | source = "registry+https://github.com/rust-lang/crates.io-index" 1506 | checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" 1507 | 1508 | [[package]] 1509 | name = "utf8parse" 1510 | version = "0.2.2" 1511 | source = "registry+https://github.com/rust-lang/crates.io-index" 1512 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" 1513 | 1514 | [[package]] 1515 | name = "vcpkg" 1516 | version = "0.2.15" 1517 | source = "registry+https://github.com/rust-lang/crates.io-index" 1518 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 1519 | 1520 | [[package]] 1521 | name = "want" 1522 | version = "0.3.1" 1523 | source = "registry+https://github.com/rust-lang/crates.io-index" 1524 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1525 | dependencies = [ 1526 | "try-lock", 1527 | ] 1528 | 1529 | [[package]] 1530 | name = "wasi" 1531 | version = "0.11.0+wasi-snapshot-preview1" 1532 | source = "registry+https://github.com/rust-lang/crates.io-index" 1533 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1534 | 1535 | [[package]] 1536 | name = "wasm-bindgen" 1537 | version = "0.2.99" 1538 | source = "registry+https://github.com/rust-lang/crates.io-index" 1539 | checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" 1540 | dependencies = [ 1541 | "cfg-if", 1542 | "once_cell", 1543 | "wasm-bindgen-macro", 1544 | ] 1545 | 1546 | [[package]] 1547 | name = "wasm-bindgen-backend" 1548 | version = "0.2.99" 1549 | source = "registry+https://github.com/rust-lang/crates.io-index" 1550 | checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" 1551 | dependencies = [ 1552 | "bumpalo", 1553 | "log", 1554 | "proc-macro2", 1555 | "quote", 1556 | "syn", 1557 | "wasm-bindgen-shared", 1558 | ] 1559 | 1560 | [[package]] 1561 | name = "wasm-bindgen-futures" 1562 | version = "0.4.49" 1563 | source = "registry+https://github.com/rust-lang/crates.io-index" 1564 | checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" 1565 | dependencies = [ 1566 | "cfg-if", 1567 | "js-sys", 1568 | "once_cell", 1569 | "wasm-bindgen", 1570 | "web-sys", 1571 | ] 1572 | 1573 | [[package]] 1574 | name = "wasm-bindgen-macro" 1575 | version = "0.2.99" 1576 | source = "registry+https://github.com/rust-lang/crates.io-index" 1577 | checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" 1578 | dependencies = [ 1579 | "quote", 1580 | "wasm-bindgen-macro-support", 1581 | ] 1582 | 1583 | [[package]] 1584 | name = "wasm-bindgen-macro-support" 1585 | version = "0.2.99" 1586 | source = "registry+https://github.com/rust-lang/crates.io-index" 1587 | checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" 1588 | dependencies = [ 1589 | "proc-macro2", 1590 | "quote", 1591 | "syn", 1592 | "wasm-bindgen-backend", 1593 | "wasm-bindgen-shared", 1594 | ] 1595 | 1596 | [[package]] 1597 | name = "wasm-bindgen-shared" 1598 | version = "0.2.99" 1599 | source = "registry+https://github.com/rust-lang/crates.io-index" 1600 | checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" 1601 | 1602 | [[package]] 1603 | name = "web-sys" 1604 | version = "0.3.76" 1605 | source = "registry+https://github.com/rust-lang/crates.io-index" 1606 | checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" 1607 | dependencies = [ 1608 | "js-sys", 1609 | "wasm-bindgen", 1610 | ] 1611 | 1612 | [[package]] 1613 | name = "windows-registry" 1614 | version = "0.2.0" 1615 | source = "registry+https://github.com/rust-lang/crates.io-index" 1616 | checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" 1617 | dependencies = [ 1618 | "windows-result", 1619 | "windows-strings", 1620 | "windows-targets 0.52.6", 1621 | ] 1622 | 1623 | [[package]] 1624 | name = "windows-result" 1625 | version = "0.2.0" 1626 | source = "registry+https://github.com/rust-lang/crates.io-index" 1627 | checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" 1628 | dependencies = [ 1629 | "windows-targets 0.52.6", 1630 | ] 1631 | 1632 | [[package]] 1633 | name = "windows-strings" 1634 | version = "0.1.0" 1635 | source = "registry+https://github.com/rust-lang/crates.io-index" 1636 | checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" 1637 | dependencies = [ 1638 | "windows-result", 1639 | "windows-targets 0.52.6", 1640 | ] 1641 | 1642 | [[package]] 1643 | name = "windows-sys" 1644 | version = "0.48.0" 1645 | source = "registry+https://github.com/rust-lang/crates.io-index" 1646 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 1647 | dependencies = [ 1648 | "windows-targets 0.48.5", 1649 | ] 1650 | 1651 | [[package]] 1652 | name = "windows-sys" 1653 | version = "0.52.0" 1654 | source = "registry+https://github.com/rust-lang/crates.io-index" 1655 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1656 | dependencies = [ 1657 | "windows-targets 0.52.6", 1658 | ] 1659 | 1660 | [[package]] 1661 | name = "windows-sys" 1662 | version = "0.59.0" 1663 | source = "registry+https://github.com/rust-lang/crates.io-index" 1664 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1665 | dependencies = [ 1666 | "windows-targets 0.52.6", 1667 | ] 1668 | 1669 | [[package]] 1670 | name = "windows-targets" 1671 | version = "0.48.5" 1672 | source = "registry+https://github.com/rust-lang/crates.io-index" 1673 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 1674 | dependencies = [ 1675 | "windows_aarch64_gnullvm 0.48.5", 1676 | "windows_aarch64_msvc 0.48.5", 1677 | "windows_i686_gnu 0.48.5", 1678 | "windows_i686_msvc 0.48.5", 1679 | "windows_x86_64_gnu 0.48.5", 1680 | "windows_x86_64_gnullvm 0.48.5", 1681 | "windows_x86_64_msvc 0.48.5", 1682 | ] 1683 | 1684 | [[package]] 1685 | name = "windows-targets" 1686 | version = "0.52.6" 1687 | source = "registry+https://github.com/rust-lang/crates.io-index" 1688 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1689 | dependencies = [ 1690 | "windows_aarch64_gnullvm 0.52.6", 1691 | "windows_aarch64_msvc 0.52.6", 1692 | "windows_i686_gnu 0.52.6", 1693 | "windows_i686_gnullvm", 1694 | "windows_i686_msvc 0.52.6", 1695 | "windows_x86_64_gnu 0.52.6", 1696 | "windows_x86_64_gnullvm 0.52.6", 1697 | "windows_x86_64_msvc 0.52.6", 1698 | ] 1699 | 1700 | [[package]] 1701 | name = "windows_aarch64_gnullvm" 1702 | version = "0.48.5" 1703 | source = "registry+https://github.com/rust-lang/crates.io-index" 1704 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 1705 | 1706 | [[package]] 1707 | name = "windows_aarch64_gnullvm" 1708 | version = "0.52.6" 1709 | source = "registry+https://github.com/rust-lang/crates.io-index" 1710 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1711 | 1712 | [[package]] 1713 | name = "windows_aarch64_msvc" 1714 | version = "0.48.5" 1715 | source = "registry+https://github.com/rust-lang/crates.io-index" 1716 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 1717 | 1718 | [[package]] 1719 | name = "windows_aarch64_msvc" 1720 | version = "0.52.6" 1721 | source = "registry+https://github.com/rust-lang/crates.io-index" 1722 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1723 | 1724 | [[package]] 1725 | name = "windows_i686_gnu" 1726 | version = "0.48.5" 1727 | source = "registry+https://github.com/rust-lang/crates.io-index" 1728 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 1729 | 1730 | [[package]] 1731 | name = "windows_i686_gnu" 1732 | version = "0.52.6" 1733 | source = "registry+https://github.com/rust-lang/crates.io-index" 1734 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1735 | 1736 | [[package]] 1737 | name = "windows_i686_gnullvm" 1738 | version = "0.52.6" 1739 | source = "registry+https://github.com/rust-lang/crates.io-index" 1740 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1741 | 1742 | [[package]] 1743 | name = "windows_i686_msvc" 1744 | version = "0.48.5" 1745 | source = "registry+https://github.com/rust-lang/crates.io-index" 1746 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 1747 | 1748 | [[package]] 1749 | name = "windows_i686_msvc" 1750 | version = "0.52.6" 1751 | source = "registry+https://github.com/rust-lang/crates.io-index" 1752 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1753 | 1754 | [[package]] 1755 | name = "windows_x86_64_gnu" 1756 | version = "0.48.5" 1757 | source = "registry+https://github.com/rust-lang/crates.io-index" 1758 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 1759 | 1760 | [[package]] 1761 | name = "windows_x86_64_gnu" 1762 | version = "0.52.6" 1763 | source = "registry+https://github.com/rust-lang/crates.io-index" 1764 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1765 | 1766 | [[package]] 1767 | name = "windows_x86_64_gnullvm" 1768 | version = "0.48.5" 1769 | source = "registry+https://github.com/rust-lang/crates.io-index" 1770 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 1771 | 1772 | [[package]] 1773 | name = "windows_x86_64_gnullvm" 1774 | version = "0.52.6" 1775 | source = "registry+https://github.com/rust-lang/crates.io-index" 1776 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1777 | 1778 | [[package]] 1779 | name = "windows_x86_64_msvc" 1780 | version = "0.48.5" 1781 | source = "registry+https://github.com/rust-lang/crates.io-index" 1782 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 1783 | 1784 | [[package]] 1785 | name = "windows_x86_64_msvc" 1786 | version = "0.52.6" 1787 | source = "registry+https://github.com/rust-lang/crates.io-index" 1788 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1789 | 1790 | [[package]] 1791 | name = "write16" 1792 | version = "1.0.0" 1793 | source = "registry+https://github.com/rust-lang/crates.io-index" 1794 | checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" 1795 | 1796 | [[package]] 1797 | name = "writeable" 1798 | version = "0.5.5" 1799 | source = "registry+https://github.com/rust-lang/crates.io-index" 1800 | checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" 1801 | 1802 | [[package]] 1803 | name = "yoke" 1804 | version = "0.7.5" 1805 | source = "registry+https://github.com/rust-lang/crates.io-index" 1806 | checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" 1807 | dependencies = [ 1808 | "serde", 1809 | "stable_deref_trait", 1810 | "yoke-derive", 1811 | "zerofrom", 1812 | ] 1813 | 1814 | [[package]] 1815 | name = "yoke-derive" 1816 | version = "0.7.5" 1817 | source = "registry+https://github.com/rust-lang/crates.io-index" 1818 | checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" 1819 | dependencies = [ 1820 | "proc-macro2", 1821 | "quote", 1822 | "syn", 1823 | "synstructure", 1824 | ] 1825 | 1826 | [[package]] 1827 | name = "zerofrom" 1828 | version = "0.1.5" 1829 | source = "registry+https://github.com/rust-lang/crates.io-index" 1830 | checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" 1831 | dependencies = [ 1832 | "zerofrom-derive", 1833 | ] 1834 | 1835 | [[package]] 1836 | name = "zerofrom-derive" 1837 | version = "0.1.5" 1838 | source = "registry+https://github.com/rust-lang/crates.io-index" 1839 | checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" 1840 | dependencies = [ 1841 | "proc-macro2", 1842 | "quote", 1843 | "syn", 1844 | "synstructure", 1845 | ] 1846 | 1847 | [[package]] 1848 | name = "zeroize" 1849 | version = "1.8.1" 1850 | source = "registry+https://github.com/rust-lang/crates.io-index" 1851 | checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" 1852 | 1853 | [[package]] 1854 | name = "zerovec" 1855 | version = "0.10.4" 1856 | source = "registry+https://github.com/rust-lang/crates.io-index" 1857 | checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" 1858 | dependencies = [ 1859 | "yoke", 1860 | "zerofrom", 1861 | "zerovec-derive", 1862 | ] 1863 | 1864 | [[package]] 1865 | name = "zerovec-derive" 1866 | version = "0.10.3" 1867 | source = "registry+https://github.com/rust-lang/crates.io-index" 1868 | checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" 1869 | dependencies = [ 1870 | "proc-macro2", 1871 | "quote", 1872 | "syn", 1873 | ] 1874 | -------------------------------------------------------------------------------- /app/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "gitswift" 3 | version = "0.1.0" 4 | edition = "2021" 5 | authors = [ 6 | "Ojas ", 7 | "Tarush Mohindru ", 8 | "Hushraj Singh " 9 | ] 10 | license = "MIT" 11 | description = "A Git tool with AI capabilities" 12 | repository = "https://github.com/its-me-ojas/git-swift" 13 | 14 | 15 | [package.metadata.deb] 16 | maintainer = "Ojas " 17 | copyright = "Copyright (c) 2025" 18 | license-file = "../LICENSE" 19 | depends = "$auto" 20 | section = "utils" 21 | priority = "optional" 22 | 23 | [package.metadata.wix] 24 | eula = "../LICENSE" 25 | 26 | [dependencies] 27 | clap = "4.5.26" 28 | dirs = "5.0.1" 29 | dotenv = "0.15.0" 30 | gemini-rs = "0.4.2" 31 | git2 = "0.20.0" 32 | reqwest = { version = "0.12.12", features = ["json"] } 33 | serde = { version = "1.0.217", features = ["derive"] } 34 | tokio = { version = "1.43.0", features = ["full"] } 35 | -------------------------------------------------------------------------------- /app/README.md: -------------------------------------------------------------------------------- 1 | # Git-Swift 2 | 3 | Git-Swift is a Rust-based tool that automates the process of generating commit messages using the Gemini API, committing changes, and pushing them to a Git repository. This tool leverages AI to create meaningful commit messages based on the changes detected in the repository. 4 | 5 | ## Features 6 | 7 | - Automatically detects changes in the repository 8 | - Generates multiple AI-powered commit message options using the Gemini API 9 | - Allows selection from multiple commit message options 10 | - Commits the changes with the selected message 11 | - Pushes the commit to the remote repository 12 | 13 | ## Prerequisites 14 | 15 | - Rust (latest stable version) 16 | - Git 17 | - Gemini API key 18 | 19 | ## Installation 20 | 21 | 1. Clone the repository: 22 | ```sh 23 | git clone https://github.com/its-me-ojas/git-swift.git 24 | cd git-swift/git_swift 25 | ``` 26 | 27 | 2. Build and install the project: 28 | ```sh 29 | cargo build --release 30 | ``` 31 | 32 | 3. Move the binary to a directory in your system's `PATH`: 33 | ```sh 34 | sudo mv target/release/git-swift /usr/local/bin/ 35 | ``` 36 | 37 | ## Usage 38 | 39 | Git-Swift provides two main commands: 40 | 41 | 1. Setup your API key: 42 | ```sh 43 | git-swift setup YOUR_API_KEY 44 | ``` 45 | 46 | 2. Generate commit message and push changes: 47 | ```sh 48 | git-swift push 49 | ``` 50 | 51 | When you run `git-swift push`, the tool will: 52 | 1. Detect changes in your repository 53 | 2. Generate multiple commit message options using AI 54 | 3. Let you select your preferred message 55 | 4. Ask for confirmation before committing 56 | 5. Commit and push the changes 57 | 58 | ## Example Workflow 59 | 60 | 1. Make some changes to your repository 61 | 62 | 2. Run git-swift: 63 | ```sh 64 | git-swift push 65 | ``` 66 | 67 | 3. Select from the generated commit message options 68 | 69 | 4. Confirm the commit and push 70 | 71 | The tool will then commit your changes with the selected message and push them to the remote repository. 72 | 73 | ## Help 74 | 75 | To see available commands and options: 76 | ```sh 77 | git-swift --help 78 | ``` 79 | 80 | ## Configuration 81 | 82 | The API key is stored in `~/.git-swift/config`. You can update it at any time by running the setup command again with a new API key. 83 | 84 | ## Contributing 85 | 86 | Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change. 87 | 88 | 89 | ## Author 90 | 91 | Ojas - [its-me-ojas](https://github.com/its-me-ojas) 92 | -------------------------------------------------------------------------------- /app/src/ai/generate.rs: -------------------------------------------------------------------------------- 1 | use crate::constants::SERVER_URL; 2 | use serde::Deserialize; 3 | use std::collections::HashMap; 4 | 5 | pub async fn fetch_commit_messages(diff: &str) -> Result> { 6 | let mut map = HashMap::new(); 7 | map.insert("diff", diff); 8 | let client = reqwest::Client::new(); 9 | println!("Fetching Commit Message from Server!"); 10 | let resp = client 11 | .post(format!("{}/commit_message", SERVER_URL)) 12 | .json(&map) 13 | .send() 14 | .await?; 15 | let body: ApiResponse = resp.json().await?; 16 | Ok(body) 17 | } 18 | 19 | #[derive(Debug, Deserialize)] 20 | pub struct ApiResponse { 21 | pub messages: Vec, 22 | } 23 | -------------------------------------------------------------------------------- /app/src/ai/mod.rs: -------------------------------------------------------------------------------- 1 | mod generate; 2 | pub use generate::fetch_commit_messages; 3 | -------------------------------------------------------------------------------- /app/src/cli/interface.rs: -------------------------------------------------------------------------------- 1 | use std::io::{self, Write}; 2 | 3 | pub async fn confirm_commit() -> bool { 4 | print!("Do you want to commit and push these changes? [Y/n]: "); 5 | io::stdout().flush().unwrap(); 6 | 7 | let mut input = String::new(); 8 | io::stdin() 9 | .read_line(&mut input) 10 | .expect("Failed to read line"); 11 | 12 | if input.trim().to_lowercase().as_str() == "y" || input.trim().to_lowercase().as_str() == "yes" || input.trim().to_lowercase().as_str() == "" { 13 | println!("Pushing to remote repository"); 14 | return true; 15 | } 16 | println!("Operation cancelled by User!"); 17 | return false 18 | } 19 | 20 | pub fn select_commit_message(messages: &[String]) -> Option { 21 | println!("\nPlease select a commit message option (1-{}) or 0 to cancel:", messages.len()); 22 | 23 | for (i, message) in messages.iter().enumerate() { 24 | println!("\nOption {}:\n{}", i + 1, message); 25 | } 26 | 27 | print!("\nYour choice: "); 28 | io::stdout().flush().unwrap(); 29 | 30 | let mut input = String::new(); 31 | io::stdin() 32 | .read_line(&mut input) 33 | .expect("Failed to read line"); 34 | 35 | match input.trim().parse::() { 36 | Ok(n) if n == 0 => None, 37 | Ok(n) if n <= messages.len() => Some(messages[n - 1].clone()), 38 | _ => { 39 | println!("Invalid selection. Operation cancelled."); 40 | None 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/src/cli/mod.rs: -------------------------------------------------------------------------------- 1 | mod interface; 2 | 3 | pub use interface::{confirm_commit, select_commit_message}; 4 | -------------------------------------------------------------------------------- /app/src/constants.rs: -------------------------------------------------------------------------------- 1 | pub const SERVER_URL: &str = "https://api-gitswift.ccstiet.com"; -------------------------------------------------------------------------------- /app/src/git/commit.rs: -------------------------------------------------------------------------------- 1 | use tokio::process::Command; 2 | 3 | pub async fn commit_and_push(commit_message: &str) -> Result<(), Box> { 4 | // run 'git add .' 5 | let status = Command::new("git").arg("add").arg(".").status().await?; 6 | if !status.success() { 7 | return Err("Failed to add changes".into()); 8 | } 9 | 10 | // run 'git commit -m ' 11 | let status = Command::new("git") 12 | .arg("commit") 13 | .arg("-m") 14 | .arg(commit_message) 15 | .status() 16 | .await?; 17 | if !status.success() { 18 | return Err("Failed to commit changes".into()); 19 | } 20 | 21 | // run 'git push' 22 | let status = Command::new("git").arg("push").status().await?; 23 | if !status.success() { 24 | return Err("Failed to push changes".into()); 25 | } 26 | 27 | Ok(()) 28 | } 29 | -------------------------------------------------------------------------------- /app/src/git/diff.rs: -------------------------------------------------------------------------------- 1 | use git2::Repository; 2 | 3 | pub fn get_diff(repo_path: &str) -> Result { 4 | let repo = Repository::open(repo_path)?; 5 | let head = match repo.head() { 6 | Ok(head) => head, 7 | Err(e) => { 8 | if e.code() == git2::ErrorCode::UnbornBranch { 9 | return Ok(String::from("No commits in the repository")); 10 | } else { 11 | return Err(e); 12 | } 13 | } 14 | }; 15 | let head_commit = head.peel_to_commit()?; 16 | let tree = head_commit.tree()?; 17 | 18 | let diff = repo.diff_tree_to_workdir_with_index(Some(&tree), None)?; 19 | 20 | let mut diff_str = String::new(); 21 | 22 | diff.print(git2::DiffFormat::Patch, |_, _, line| { 23 | diff_str.push_str(std::str::from_utf8(line.content()).unwrap()); 24 | true 25 | })?; 26 | 27 | Ok(diff_str) 28 | } 29 | -------------------------------------------------------------------------------- /app/src/git/mod.rs: -------------------------------------------------------------------------------- 1 | mod commit; 2 | mod diff; 3 | 4 | pub use commit::commit_and_push; 5 | pub use diff::get_diff; 6 | -------------------------------------------------------------------------------- /app/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod ai; 2 | pub mod cli; 3 | pub mod constants; 4 | pub mod git; 5 | pub mod utils; 6 | -------------------------------------------------------------------------------- /app/src/main.rs: -------------------------------------------------------------------------------- 1 | use clap::Command; 2 | use gitswift::{ 3 | ai::fetch_commit_messages, 4 | cli::{confirm_commit, select_commit_message}, 5 | git::{commit_and_push, get_diff}, 6 | utils::Config, 7 | }; 8 | 9 | #[tokio::main] 10 | async fn main() { 11 | let matches = Command::new("gitswift") 12 | .version("1.0") 13 | .author("Ojas") 14 | .about("AI-powered git commit message") 15 | .subcommand(Command::new("push").about("Generate commit message and push changes")) 16 | .get_matches(); 17 | 18 | if matches.subcommand_matches("push").is_some() { 19 | let config = Config::new().expect("Failed to load configuration"); 20 | 21 | let diff = match get_diff(&config.repo_path) { 22 | Ok(diff) => diff, 23 | Err(e) => { 24 | println!("Error: {}", e); 25 | return; 26 | } 27 | }; 28 | 29 | let commit_messages = match fetch_commit_messages(&diff).await { 30 | Ok(msgs) => msgs.messages, 31 | Err(e) => { 32 | eprintln!("Failed to generate commit messages: {}", e); 33 | return; 34 | } 35 | }; 36 | 37 | let selected_message = match select_commit_message(&commit_messages) { 38 | Some(msg) => msg, 39 | None => { 40 | println!("No commit message selected. Operation cancelled."); 41 | return; 42 | } 43 | }; 44 | 45 | if confirm_commit().await { 46 | match commit_and_push(&selected_message).await { 47 | Ok(_) => println!("Changes committed and pushed successfully"), 48 | Err(e) => eprintln!("Failed to commit and push changes: {}", e), 49 | } 50 | } else { 51 | println!("Operation cancelled by user"); 52 | } 53 | } else { 54 | println!("Use 'gitswift push' to commit and push changes"); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /app/src/utils/config.rs: -------------------------------------------------------------------------------- 1 | use std::path::PathBuf; 2 | 3 | pub struct Config { 4 | pub repo_path: String, 5 | } 6 | 7 | impl Config { 8 | pub fn new() -> Result> { 9 | // try loading from multiple .env locations 10 | let env_locations = vec![ 11 | // current dir 12 | Some(PathBuf::from(".env")), 13 | // user's home dir 14 | dirs::home_dir().map(|mut p| { 15 | p.push(".git-swift"); 16 | p.push(".env"); 17 | p 18 | }), 19 | ]; 20 | 21 | // try loading .env from each location 22 | for path in env_locations.into_iter().flatten() { 23 | if path.exists() { 24 | dotenv::from_path(path).ok(); 25 | } 26 | } 27 | 28 | Ok(Config { 29 | repo_path: String::from("./"), 30 | }) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/utils/mod.rs: -------------------------------------------------------------------------------- 1 | mod config; 2 | 3 | pub use config::Config; 4 | -------------------------------------------------------------------------------- /server/.dockerignore: -------------------------------------------------------------------------------- 1 | target/ 2 | Dockerfile 3 | docker-compose.yml 4 | .git 5 | .gitignore 6 | -------------------------------------------------------------------------------- /server/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /build 3 | server 4 | .env 5 | -------------------------------------------------------------------------------- /server/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 = "addr2line" 7 | version = "0.24.2" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler2" 16 | version = "2.0.0" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 19 | 20 | [[package]] 21 | name = "android-tzdata" 22 | version = "0.1.1" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" 25 | 26 | [[package]] 27 | name = "android_system_properties" 28 | version = "0.1.5" 29 | source = "registry+https://github.com/rust-lang/crates.io-index" 30 | checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" 31 | dependencies = [ 32 | "libc", 33 | ] 34 | 35 | [[package]] 36 | name = "atomic-waker" 37 | version = "1.1.2" 38 | source = "registry+https://github.com/rust-lang/crates.io-index" 39 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 40 | 41 | [[package]] 42 | name = "autocfg" 43 | version = "1.4.0" 44 | source = "registry+https://github.com/rust-lang/crates.io-index" 45 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 46 | 47 | [[package]] 48 | name = "axum" 49 | version = "0.8.1" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | checksum = "6d6fd624c75e18b3b4c6b9caf42b1afe24437daaee904069137d8bab077be8b8" 52 | dependencies = [ 53 | "axum-core", 54 | "bytes", 55 | "form_urlencoded", 56 | "futures-util", 57 | "http", 58 | "http-body", 59 | "http-body-util", 60 | "hyper", 61 | "hyper-util", 62 | "itoa", 63 | "matchit", 64 | "memchr", 65 | "mime", 66 | "percent-encoding", 67 | "pin-project-lite", 68 | "rustversion", 69 | "serde", 70 | "serde_json", 71 | "serde_path_to_error", 72 | "serde_urlencoded", 73 | "sync_wrapper", 74 | "tokio", 75 | "tower", 76 | "tower-layer", 77 | "tower-service", 78 | "tracing", 79 | ] 80 | 81 | [[package]] 82 | name = "axum-core" 83 | version = "0.5.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "df1362f362fd16024ae199c1970ce98f9661bf5ef94b9808fee734bc3698b733" 86 | dependencies = [ 87 | "bytes", 88 | "futures-util", 89 | "http", 90 | "http-body", 91 | "http-body-util", 92 | "mime", 93 | "pin-project-lite", 94 | "rustversion", 95 | "sync_wrapper", 96 | "tower-layer", 97 | "tower-service", 98 | "tracing", 99 | ] 100 | 101 | [[package]] 102 | name = "backtrace" 103 | version = "0.3.74" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" 106 | dependencies = [ 107 | "addr2line", 108 | "cfg-if", 109 | "libc", 110 | "miniz_oxide", 111 | "object", 112 | "rustc-demangle", 113 | "windows-targets", 114 | ] 115 | 116 | [[package]] 117 | name = "base64" 118 | version = "0.22.1" 119 | source = "registry+https://github.com/rust-lang/crates.io-index" 120 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 121 | 122 | [[package]] 123 | name = "bitflags" 124 | version = "2.8.0" 125 | source = "registry+https://github.com/rust-lang/crates.io-index" 126 | checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" 127 | 128 | [[package]] 129 | name = "bumpalo" 130 | version = "3.17.0" 131 | source = "registry+https://github.com/rust-lang/crates.io-index" 132 | checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" 133 | 134 | [[package]] 135 | name = "byteorder" 136 | version = "1.5.0" 137 | source = "registry+https://github.com/rust-lang/crates.io-index" 138 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 139 | 140 | [[package]] 141 | name = "bytes" 142 | version = "1.10.0" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" 145 | 146 | [[package]] 147 | name = "cc" 148 | version = "1.2.13" 149 | source = "registry+https://github.com/rust-lang/crates.io-index" 150 | checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda" 151 | dependencies = [ 152 | "shlex", 153 | ] 154 | 155 | [[package]] 156 | name = "cfg-if" 157 | version = "1.0.0" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 160 | 161 | [[package]] 162 | name = "cfg_aliases" 163 | version = "0.2.1" 164 | source = "registry+https://github.com/rust-lang/crates.io-index" 165 | checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" 166 | 167 | [[package]] 168 | name = "chrono" 169 | version = "0.4.39" 170 | source = "registry+https://github.com/rust-lang/crates.io-index" 171 | checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" 172 | dependencies = [ 173 | "android-tzdata", 174 | "iana-time-zone", 175 | "js-sys", 176 | "num-traits", 177 | "wasm-bindgen", 178 | "windows-targets", 179 | ] 180 | 181 | [[package]] 182 | name = "core-foundation" 183 | version = "0.9.4" 184 | source = "registry+https://github.com/rust-lang/crates.io-index" 185 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 186 | dependencies = [ 187 | "core-foundation-sys", 188 | "libc", 189 | ] 190 | 191 | [[package]] 192 | name = "core-foundation-sys" 193 | version = "0.8.7" 194 | source = "registry+https://github.com/rust-lang/crates.io-index" 195 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 196 | 197 | [[package]] 198 | name = "derive_more" 199 | version = "1.0.0" 200 | source = "registry+https://github.com/rust-lang/crates.io-index" 201 | checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" 202 | dependencies = [ 203 | "derive_more-impl", 204 | ] 205 | 206 | [[package]] 207 | name = "derive_more-impl" 208 | version = "1.0.0" 209 | source = "registry+https://github.com/rust-lang/crates.io-index" 210 | checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" 211 | dependencies = [ 212 | "proc-macro2", 213 | "quote", 214 | "syn", 215 | ] 216 | 217 | [[package]] 218 | name = "displaydoc" 219 | version = "0.2.5" 220 | source = "registry+https://github.com/rust-lang/crates.io-index" 221 | checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" 222 | dependencies = [ 223 | "proc-macro2", 224 | "quote", 225 | "syn", 226 | ] 227 | 228 | [[package]] 229 | name = "dotenvy" 230 | version = "0.15.7" 231 | source = "registry+https://github.com/rust-lang/crates.io-index" 232 | checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" 233 | 234 | [[package]] 235 | name = "encoding_rs" 236 | version = "0.8.35" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 239 | dependencies = [ 240 | "cfg-if", 241 | ] 242 | 243 | [[package]] 244 | name = "equivalent" 245 | version = "1.0.1" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 248 | 249 | [[package]] 250 | name = "errno" 251 | version = "0.3.10" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" 254 | dependencies = [ 255 | "libc", 256 | "windows-sys 0.59.0", 257 | ] 258 | 259 | [[package]] 260 | name = "fastrand" 261 | version = "2.3.0" 262 | source = "registry+https://github.com/rust-lang/crates.io-index" 263 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 264 | 265 | [[package]] 266 | name = "fnv" 267 | version = "1.0.7" 268 | source = "registry+https://github.com/rust-lang/crates.io-index" 269 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 270 | 271 | [[package]] 272 | name = "foreign-types" 273 | version = "0.3.2" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 276 | dependencies = [ 277 | "foreign-types-shared", 278 | ] 279 | 280 | [[package]] 281 | name = "foreign-types-shared" 282 | version = "0.1.1" 283 | source = "registry+https://github.com/rust-lang/crates.io-index" 284 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 285 | 286 | [[package]] 287 | name = "form_urlencoded" 288 | version = "1.2.1" 289 | source = "registry+https://github.com/rust-lang/crates.io-index" 290 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 291 | dependencies = [ 292 | "percent-encoding", 293 | ] 294 | 295 | [[package]] 296 | name = "futures-channel" 297 | version = "0.3.31" 298 | source = "registry+https://github.com/rust-lang/crates.io-index" 299 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 300 | dependencies = [ 301 | "futures-core", 302 | ] 303 | 304 | [[package]] 305 | name = "futures-core" 306 | version = "0.3.31" 307 | source = "registry+https://github.com/rust-lang/crates.io-index" 308 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 309 | 310 | [[package]] 311 | name = "futures-sink" 312 | version = "0.3.31" 313 | source = "registry+https://github.com/rust-lang/crates.io-index" 314 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 315 | 316 | [[package]] 317 | name = "futures-task" 318 | version = "0.3.31" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 321 | 322 | [[package]] 323 | name = "futures-util" 324 | version = "0.3.31" 325 | source = "registry+https://github.com/rust-lang/crates.io-index" 326 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 327 | dependencies = [ 328 | "futures-core", 329 | "futures-task", 330 | "pin-project-lite", 331 | "pin-utils", 332 | ] 333 | 334 | [[package]] 335 | name = "gemini-rs" 336 | version = "0.4.2" 337 | source = "registry+https://github.com/rust-lang/crates.io-index" 338 | checksum = "f8bcddea0b28e3220824683f6e622d2ffb4cb234e9a6edd2a3cfa6840c99244b" 339 | dependencies = [ 340 | "json", 341 | "reqwest", 342 | "thiserror 1.0.69", 343 | "tokio", 344 | ] 345 | 346 | [[package]] 347 | name = "getrandom" 348 | version = "0.2.15" 349 | source = "registry+https://github.com/rust-lang/crates.io-index" 350 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" 351 | dependencies = [ 352 | "cfg-if", 353 | "js-sys", 354 | "libc", 355 | "wasi 0.11.0+wasi-snapshot-preview1", 356 | "wasm-bindgen", 357 | ] 358 | 359 | [[package]] 360 | name = "getrandom" 361 | version = "0.3.1" 362 | source = "registry+https://github.com/rust-lang/crates.io-index" 363 | checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" 364 | dependencies = [ 365 | "cfg-if", 366 | "libc", 367 | "wasi 0.13.3+wasi-0.2.2", 368 | "windows-targets", 369 | ] 370 | 371 | [[package]] 372 | name = "gimli" 373 | version = "0.31.1" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 376 | 377 | [[package]] 378 | name = "h2" 379 | version = "0.4.7" 380 | source = "registry+https://github.com/rust-lang/crates.io-index" 381 | checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" 382 | dependencies = [ 383 | "atomic-waker", 384 | "bytes", 385 | "fnv", 386 | "futures-core", 387 | "futures-sink", 388 | "http", 389 | "indexmap", 390 | "slab", 391 | "tokio", 392 | "tokio-util", 393 | "tracing", 394 | ] 395 | 396 | [[package]] 397 | name = "hashbrown" 398 | version = "0.15.2" 399 | source = "registry+https://github.com/rust-lang/crates.io-index" 400 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" 401 | 402 | [[package]] 403 | name = "http" 404 | version = "1.2.0" 405 | source = "registry+https://github.com/rust-lang/crates.io-index" 406 | checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" 407 | dependencies = [ 408 | "bytes", 409 | "fnv", 410 | "itoa", 411 | ] 412 | 413 | [[package]] 414 | name = "http-body" 415 | version = "1.0.1" 416 | source = "registry+https://github.com/rust-lang/crates.io-index" 417 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 418 | dependencies = [ 419 | "bytes", 420 | "http", 421 | ] 422 | 423 | [[package]] 424 | name = "http-body-util" 425 | version = "0.1.2" 426 | source = "registry+https://github.com/rust-lang/crates.io-index" 427 | checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" 428 | dependencies = [ 429 | "bytes", 430 | "futures-util", 431 | "http", 432 | "http-body", 433 | "pin-project-lite", 434 | ] 435 | 436 | [[package]] 437 | name = "httparse" 438 | version = "1.10.0" 439 | source = "registry+https://github.com/rust-lang/crates.io-index" 440 | checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" 441 | 442 | [[package]] 443 | name = "httpdate" 444 | version = "1.0.3" 445 | source = "registry+https://github.com/rust-lang/crates.io-index" 446 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" 447 | 448 | [[package]] 449 | name = "hyper" 450 | version = "1.6.0" 451 | source = "registry+https://github.com/rust-lang/crates.io-index" 452 | checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" 453 | dependencies = [ 454 | "bytes", 455 | "futures-channel", 456 | "futures-util", 457 | "h2", 458 | "http", 459 | "http-body", 460 | "httparse", 461 | "httpdate", 462 | "itoa", 463 | "pin-project-lite", 464 | "smallvec", 465 | "tokio", 466 | "want", 467 | ] 468 | 469 | [[package]] 470 | name = "hyper-rustls" 471 | version = "0.27.5" 472 | source = "registry+https://github.com/rust-lang/crates.io-index" 473 | checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" 474 | dependencies = [ 475 | "futures-util", 476 | "http", 477 | "hyper", 478 | "hyper-util", 479 | "rustls", 480 | "rustls-pki-types", 481 | "tokio", 482 | "tokio-rustls", 483 | "tower-service", 484 | "webpki-roots", 485 | ] 486 | 487 | [[package]] 488 | name = "hyper-tls" 489 | version = "0.6.0" 490 | source = "registry+https://github.com/rust-lang/crates.io-index" 491 | checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 492 | dependencies = [ 493 | "bytes", 494 | "http-body-util", 495 | "hyper", 496 | "hyper-util", 497 | "native-tls", 498 | "tokio", 499 | "tokio-native-tls", 500 | "tower-service", 501 | ] 502 | 503 | [[package]] 504 | name = "hyper-util" 505 | version = "0.1.10" 506 | source = "registry+https://github.com/rust-lang/crates.io-index" 507 | checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" 508 | dependencies = [ 509 | "bytes", 510 | "futures-channel", 511 | "futures-util", 512 | "http", 513 | "http-body", 514 | "hyper", 515 | "pin-project-lite", 516 | "socket2", 517 | "tokio", 518 | "tower-service", 519 | "tracing", 520 | ] 521 | 522 | [[package]] 523 | name = "iana-time-zone" 524 | version = "0.1.61" 525 | source = "registry+https://github.com/rust-lang/crates.io-index" 526 | checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" 527 | dependencies = [ 528 | "android_system_properties", 529 | "core-foundation-sys", 530 | "iana-time-zone-haiku", 531 | "js-sys", 532 | "wasm-bindgen", 533 | "windows-core", 534 | ] 535 | 536 | [[package]] 537 | name = "iana-time-zone-haiku" 538 | version = "0.1.2" 539 | source = "registry+https://github.com/rust-lang/crates.io-index" 540 | checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" 541 | dependencies = [ 542 | "cc", 543 | ] 544 | 545 | [[package]] 546 | name = "icu_collections" 547 | version = "1.5.0" 548 | source = "registry+https://github.com/rust-lang/crates.io-index" 549 | checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" 550 | dependencies = [ 551 | "displaydoc", 552 | "yoke", 553 | "zerofrom", 554 | "zerovec", 555 | ] 556 | 557 | [[package]] 558 | name = "icu_locid" 559 | version = "1.5.0" 560 | source = "registry+https://github.com/rust-lang/crates.io-index" 561 | checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" 562 | dependencies = [ 563 | "displaydoc", 564 | "litemap", 565 | "tinystr", 566 | "writeable", 567 | "zerovec", 568 | ] 569 | 570 | [[package]] 571 | name = "icu_locid_transform" 572 | version = "1.5.0" 573 | source = "registry+https://github.com/rust-lang/crates.io-index" 574 | checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" 575 | dependencies = [ 576 | "displaydoc", 577 | "icu_locid", 578 | "icu_locid_transform_data", 579 | "icu_provider", 580 | "tinystr", 581 | "zerovec", 582 | ] 583 | 584 | [[package]] 585 | name = "icu_locid_transform_data" 586 | version = "1.5.0" 587 | source = "registry+https://github.com/rust-lang/crates.io-index" 588 | checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" 589 | 590 | [[package]] 591 | name = "icu_normalizer" 592 | version = "1.5.0" 593 | source = "registry+https://github.com/rust-lang/crates.io-index" 594 | checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" 595 | dependencies = [ 596 | "displaydoc", 597 | "icu_collections", 598 | "icu_normalizer_data", 599 | "icu_properties", 600 | "icu_provider", 601 | "smallvec", 602 | "utf16_iter", 603 | "utf8_iter", 604 | "write16", 605 | "zerovec", 606 | ] 607 | 608 | [[package]] 609 | name = "icu_normalizer_data" 610 | version = "1.5.0" 611 | source = "registry+https://github.com/rust-lang/crates.io-index" 612 | checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" 613 | 614 | [[package]] 615 | name = "icu_properties" 616 | version = "1.5.1" 617 | source = "registry+https://github.com/rust-lang/crates.io-index" 618 | checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" 619 | dependencies = [ 620 | "displaydoc", 621 | "icu_collections", 622 | "icu_locid_transform", 623 | "icu_properties_data", 624 | "icu_provider", 625 | "tinystr", 626 | "zerovec", 627 | ] 628 | 629 | [[package]] 630 | name = "icu_properties_data" 631 | version = "1.5.0" 632 | source = "registry+https://github.com/rust-lang/crates.io-index" 633 | checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" 634 | 635 | [[package]] 636 | name = "icu_provider" 637 | version = "1.5.0" 638 | source = "registry+https://github.com/rust-lang/crates.io-index" 639 | checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" 640 | dependencies = [ 641 | "displaydoc", 642 | "icu_locid", 643 | "icu_provider_macros", 644 | "stable_deref_trait", 645 | "tinystr", 646 | "writeable", 647 | "yoke", 648 | "zerofrom", 649 | "zerovec", 650 | ] 651 | 652 | [[package]] 653 | name = "icu_provider_macros" 654 | version = "1.5.0" 655 | source = "registry+https://github.com/rust-lang/crates.io-index" 656 | checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" 657 | dependencies = [ 658 | "proc-macro2", 659 | "quote", 660 | "syn", 661 | ] 662 | 663 | [[package]] 664 | name = "idna" 665 | version = "1.0.3" 666 | source = "registry+https://github.com/rust-lang/crates.io-index" 667 | checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" 668 | dependencies = [ 669 | "idna_adapter", 670 | "smallvec", 671 | "utf8_iter", 672 | ] 673 | 674 | [[package]] 675 | name = "idna_adapter" 676 | version = "1.2.0" 677 | source = "registry+https://github.com/rust-lang/crates.io-index" 678 | checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" 679 | dependencies = [ 680 | "icu_normalizer", 681 | "icu_properties", 682 | ] 683 | 684 | [[package]] 685 | name = "indexmap" 686 | version = "2.7.1" 687 | source = "registry+https://github.com/rust-lang/crates.io-index" 688 | checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" 689 | dependencies = [ 690 | "equivalent", 691 | "hashbrown", 692 | ] 693 | 694 | [[package]] 695 | name = "ipnet" 696 | version = "2.11.0" 697 | source = "registry+https://github.com/rust-lang/crates.io-index" 698 | checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" 699 | 700 | [[package]] 701 | name = "itoa" 702 | version = "1.0.14" 703 | source = "registry+https://github.com/rust-lang/crates.io-index" 704 | checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" 705 | 706 | [[package]] 707 | name = "js-sys" 708 | version = "0.3.77" 709 | source = "registry+https://github.com/rust-lang/crates.io-index" 710 | checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" 711 | dependencies = [ 712 | "once_cell", 713 | "wasm-bindgen", 714 | ] 715 | 716 | [[package]] 717 | name = "json" 718 | version = "0.12.4" 719 | source = "registry+https://github.com/rust-lang/crates.io-index" 720 | checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd" 721 | 722 | [[package]] 723 | name = "libc" 724 | version = "0.2.169" 725 | source = "registry+https://github.com/rust-lang/crates.io-index" 726 | checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 727 | 728 | [[package]] 729 | name = "linux-raw-sys" 730 | version = "0.4.15" 731 | source = "registry+https://github.com/rust-lang/crates.io-index" 732 | checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" 733 | 734 | [[package]] 735 | name = "litemap" 736 | version = "0.7.4" 737 | source = "registry+https://github.com/rust-lang/crates.io-index" 738 | checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" 739 | 740 | [[package]] 741 | name = "lock_api" 742 | version = "0.4.12" 743 | source = "registry+https://github.com/rust-lang/crates.io-index" 744 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 745 | dependencies = [ 746 | "autocfg", 747 | "scopeguard", 748 | ] 749 | 750 | [[package]] 751 | name = "log" 752 | version = "0.4.25" 753 | source = "registry+https://github.com/rust-lang/crates.io-index" 754 | checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" 755 | 756 | [[package]] 757 | name = "matchit" 758 | version = "0.8.4" 759 | source = "registry+https://github.com/rust-lang/crates.io-index" 760 | checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" 761 | 762 | [[package]] 763 | name = "memchr" 764 | version = "2.7.4" 765 | source = "registry+https://github.com/rust-lang/crates.io-index" 766 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 767 | 768 | [[package]] 769 | name = "mime" 770 | version = "0.3.17" 771 | source = "registry+https://github.com/rust-lang/crates.io-index" 772 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 773 | 774 | [[package]] 775 | name = "miniz_oxide" 776 | version = "0.8.4" 777 | source = "registry+https://github.com/rust-lang/crates.io-index" 778 | checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" 779 | dependencies = [ 780 | "adler2", 781 | ] 782 | 783 | [[package]] 784 | name = "mio" 785 | version = "1.0.3" 786 | source = "registry+https://github.com/rust-lang/crates.io-index" 787 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" 788 | dependencies = [ 789 | "libc", 790 | "wasi 0.11.0+wasi-snapshot-preview1", 791 | "windows-sys 0.52.0", 792 | ] 793 | 794 | [[package]] 795 | name = "native-tls" 796 | version = "0.2.13" 797 | source = "registry+https://github.com/rust-lang/crates.io-index" 798 | checksum = "0dab59f8e050d5df8e4dd87d9206fb6f65a483e20ac9fda365ade4fab353196c" 799 | dependencies = [ 800 | "libc", 801 | "log", 802 | "openssl", 803 | "openssl-probe", 804 | "openssl-sys", 805 | "schannel", 806 | "security-framework", 807 | "security-framework-sys", 808 | "tempfile", 809 | ] 810 | 811 | [[package]] 812 | name = "num-traits" 813 | version = "0.2.19" 814 | source = "registry+https://github.com/rust-lang/crates.io-index" 815 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 816 | dependencies = [ 817 | "autocfg", 818 | ] 819 | 820 | [[package]] 821 | name = "object" 822 | version = "0.36.7" 823 | source = "registry+https://github.com/rust-lang/crates.io-index" 824 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" 825 | dependencies = [ 826 | "memchr", 827 | ] 828 | 829 | [[package]] 830 | name = "once_cell" 831 | version = "1.20.3" 832 | source = "registry+https://github.com/rust-lang/crates.io-index" 833 | checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" 834 | 835 | [[package]] 836 | name = "openssl" 837 | version = "0.10.70" 838 | source = "registry+https://github.com/rust-lang/crates.io-index" 839 | checksum = "61cfb4e166a8bb8c9b55c500bc2308550148ece889be90f609377e58140f42c6" 840 | dependencies = [ 841 | "bitflags", 842 | "cfg-if", 843 | "foreign-types", 844 | "libc", 845 | "once_cell", 846 | "openssl-macros", 847 | "openssl-sys", 848 | ] 849 | 850 | [[package]] 851 | name = "openssl-macros" 852 | version = "0.1.1" 853 | source = "registry+https://github.com/rust-lang/crates.io-index" 854 | checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 855 | dependencies = [ 856 | "proc-macro2", 857 | "quote", 858 | "syn", 859 | ] 860 | 861 | [[package]] 862 | name = "openssl-probe" 863 | version = "0.1.6" 864 | source = "registry+https://github.com/rust-lang/crates.io-index" 865 | checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" 866 | 867 | [[package]] 868 | name = "openssl-sys" 869 | version = "0.9.105" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | checksum = "8b22d5b84be05a8d6947c7cb71f7c849aa0f112acd4bf51c2a7c1c988ac0a9dc" 872 | dependencies = [ 873 | "cc", 874 | "libc", 875 | "pkg-config", 876 | "vcpkg", 877 | ] 878 | 879 | [[package]] 880 | name = "parking_lot" 881 | version = "0.12.3" 882 | source = "registry+https://github.com/rust-lang/crates.io-index" 883 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 884 | dependencies = [ 885 | "lock_api", 886 | "parking_lot_core", 887 | ] 888 | 889 | [[package]] 890 | name = "parking_lot_core" 891 | version = "0.9.10" 892 | source = "registry+https://github.com/rust-lang/crates.io-index" 893 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 894 | dependencies = [ 895 | "cfg-if", 896 | "libc", 897 | "redox_syscall", 898 | "smallvec", 899 | "windows-targets", 900 | ] 901 | 902 | [[package]] 903 | name = "percent-encoding" 904 | version = "2.3.1" 905 | source = "registry+https://github.com/rust-lang/crates.io-index" 906 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 907 | 908 | [[package]] 909 | name = "pin-project-lite" 910 | version = "0.2.16" 911 | source = "registry+https://github.com/rust-lang/crates.io-index" 912 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 913 | 914 | [[package]] 915 | name = "pin-utils" 916 | version = "0.1.0" 917 | source = "registry+https://github.com/rust-lang/crates.io-index" 918 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 919 | 920 | [[package]] 921 | name = "pkg-config" 922 | version = "0.3.31" 923 | source = "registry+https://github.com/rust-lang/crates.io-index" 924 | checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" 925 | 926 | [[package]] 927 | name = "ppv-lite86" 928 | version = "0.2.20" 929 | source = "registry+https://github.com/rust-lang/crates.io-index" 930 | checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" 931 | dependencies = [ 932 | "zerocopy", 933 | ] 934 | 935 | [[package]] 936 | name = "proc-macro2" 937 | version = "1.0.93" 938 | source = "registry+https://github.com/rust-lang/crates.io-index" 939 | checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" 940 | dependencies = [ 941 | "unicode-ident", 942 | ] 943 | 944 | [[package]] 945 | name = "quinn" 946 | version = "0.11.6" 947 | source = "registry+https://github.com/rust-lang/crates.io-index" 948 | checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" 949 | dependencies = [ 950 | "bytes", 951 | "pin-project-lite", 952 | "quinn-proto", 953 | "quinn-udp", 954 | "rustc-hash", 955 | "rustls", 956 | "socket2", 957 | "thiserror 2.0.11", 958 | "tokio", 959 | "tracing", 960 | ] 961 | 962 | [[package]] 963 | name = "quinn-proto" 964 | version = "0.11.9" 965 | source = "registry+https://github.com/rust-lang/crates.io-index" 966 | checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" 967 | dependencies = [ 968 | "bytes", 969 | "getrandom 0.2.15", 970 | "rand", 971 | "ring", 972 | "rustc-hash", 973 | "rustls", 974 | "rustls-pki-types", 975 | "slab", 976 | "thiserror 2.0.11", 977 | "tinyvec", 978 | "tracing", 979 | "web-time", 980 | ] 981 | 982 | [[package]] 983 | name = "quinn-udp" 984 | version = "0.5.10" 985 | source = "registry+https://github.com/rust-lang/crates.io-index" 986 | checksum = "e46f3055866785f6b92bc6164b76be02ca8f2eb4b002c0354b28cf4c119e5944" 987 | dependencies = [ 988 | "cfg_aliases", 989 | "libc", 990 | "once_cell", 991 | "socket2", 992 | "tracing", 993 | "windows-sys 0.59.0", 994 | ] 995 | 996 | [[package]] 997 | name = "quote" 998 | version = "1.0.38" 999 | source = "registry+https://github.com/rust-lang/crates.io-index" 1000 | checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" 1001 | dependencies = [ 1002 | "proc-macro2", 1003 | ] 1004 | 1005 | [[package]] 1006 | name = "rand" 1007 | version = "0.8.5" 1008 | source = "registry+https://github.com/rust-lang/crates.io-index" 1009 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 1010 | dependencies = [ 1011 | "libc", 1012 | "rand_chacha", 1013 | "rand_core", 1014 | ] 1015 | 1016 | [[package]] 1017 | name = "rand_chacha" 1018 | version = "0.3.1" 1019 | source = "registry+https://github.com/rust-lang/crates.io-index" 1020 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 1021 | dependencies = [ 1022 | "ppv-lite86", 1023 | "rand_core", 1024 | ] 1025 | 1026 | [[package]] 1027 | name = "rand_core" 1028 | version = "0.6.4" 1029 | source = "registry+https://github.com/rust-lang/crates.io-index" 1030 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1031 | dependencies = [ 1032 | "getrandom 0.2.15", 1033 | ] 1034 | 1035 | [[package]] 1036 | name = "redox_syscall" 1037 | version = "0.5.8" 1038 | source = "registry+https://github.com/rust-lang/crates.io-index" 1039 | checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" 1040 | dependencies = [ 1041 | "bitflags", 1042 | ] 1043 | 1044 | [[package]] 1045 | name = "reqwest" 1046 | version = "0.12.12" 1047 | source = "registry+https://github.com/rust-lang/crates.io-index" 1048 | checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" 1049 | dependencies = [ 1050 | "base64", 1051 | "bytes", 1052 | "encoding_rs", 1053 | "futures-core", 1054 | "futures-util", 1055 | "h2", 1056 | "http", 1057 | "http-body", 1058 | "http-body-util", 1059 | "hyper", 1060 | "hyper-rustls", 1061 | "hyper-tls", 1062 | "hyper-util", 1063 | "ipnet", 1064 | "js-sys", 1065 | "log", 1066 | "mime", 1067 | "native-tls", 1068 | "once_cell", 1069 | "percent-encoding", 1070 | "pin-project-lite", 1071 | "quinn", 1072 | "rustls", 1073 | "rustls-pemfile", 1074 | "rustls-pki-types", 1075 | "serde", 1076 | "serde_json", 1077 | "serde_urlencoded", 1078 | "sync_wrapper", 1079 | "system-configuration", 1080 | "tokio", 1081 | "tokio-native-tls", 1082 | "tokio-rustls", 1083 | "tower", 1084 | "tower-service", 1085 | "url", 1086 | "wasm-bindgen", 1087 | "wasm-bindgen-futures", 1088 | "web-sys", 1089 | "webpki-roots", 1090 | "windows-registry", 1091 | ] 1092 | 1093 | [[package]] 1094 | name = "ring" 1095 | version = "0.17.8" 1096 | source = "registry+https://github.com/rust-lang/crates.io-index" 1097 | checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" 1098 | dependencies = [ 1099 | "cc", 1100 | "cfg-if", 1101 | "getrandom 0.2.15", 1102 | "libc", 1103 | "spin", 1104 | "untrusted", 1105 | "windows-sys 0.52.0", 1106 | ] 1107 | 1108 | [[package]] 1109 | name = "rustc-demangle" 1110 | version = "0.1.24" 1111 | source = "registry+https://github.com/rust-lang/crates.io-index" 1112 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 1113 | 1114 | [[package]] 1115 | name = "rustc-hash" 1116 | version = "2.1.1" 1117 | source = "registry+https://github.com/rust-lang/crates.io-index" 1118 | checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" 1119 | 1120 | [[package]] 1121 | name = "rustix" 1122 | version = "0.38.44" 1123 | source = "registry+https://github.com/rust-lang/crates.io-index" 1124 | checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" 1125 | dependencies = [ 1126 | "bitflags", 1127 | "errno", 1128 | "libc", 1129 | "linux-raw-sys", 1130 | "windows-sys 0.59.0", 1131 | ] 1132 | 1133 | [[package]] 1134 | name = "rustls" 1135 | version = "0.23.23" 1136 | source = "registry+https://github.com/rust-lang/crates.io-index" 1137 | checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395" 1138 | dependencies = [ 1139 | "once_cell", 1140 | "ring", 1141 | "rustls-pki-types", 1142 | "rustls-webpki", 1143 | "subtle", 1144 | "zeroize", 1145 | ] 1146 | 1147 | [[package]] 1148 | name = "rustls-pemfile" 1149 | version = "2.2.0" 1150 | source = "registry+https://github.com/rust-lang/crates.io-index" 1151 | checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" 1152 | dependencies = [ 1153 | "rustls-pki-types", 1154 | ] 1155 | 1156 | [[package]] 1157 | name = "rustls-pki-types" 1158 | version = "1.11.0" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" 1161 | dependencies = [ 1162 | "web-time", 1163 | ] 1164 | 1165 | [[package]] 1166 | name = "rustls-webpki" 1167 | version = "0.102.8" 1168 | source = "registry+https://github.com/rust-lang/crates.io-index" 1169 | checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" 1170 | dependencies = [ 1171 | "ring", 1172 | "rustls-pki-types", 1173 | "untrusted", 1174 | ] 1175 | 1176 | [[package]] 1177 | name = "rustversion" 1178 | version = "1.0.19" 1179 | source = "registry+https://github.com/rust-lang/crates.io-index" 1180 | checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" 1181 | 1182 | [[package]] 1183 | name = "ryu" 1184 | version = "1.0.19" 1185 | source = "registry+https://github.com/rust-lang/crates.io-index" 1186 | checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" 1187 | 1188 | [[package]] 1189 | name = "schannel" 1190 | version = "0.1.27" 1191 | source = "registry+https://github.com/rust-lang/crates.io-index" 1192 | checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" 1193 | dependencies = [ 1194 | "windows-sys 0.59.0", 1195 | ] 1196 | 1197 | [[package]] 1198 | name = "scopeguard" 1199 | version = "1.2.0" 1200 | source = "registry+https://github.com/rust-lang/crates.io-index" 1201 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1202 | 1203 | [[package]] 1204 | name = "security-framework" 1205 | version = "2.11.1" 1206 | source = "registry+https://github.com/rust-lang/crates.io-index" 1207 | checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1208 | dependencies = [ 1209 | "bitflags", 1210 | "core-foundation", 1211 | "core-foundation-sys", 1212 | "libc", 1213 | "security-framework-sys", 1214 | ] 1215 | 1216 | [[package]] 1217 | name = "security-framework-sys" 1218 | version = "2.14.0" 1219 | source = "registry+https://github.com/rust-lang/crates.io-index" 1220 | checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" 1221 | dependencies = [ 1222 | "core-foundation-sys", 1223 | "libc", 1224 | ] 1225 | 1226 | [[package]] 1227 | name = "serde" 1228 | version = "1.0.217" 1229 | source = "registry+https://github.com/rust-lang/crates.io-index" 1230 | checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" 1231 | dependencies = [ 1232 | "serde_derive", 1233 | ] 1234 | 1235 | [[package]] 1236 | name = "serde_derive" 1237 | version = "1.0.217" 1238 | source = "registry+https://github.com/rust-lang/crates.io-index" 1239 | checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" 1240 | dependencies = [ 1241 | "proc-macro2", 1242 | "quote", 1243 | "syn", 1244 | ] 1245 | 1246 | [[package]] 1247 | name = "serde_json" 1248 | version = "1.0.138" 1249 | source = "registry+https://github.com/rust-lang/crates.io-index" 1250 | checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" 1251 | dependencies = [ 1252 | "itoa", 1253 | "memchr", 1254 | "ryu", 1255 | "serde", 1256 | ] 1257 | 1258 | [[package]] 1259 | name = "serde_path_to_error" 1260 | version = "0.1.16" 1261 | source = "registry+https://github.com/rust-lang/crates.io-index" 1262 | checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6" 1263 | dependencies = [ 1264 | "itoa", 1265 | "serde", 1266 | ] 1267 | 1268 | [[package]] 1269 | name = "serde_urlencoded" 1270 | version = "0.7.1" 1271 | source = "registry+https://github.com/rust-lang/crates.io-index" 1272 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1273 | dependencies = [ 1274 | "form_urlencoded", 1275 | "itoa", 1276 | "ryu", 1277 | "serde", 1278 | ] 1279 | 1280 | [[package]] 1281 | name = "server" 1282 | version = "0.1.0" 1283 | dependencies = [ 1284 | "axum", 1285 | "chrono", 1286 | "derive_more", 1287 | "dotenvy", 1288 | "gemini-rs", 1289 | "reqwest", 1290 | "serde", 1291 | "serde_json", 1292 | "tokio", 1293 | ] 1294 | 1295 | [[package]] 1296 | name = "shlex" 1297 | version = "1.3.0" 1298 | source = "registry+https://github.com/rust-lang/crates.io-index" 1299 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1300 | 1301 | [[package]] 1302 | name = "signal-hook-registry" 1303 | version = "1.4.2" 1304 | source = "registry+https://github.com/rust-lang/crates.io-index" 1305 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 1306 | dependencies = [ 1307 | "libc", 1308 | ] 1309 | 1310 | [[package]] 1311 | name = "slab" 1312 | version = "0.4.9" 1313 | source = "registry+https://github.com/rust-lang/crates.io-index" 1314 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1315 | dependencies = [ 1316 | "autocfg", 1317 | ] 1318 | 1319 | [[package]] 1320 | name = "smallvec" 1321 | version = "1.13.2" 1322 | source = "registry+https://github.com/rust-lang/crates.io-index" 1323 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 1324 | 1325 | [[package]] 1326 | name = "socket2" 1327 | version = "0.5.8" 1328 | source = "registry+https://github.com/rust-lang/crates.io-index" 1329 | checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" 1330 | dependencies = [ 1331 | "libc", 1332 | "windows-sys 0.52.0", 1333 | ] 1334 | 1335 | [[package]] 1336 | name = "spin" 1337 | version = "0.9.8" 1338 | source = "registry+https://github.com/rust-lang/crates.io-index" 1339 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1340 | 1341 | [[package]] 1342 | name = "stable_deref_trait" 1343 | version = "1.2.0" 1344 | source = "registry+https://github.com/rust-lang/crates.io-index" 1345 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1346 | 1347 | [[package]] 1348 | name = "subtle" 1349 | version = "2.6.1" 1350 | source = "registry+https://github.com/rust-lang/crates.io-index" 1351 | checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1352 | 1353 | [[package]] 1354 | name = "syn" 1355 | version = "2.0.98" 1356 | source = "registry+https://github.com/rust-lang/crates.io-index" 1357 | checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" 1358 | dependencies = [ 1359 | "proc-macro2", 1360 | "quote", 1361 | "unicode-ident", 1362 | ] 1363 | 1364 | [[package]] 1365 | name = "sync_wrapper" 1366 | version = "1.0.2" 1367 | source = "registry+https://github.com/rust-lang/crates.io-index" 1368 | checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1369 | dependencies = [ 1370 | "futures-core", 1371 | ] 1372 | 1373 | [[package]] 1374 | name = "synstructure" 1375 | version = "0.13.1" 1376 | source = "registry+https://github.com/rust-lang/crates.io-index" 1377 | checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" 1378 | dependencies = [ 1379 | "proc-macro2", 1380 | "quote", 1381 | "syn", 1382 | ] 1383 | 1384 | [[package]] 1385 | name = "system-configuration" 1386 | version = "0.6.1" 1387 | source = "registry+https://github.com/rust-lang/crates.io-index" 1388 | checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 1389 | dependencies = [ 1390 | "bitflags", 1391 | "core-foundation", 1392 | "system-configuration-sys", 1393 | ] 1394 | 1395 | [[package]] 1396 | name = "system-configuration-sys" 1397 | version = "0.6.0" 1398 | source = "registry+https://github.com/rust-lang/crates.io-index" 1399 | checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 1400 | dependencies = [ 1401 | "core-foundation-sys", 1402 | "libc", 1403 | ] 1404 | 1405 | [[package]] 1406 | name = "tempfile" 1407 | version = "3.16.0" 1408 | source = "registry+https://github.com/rust-lang/crates.io-index" 1409 | checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" 1410 | dependencies = [ 1411 | "cfg-if", 1412 | "fastrand", 1413 | "getrandom 0.3.1", 1414 | "once_cell", 1415 | "rustix", 1416 | "windows-sys 0.59.0", 1417 | ] 1418 | 1419 | [[package]] 1420 | name = "thiserror" 1421 | version = "1.0.69" 1422 | source = "registry+https://github.com/rust-lang/crates.io-index" 1423 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" 1424 | dependencies = [ 1425 | "thiserror-impl 1.0.69", 1426 | ] 1427 | 1428 | [[package]] 1429 | name = "thiserror" 1430 | version = "2.0.11" 1431 | source = "registry+https://github.com/rust-lang/crates.io-index" 1432 | checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" 1433 | dependencies = [ 1434 | "thiserror-impl 2.0.11", 1435 | ] 1436 | 1437 | [[package]] 1438 | name = "thiserror-impl" 1439 | version = "1.0.69" 1440 | source = "registry+https://github.com/rust-lang/crates.io-index" 1441 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" 1442 | dependencies = [ 1443 | "proc-macro2", 1444 | "quote", 1445 | "syn", 1446 | ] 1447 | 1448 | [[package]] 1449 | name = "thiserror-impl" 1450 | version = "2.0.11" 1451 | source = "registry+https://github.com/rust-lang/crates.io-index" 1452 | checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" 1453 | dependencies = [ 1454 | "proc-macro2", 1455 | "quote", 1456 | "syn", 1457 | ] 1458 | 1459 | [[package]] 1460 | name = "tinystr" 1461 | version = "0.7.6" 1462 | source = "registry+https://github.com/rust-lang/crates.io-index" 1463 | checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" 1464 | dependencies = [ 1465 | "displaydoc", 1466 | "zerovec", 1467 | ] 1468 | 1469 | [[package]] 1470 | name = "tinyvec" 1471 | version = "1.8.1" 1472 | source = "registry+https://github.com/rust-lang/crates.io-index" 1473 | checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" 1474 | dependencies = [ 1475 | "tinyvec_macros", 1476 | ] 1477 | 1478 | [[package]] 1479 | name = "tinyvec_macros" 1480 | version = "0.1.1" 1481 | source = "registry+https://github.com/rust-lang/crates.io-index" 1482 | checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" 1483 | 1484 | [[package]] 1485 | name = "tokio" 1486 | version = "1.43.0" 1487 | source = "registry+https://github.com/rust-lang/crates.io-index" 1488 | checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" 1489 | dependencies = [ 1490 | "backtrace", 1491 | "bytes", 1492 | "libc", 1493 | "mio", 1494 | "parking_lot", 1495 | "pin-project-lite", 1496 | "signal-hook-registry", 1497 | "socket2", 1498 | "tokio-macros", 1499 | "windows-sys 0.52.0", 1500 | ] 1501 | 1502 | [[package]] 1503 | name = "tokio-macros" 1504 | version = "2.5.0" 1505 | source = "registry+https://github.com/rust-lang/crates.io-index" 1506 | checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" 1507 | dependencies = [ 1508 | "proc-macro2", 1509 | "quote", 1510 | "syn", 1511 | ] 1512 | 1513 | [[package]] 1514 | name = "tokio-native-tls" 1515 | version = "0.3.1" 1516 | source = "registry+https://github.com/rust-lang/crates.io-index" 1517 | checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 1518 | dependencies = [ 1519 | "native-tls", 1520 | "tokio", 1521 | ] 1522 | 1523 | [[package]] 1524 | name = "tokio-rustls" 1525 | version = "0.26.1" 1526 | source = "registry+https://github.com/rust-lang/crates.io-index" 1527 | checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" 1528 | dependencies = [ 1529 | "rustls", 1530 | "tokio", 1531 | ] 1532 | 1533 | [[package]] 1534 | name = "tokio-util" 1535 | version = "0.7.13" 1536 | source = "registry+https://github.com/rust-lang/crates.io-index" 1537 | checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" 1538 | dependencies = [ 1539 | "bytes", 1540 | "futures-core", 1541 | "futures-sink", 1542 | "pin-project-lite", 1543 | "tokio", 1544 | ] 1545 | 1546 | [[package]] 1547 | name = "tower" 1548 | version = "0.5.2" 1549 | source = "registry+https://github.com/rust-lang/crates.io-index" 1550 | checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 1551 | dependencies = [ 1552 | "futures-core", 1553 | "futures-util", 1554 | "pin-project-lite", 1555 | "sync_wrapper", 1556 | "tokio", 1557 | "tower-layer", 1558 | "tower-service", 1559 | "tracing", 1560 | ] 1561 | 1562 | [[package]] 1563 | name = "tower-layer" 1564 | version = "0.3.3" 1565 | source = "registry+https://github.com/rust-lang/crates.io-index" 1566 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 1567 | 1568 | [[package]] 1569 | name = "tower-service" 1570 | version = "0.3.3" 1571 | source = "registry+https://github.com/rust-lang/crates.io-index" 1572 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 1573 | 1574 | [[package]] 1575 | name = "tracing" 1576 | version = "0.1.41" 1577 | source = "registry+https://github.com/rust-lang/crates.io-index" 1578 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 1579 | dependencies = [ 1580 | "log", 1581 | "pin-project-lite", 1582 | "tracing-core", 1583 | ] 1584 | 1585 | [[package]] 1586 | name = "tracing-core" 1587 | version = "0.1.33" 1588 | source = "registry+https://github.com/rust-lang/crates.io-index" 1589 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" 1590 | dependencies = [ 1591 | "once_cell", 1592 | ] 1593 | 1594 | [[package]] 1595 | name = "try-lock" 1596 | version = "0.2.5" 1597 | source = "registry+https://github.com/rust-lang/crates.io-index" 1598 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1599 | 1600 | [[package]] 1601 | name = "unicode-ident" 1602 | version = "1.0.16" 1603 | source = "registry+https://github.com/rust-lang/crates.io-index" 1604 | checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" 1605 | 1606 | [[package]] 1607 | name = "untrusted" 1608 | version = "0.9.0" 1609 | source = "registry+https://github.com/rust-lang/crates.io-index" 1610 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1611 | 1612 | [[package]] 1613 | name = "url" 1614 | version = "2.5.4" 1615 | source = "registry+https://github.com/rust-lang/crates.io-index" 1616 | checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" 1617 | dependencies = [ 1618 | "form_urlencoded", 1619 | "idna", 1620 | "percent-encoding", 1621 | ] 1622 | 1623 | [[package]] 1624 | name = "utf16_iter" 1625 | version = "1.0.5" 1626 | source = "registry+https://github.com/rust-lang/crates.io-index" 1627 | checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" 1628 | 1629 | [[package]] 1630 | name = "utf8_iter" 1631 | version = "1.0.4" 1632 | source = "registry+https://github.com/rust-lang/crates.io-index" 1633 | checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" 1634 | 1635 | [[package]] 1636 | name = "vcpkg" 1637 | version = "0.2.15" 1638 | source = "registry+https://github.com/rust-lang/crates.io-index" 1639 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 1640 | 1641 | [[package]] 1642 | name = "want" 1643 | version = "0.3.1" 1644 | source = "registry+https://github.com/rust-lang/crates.io-index" 1645 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1646 | dependencies = [ 1647 | "try-lock", 1648 | ] 1649 | 1650 | [[package]] 1651 | name = "wasi" 1652 | version = "0.11.0+wasi-snapshot-preview1" 1653 | source = "registry+https://github.com/rust-lang/crates.io-index" 1654 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1655 | 1656 | [[package]] 1657 | name = "wasi" 1658 | version = "0.13.3+wasi-0.2.2" 1659 | source = "registry+https://github.com/rust-lang/crates.io-index" 1660 | checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" 1661 | dependencies = [ 1662 | "wit-bindgen-rt", 1663 | ] 1664 | 1665 | [[package]] 1666 | name = "wasm-bindgen" 1667 | version = "0.2.100" 1668 | source = "registry+https://github.com/rust-lang/crates.io-index" 1669 | checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" 1670 | dependencies = [ 1671 | "cfg-if", 1672 | "once_cell", 1673 | "rustversion", 1674 | "wasm-bindgen-macro", 1675 | ] 1676 | 1677 | [[package]] 1678 | name = "wasm-bindgen-backend" 1679 | version = "0.2.100" 1680 | source = "registry+https://github.com/rust-lang/crates.io-index" 1681 | checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" 1682 | dependencies = [ 1683 | "bumpalo", 1684 | "log", 1685 | "proc-macro2", 1686 | "quote", 1687 | "syn", 1688 | "wasm-bindgen-shared", 1689 | ] 1690 | 1691 | [[package]] 1692 | name = "wasm-bindgen-futures" 1693 | version = "0.4.50" 1694 | source = "registry+https://github.com/rust-lang/crates.io-index" 1695 | checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" 1696 | dependencies = [ 1697 | "cfg-if", 1698 | "js-sys", 1699 | "once_cell", 1700 | "wasm-bindgen", 1701 | "web-sys", 1702 | ] 1703 | 1704 | [[package]] 1705 | name = "wasm-bindgen-macro" 1706 | version = "0.2.100" 1707 | source = "registry+https://github.com/rust-lang/crates.io-index" 1708 | checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" 1709 | dependencies = [ 1710 | "quote", 1711 | "wasm-bindgen-macro-support", 1712 | ] 1713 | 1714 | [[package]] 1715 | name = "wasm-bindgen-macro-support" 1716 | version = "0.2.100" 1717 | source = "registry+https://github.com/rust-lang/crates.io-index" 1718 | checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" 1719 | dependencies = [ 1720 | "proc-macro2", 1721 | "quote", 1722 | "syn", 1723 | "wasm-bindgen-backend", 1724 | "wasm-bindgen-shared", 1725 | ] 1726 | 1727 | [[package]] 1728 | name = "wasm-bindgen-shared" 1729 | version = "0.2.100" 1730 | source = "registry+https://github.com/rust-lang/crates.io-index" 1731 | checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" 1732 | dependencies = [ 1733 | "unicode-ident", 1734 | ] 1735 | 1736 | [[package]] 1737 | name = "web-sys" 1738 | version = "0.3.77" 1739 | source = "registry+https://github.com/rust-lang/crates.io-index" 1740 | checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" 1741 | dependencies = [ 1742 | "js-sys", 1743 | "wasm-bindgen", 1744 | ] 1745 | 1746 | [[package]] 1747 | name = "web-time" 1748 | version = "1.1.0" 1749 | source = "registry+https://github.com/rust-lang/crates.io-index" 1750 | checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" 1751 | dependencies = [ 1752 | "js-sys", 1753 | "wasm-bindgen", 1754 | ] 1755 | 1756 | [[package]] 1757 | name = "webpki-roots" 1758 | version = "0.26.7" 1759 | source = "registry+https://github.com/rust-lang/crates.io-index" 1760 | checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" 1761 | dependencies = [ 1762 | "rustls-pki-types", 1763 | ] 1764 | 1765 | [[package]] 1766 | name = "windows-core" 1767 | version = "0.52.0" 1768 | source = "registry+https://github.com/rust-lang/crates.io-index" 1769 | checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" 1770 | dependencies = [ 1771 | "windows-targets", 1772 | ] 1773 | 1774 | [[package]] 1775 | name = "windows-registry" 1776 | version = "0.2.0" 1777 | source = "registry+https://github.com/rust-lang/crates.io-index" 1778 | checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" 1779 | dependencies = [ 1780 | "windows-result", 1781 | "windows-strings", 1782 | "windows-targets", 1783 | ] 1784 | 1785 | [[package]] 1786 | name = "windows-result" 1787 | version = "0.2.0" 1788 | source = "registry+https://github.com/rust-lang/crates.io-index" 1789 | checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" 1790 | dependencies = [ 1791 | "windows-targets", 1792 | ] 1793 | 1794 | [[package]] 1795 | name = "windows-strings" 1796 | version = "0.1.0" 1797 | source = "registry+https://github.com/rust-lang/crates.io-index" 1798 | checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" 1799 | dependencies = [ 1800 | "windows-result", 1801 | "windows-targets", 1802 | ] 1803 | 1804 | [[package]] 1805 | name = "windows-sys" 1806 | version = "0.52.0" 1807 | source = "registry+https://github.com/rust-lang/crates.io-index" 1808 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1809 | dependencies = [ 1810 | "windows-targets", 1811 | ] 1812 | 1813 | [[package]] 1814 | name = "windows-sys" 1815 | version = "0.59.0" 1816 | source = "registry+https://github.com/rust-lang/crates.io-index" 1817 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1818 | dependencies = [ 1819 | "windows-targets", 1820 | ] 1821 | 1822 | [[package]] 1823 | name = "windows-targets" 1824 | version = "0.52.6" 1825 | source = "registry+https://github.com/rust-lang/crates.io-index" 1826 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1827 | dependencies = [ 1828 | "windows_aarch64_gnullvm", 1829 | "windows_aarch64_msvc", 1830 | "windows_i686_gnu", 1831 | "windows_i686_gnullvm", 1832 | "windows_i686_msvc", 1833 | "windows_x86_64_gnu", 1834 | "windows_x86_64_gnullvm", 1835 | "windows_x86_64_msvc", 1836 | ] 1837 | 1838 | [[package]] 1839 | name = "windows_aarch64_gnullvm" 1840 | version = "0.52.6" 1841 | source = "registry+https://github.com/rust-lang/crates.io-index" 1842 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1843 | 1844 | [[package]] 1845 | name = "windows_aarch64_msvc" 1846 | version = "0.52.6" 1847 | source = "registry+https://github.com/rust-lang/crates.io-index" 1848 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1849 | 1850 | [[package]] 1851 | name = "windows_i686_gnu" 1852 | version = "0.52.6" 1853 | source = "registry+https://github.com/rust-lang/crates.io-index" 1854 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1855 | 1856 | [[package]] 1857 | name = "windows_i686_gnullvm" 1858 | version = "0.52.6" 1859 | source = "registry+https://github.com/rust-lang/crates.io-index" 1860 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1861 | 1862 | [[package]] 1863 | name = "windows_i686_msvc" 1864 | version = "0.52.6" 1865 | source = "registry+https://github.com/rust-lang/crates.io-index" 1866 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1867 | 1868 | [[package]] 1869 | name = "windows_x86_64_gnu" 1870 | version = "0.52.6" 1871 | source = "registry+https://github.com/rust-lang/crates.io-index" 1872 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1873 | 1874 | [[package]] 1875 | name = "windows_x86_64_gnullvm" 1876 | version = "0.52.6" 1877 | source = "registry+https://github.com/rust-lang/crates.io-index" 1878 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1879 | 1880 | [[package]] 1881 | name = "windows_x86_64_msvc" 1882 | version = "0.52.6" 1883 | source = "registry+https://github.com/rust-lang/crates.io-index" 1884 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1885 | 1886 | [[package]] 1887 | name = "wit-bindgen-rt" 1888 | version = "0.33.0" 1889 | source = "registry+https://github.com/rust-lang/crates.io-index" 1890 | checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" 1891 | dependencies = [ 1892 | "bitflags", 1893 | ] 1894 | 1895 | [[package]] 1896 | name = "write16" 1897 | version = "1.0.0" 1898 | source = "registry+https://github.com/rust-lang/crates.io-index" 1899 | checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" 1900 | 1901 | [[package]] 1902 | name = "writeable" 1903 | version = "0.5.5" 1904 | source = "registry+https://github.com/rust-lang/crates.io-index" 1905 | checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" 1906 | 1907 | [[package]] 1908 | name = "yoke" 1909 | version = "0.7.5" 1910 | source = "registry+https://github.com/rust-lang/crates.io-index" 1911 | checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" 1912 | dependencies = [ 1913 | "serde", 1914 | "stable_deref_trait", 1915 | "yoke-derive", 1916 | "zerofrom", 1917 | ] 1918 | 1919 | [[package]] 1920 | name = "yoke-derive" 1921 | version = "0.7.5" 1922 | source = "registry+https://github.com/rust-lang/crates.io-index" 1923 | checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" 1924 | dependencies = [ 1925 | "proc-macro2", 1926 | "quote", 1927 | "syn", 1928 | "synstructure", 1929 | ] 1930 | 1931 | [[package]] 1932 | name = "zerocopy" 1933 | version = "0.7.35" 1934 | source = "registry+https://github.com/rust-lang/crates.io-index" 1935 | checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" 1936 | dependencies = [ 1937 | "byteorder", 1938 | "zerocopy-derive", 1939 | ] 1940 | 1941 | [[package]] 1942 | name = "zerocopy-derive" 1943 | version = "0.7.35" 1944 | source = "registry+https://github.com/rust-lang/crates.io-index" 1945 | checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" 1946 | dependencies = [ 1947 | "proc-macro2", 1948 | "quote", 1949 | "syn", 1950 | ] 1951 | 1952 | [[package]] 1953 | name = "zerofrom" 1954 | version = "0.1.5" 1955 | source = "registry+https://github.com/rust-lang/crates.io-index" 1956 | checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" 1957 | dependencies = [ 1958 | "zerofrom-derive", 1959 | ] 1960 | 1961 | [[package]] 1962 | name = "zerofrom-derive" 1963 | version = "0.1.5" 1964 | source = "registry+https://github.com/rust-lang/crates.io-index" 1965 | checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" 1966 | dependencies = [ 1967 | "proc-macro2", 1968 | "quote", 1969 | "syn", 1970 | "synstructure", 1971 | ] 1972 | 1973 | [[package]] 1974 | name = "zeroize" 1975 | version = "1.8.1" 1976 | source = "registry+https://github.com/rust-lang/crates.io-index" 1977 | checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" 1978 | 1979 | [[package]] 1980 | name = "zerovec" 1981 | version = "0.10.4" 1982 | source = "registry+https://github.com/rust-lang/crates.io-index" 1983 | checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" 1984 | dependencies = [ 1985 | "yoke", 1986 | "zerofrom", 1987 | "zerovec-derive", 1988 | ] 1989 | 1990 | [[package]] 1991 | name = "zerovec-derive" 1992 | version = "0.10.3" 1993 | source = "registry+https://github.com/rust-lang/crates.io-index" 1994 | checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" 1995 | dependencies = [ 1996 | "proc-macro2", 1997 | "quote", 1998 | "syn", 1999 | ] 2000 | -------------------------------------------------------------------------------- /server/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "server" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | [dependencies] 7 | axum = "0.8.1" 8 | derive_more = { version = "1.0.0", features = ["from"] } 9 | serde = { version = "1.0.217", features = ["derive"] } 10 | tokio = { version = "1.43.0", features = ["full"] } 11 | serde_json = "1.0.135" 12 | dotenvy = "0.15.7" 13 | gemini-rs = "0.4.2" 14 | reqwest = { version = "0.12.12", features = ["json","rustls-tls"] } 15 | chrono = "0.4" 16 | 17 | -------------------------------------------------------------------------------- /server/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest 2 | 3 | 4 | WORKDIR /app 5 | COPY server . 6 | COPY .env . 7 | 8 | RUN chmod +x ./server 9 | 10 | CMD ["./server"] -------------------------------------------------------------------------------- /server/README.md: -------------------------------------------------------------------------------- 1 | # Git-Swift Server 2 | 3 | This server is built to accept requests from the git-swift cli and respond with generated commit messages 4 | 5 | ## Features 6 | 7 | - Generate commit messages based on commit differences using Groq's AI models 8 | 9 | ## Prerequisites 10 | 11 | - Rust (latest stable version) 12 | - Groq API key 13 | - GCC (latest stable version) 14 | 15 | ## Installation 16 | 17 | 1. Clone the repository: 18 | ```sh 19 | git clone https://github.com/its-me-ojas/git-swift.git 20 | cd git-swift/server 21 | ``` 22 | 2. Build the server: 23 | ```sh 24 | docker compose -f compile.yml up --build 25 | ``` 26 | 27 | ## Setup 28 | 29 | Before running the server, you need to setup the Groq API key: 30 | 1. Copy the contents of sample.env to .env in the same directory 31 | 2. Enter your Groq API key 32 | 33 | You can change the port that the server runs on by changing the following field in the .env: 34 | ```sh 35 | PORT=YOUR_PORT_HERE 36 | ``` 37 | 38 | ## Usage 39 | 40 | - Make POST request to /commit_message with the following json body - 41 | ```sh 42 | { 43 | "diff": "Commit difference here" 44 | } 45 | ``` 46 | - The response is a json object with the following structure - 47 | ```sh 48 | { 49 | "messages": ["The 3 commit messages"] 50 | } 51 | ``` 52 | 53 | ## Authors 54 | 55 | Tarush Mohindru - [tarushmohindru](http://github.com/tarushmohindru) 56 | Ojas - [its-me-ojas](http://github.com/its-me-ojas) 57 | -------------------------------------------------------------------------------- /server/build.sh: -------------------------------------------------------------------------------- 1 | sudo docker compose -f compile.yml run --rm rust-builder 2 | -------------------------------------------------------------------------------- /server/compile.yml: -------------------------------------------------------------------------------- 1 | version: "3.8" 2 | 3 | services: 4 | rust-builder: 5 | image: rust:alpine 6 | container_name: rust-ssl-builder 7 | working_dir: /app 8 | volumes: 9 | - .:/app 10 | environment: 11 | - OPENSSL_DIR=/usr 12 | - OPENSSL_STATIC=1 13 | - PKG_CONFIG_ALLOW_CROSS=1 14 | command: > 15 | sh -c "apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconf && 16 | cargo build --release --target=x86_64-unknown-linux-musl" 17 | -------------------------------------------------------------------------------- /server/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | services: 3 | gitswift-server: 4 | image: gitswift/server 5 | build: . 6 | ports: 7 | - "3777:5000" 8 | container_name: gitswift-server-container 9 | restart: always -------------------------------------------------------------------------------- /server/sample.env: -------------------------------------------------------------------------------- 1 | GROQ_API_KEY=Your_api_key_here 2 | PORT=5000 3 | -------------------------------------------------------------------------------- /server/src/errors.rs: -------------------------------------------------------------------------------- 1 | use axum::{http::StatusCode, response::IntoResponse}; 2 | use derive_more::derive::From; 3 | use serde::Serialize; 4 | 5 | pub type Result = core::result::Result; 6 | 7 | #[derive(Debug, Clone, Serialize, From)] 8 | pub enum Error{ 9 | InvalidRequest, 10 | UnableToGenerateCommitMessage, 11 | } 12 | 13 | impl std::error::Error for Error {} 14 | 15 | impl core::fmt::Display for Error{ 16 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 17 | write!(f, "{self:?}") 18 | } 19 | } 20 | 21 | impl IntoResponse for Error{ 22 | fn into_response(self) -> axum::response::Response { 23 | let mut response = StatusCode::INTERNAL_SERVER_ERROR.into_response(); 24 | 25 | response.extensions_mut().insert(self); 26 | 27 | response 28 | } 29 | } -------------------------------------------------------------------------------- /server/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod routes; 2 | pub mod errors; -------------------------------------------------------------------------------- /server/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::env; 2 | use std::time::Instant; 3 | 4 | use axum::{ 5 | http::Request, 6 | middleware::{self, Next}, 7 | response::Response, 8 | Router, 9 | }; 10 | use chrono; 11 | use server::{errors::Result, routes}; 12 | use tokio::net::TcpListener; 13 | 14 | #[tokio::main] 15 | async fn main() -> Result<()> { 16 | dotenvy::dotenv().unwrap(); 17 | 18 | let routes_all = Router::new() 19 | .merge(routes::commit_message::route()) 20 | .layer(middleware::from_fn(log_request)); // Add the middleware here! 21 | let port = env::var("PORT").unwrap_or(String::from("5000")); 22 | 23 | let listener = TcpListener::bind(&format!("0.0.0.0:{}", port)) 24 | .await 25 | .unwrap(); 26 | println!( 27 | "The server is listening on {:?}", 28 | listener.local_addr().unwrap() 29 | ); 30 | 31 | axum::serve(listener, routes_all.into_make_service()) 32 | .await 33 | .unwrap(); 34 | 35 | Ok(()) 36 | } 37 | 38 | async fn log_request(req: Request, next: Next) -> Result { 39 | let start = Instant::now(); 40 | let path = req.uri().path().to_owned(); 41 | let method = req.method().clone(); 42 | 43 | let response = next.run(req).await; 44 | 45 | let status = response.status(); 46 | let elapsed = start.elapsed(); 47 | 48 | println!( 49 | "{} {} {} {} {}ms", 50 | chrono::Local::now().format("%Y-%m-%d %H:%M:%S"), 51 | method, 52 | path, 53 | status, 54 | elapsed.as_millis() 55 | ); 56 | 57 | Ok(response) 58 | } -------------------------------------------------------------------------------- /server/src/routes/commit_message.rs: -------------------------------------------------------------------------------- 1 | use std::env; 2 | 3 | use axum::{ 4 | http::{HeaderMap, HeaderValue}, 5 | routing::{get, post}, 6 | Json, Router, 7 | }; 8 | use reqwest::header::{AUTHORIZATION, CONTENT_TYPE}; 9 | use serde::{Deserialize, Serialize}; 10 | use serde_json::{json, Value}; 11 | 12 | use crate::errors::Result; 13 | 14 | pub fn route() -> Router { 15 | Router::new() 16 | .route("/commit_message", post(generate_commit_message)) 17 | .route("/", get(hello_controller)) 18 | } 19 | 20 | async fn hello_controller() -> Result> { 21 | Ok(Json(json!({ "message": "You have Reached the Gitswift Server" }))) 22 | } 23 | 24 | async fn generate_commit_message(payload: Json) -> Result> { 25 | let api_key = env::var("GROQ_API_KEY").map_err(|e| { 26 | eprintln!("Failed to get GROQ_API_KEY: {}", e); 27 | crate::errors::Error::UnableToGenerateCommitMessage 28 | })?; 29 | 30 | let commit_messages = generate_commit_messages(&payload.diff, &api_key).await; 31 | match commit_messages { 32 | Ok(messages) => Ok(Json(json!({ "messages": messages }))), 33 | Err(e) => { 34 | eprintln!("Failed to generate commit messages: {:?}", e); 35 | Err(e) 36 | } 37 | } 38 | } 39 | 40 | pub async fn generate_commit_messages(diff: &str, api_key: &str) -> Result> { 41 | let client = reqwest::Client::new(); 42 | let models = vec![ 43 | "gemma2-9b-it", 44 | "llama-3.3-70b-versatile", 45 | "llama-3.1-8b-instant" 46 | ]; 47 | 48 | let mut all_messages = Vec::new(); 49 | 50 | let mut headers = HeaderMap::new(); 51 | headers.insert( 52 | AUTHORIZATION, 53 | HeaderValue::from_str(&format!("Bearer {}", api_key)) 54 | .map_err(|e| { 55 | eprintln!("Header error: {}", e); 56 | crate::errors::Error::UnableToGenerateCommitMessage 57 | })? 58 | ); 59 | headers.insert(CONTENT_TYPE, HeaderValue::from_static("application/json")); 60 | 61 | let prompt = format!( 62 | " 63 | Git Diff: 64 | {} 65 | ", 66 | diff 67 | ); 68 | let system_prompt = "You are an AI tool that analyzes git diffs and generates commit messages. 69 | Generate a single commit message that follows conventional commit message standards (e.g., 50-character summary line, followed by a detailed body if necessary). 70 | 71 | Use prefixes like Fix: Refactor: Feat: Chore: Docs: etc. as needed. 72 | 73 | IMPORTANT: 74 | Make sure the message follows the conventional/standard commit format and is ready to be used directly. 75 | Don't give any explanation or meta-commentary about the message. 76 | "; 77 | 78 | for model in models { 79 | println!("Trying model: {}", model); // Debug log 80 | 81 | let request_body = GroqRequest { 82 | model: model.to_string(), 83 | messages: vec![ 84 | Message { 85 | role: "system".to_string(), 86 | content: system_prompt.to_string(), 87 | }, 88 | Message { 89 | role: "user".to_string(), 90 | content: prompt.clone(), 91 | } 92 | ], 93 | temperature: 0.5, 94 | }; 95 | 96 | let response = client 97 | .post("https://api.groq.com/openai/v1/chat/completions") 98 | .headers(headers.clone()) 99 | .json(&request_body) 100 | .send() 101 | .await 102 | .map_err(|e| { 103 | eprintln!("API request error for model {}: {}", model, e); 104 | crate::errors::Error::UnableToGenerateCommitMessage 105 | })?; 106 | 107 | let response_text = response 108 | .text() 109 | .await 110 | .map_err(|e| { 111 | eprintln!("Failed to get response text for model {}: {}", model, e); 112 | crate::errors::Error::UnableToGenerateCommitMessage 113 | })?; 114 | 115 | println!("Response from {}: {}", model, response_text); // Debug log 116 | 117 | let groq_response: GroqResponse = serde_json::from_str(&response_text) 118 | .map_err(|e| { 119 | eprintln!("Failed to parse JSON for model {}: {}", model, e); 120 | eprintln!("Response text: {}", response_text); 121 | crate::errors::Error::UnableToGenerateCommitMessage 122 | })?; 123 | 124 | all_messages.push(groq_response.choices[0].message.content.trim().to_string()); 125 | } 126 | 127 | Ok(all_messages) 128 | } 129 | 130 | #[derive(Debug, Deserialize)] 131 | struct RequestPayload { 132 | diff: String, 133 | } 134 | 135 | #[derive(Debug, Serialize)] 136 | struct GroqRequest { 137 | model: String, 138 | messages: Vec, 139 | temperature: f32, 140 | } 141 | 142 | #[derive(Debug, Serialize)] 143 | struct Message { 144 | role: String, 145 | content: String, 146 | } 147 | 148 | #[derive(Debug, Deserialize)] 149 | struct GroqResponse { 150 | choices: Vec, 151 | } 152 | 153 | #[derive(Debug, Deserialize)] 154 | struct Choice { 155 | message: ResponseMessage, 156 | } 157 | 158 | #[derive(Debug, Deserialize)] 159 | struct ResponseMessage { 160 | content: String, 161 | } 162 | -------------------------------------------------------------------------------- /server/src/routes/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod commit_message; --------------------------------------------------------------------------------