├── .github
└── workflows
│ └── rust.yml
├── .gitignore
├── COPYING
├── Cargo.lock
├── Cargo.toml
├── README.md
├── example.toml
├── src
└── main.rs
└── webhookd.service
/.github/workflows/rust.yml:
--------------------------------------------------------------------------------
1 | name: Rust
2 |
3 | on:
4 | push:
5 | pull_request:
6 | branches: [ master ]
7 | workflow_dispatch:
8 |
9 | jobs:
10 | build:
11 |
12 | runs-on: ubuntu-24.04
13 |
14 | steps:
15 | - uses: actions/checkout@v4
16 | - uses: actions-rust-lang/setup-rust-toolchain@v1
17 | - name: Build executable
18 | run: cargo build --release --verbose
19 | - name: Build deb
20 | run: |
21 | cargo install cargo-deb
22 | cargo deb --separate-debug-symbols --compress-debug-symbols -v
23 | - name: Upload files
24 | uses: actions/upload-artifact@v4
25 | with:
26 | name: deb
27 | path: |
28 | target/release/webhookd
29 | target/debian/*.deb
30 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | config.toml
3 | *.log
--------------------------------------------------------------------------------
/COPYING:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | version = 4
4 |
5 | [[package]]
6 | name = "actix"
7 | version = "0.13.5"
8 | source = "registry+https://github.com/rust-lang/crates.io-index"
9 | checksum = "de7fa236829ba0841304542f7614c42b80fca007455315c45c785ccfa873a85b"
10 | dependencies = [
11 | "actix-macros",
12 | "actix-rt",
13 | "actix_derive",
14 | "bitflags",
15 | "bytes",
16 | "crossbeam-channel",
17 | "futures-core",
18 | "futures-sink",
19 | "futures-task",
20 | "futures-util",
21 | "log",
22 | "once_cell",
23 | "parking_lot",
24 | "pin-project-lite",
25 | "smallvec",
26 | "tokio",
27 | "tokio-util",
28 | ]
29 |
30 | [[package]]
31 | name = "actix-codec"
32 | version = "0.5.2"
33 | source = "registry+https://github.com/rust-lang/crates.io-index"
34 | checksum = "5f7b0a21988c1bf877cf4759ef5ddaac04c1c9fe808c9142ecb78ba97d97a28a"
35 | dependencies = [
36 | "bitflags",
37 | "bytes",
38 | "futures-core",
39 | "futures-sink",
40 | "memchr",
41 | "pin-project-lite",
42 | "tokio",
43 | "tokio-util",
44 | "tracing",
45 | ]
46 |
47 | [[package]]
48 | name = "actix-http"
49 | version = "3.9.0"
50 | source = "registry+https://github.com/rust-lang/crates.io-index"
51 | checksum = "d48f96fc3003717aeb9856ca3d02a8c7de502667ad76eeacd830b48d2e91fac4"
52 | dependencies = [
53 | "actix-codec",
54 | "actix-rt",
55 | "actix-service",
56 | "actix-utils",
57 | "ahash",
58 | "base64",
59 | "bitflags",
60 | "brotli",
61 | "bytes",
62 | "bytestring",
63 | "derive_more",
64 | "encoding_rs",
65 | "flate2",
66 | "futures-core",
67 | "h2",
68 | "http",
69 | "httparse",
70 | "httpdate",
71 | "itoa",
72 | "language-tags",
73 | "local-channel",
74 | "mime",
75 | "percent-encoding",
76 | "pin-project-lite",
77 | "rand",
78 | "sha1",
79 | "smallvec",
80 | "tokio",
81 | "tokio-util",
82 | "tracing",
83 | "zstd",
84 | ]
85 |
86 | [[package]]
87 | name = "actix-macros"
88 | version = "0.2.4"
89 | source = "registry+https://github.com/rust-lang/crates.io-index"
90 | checksum = "e01ed3140b2f8d422c68afa1ed2e85d996ea619c988ac834d255db32138655cb"
91 | dependencies = [
92 | "quote",
93 | "syn",
94 | ]
95 |
96 | [[package]]
97 | name = "actix-router"
98 | version = "0.5.3"
99 | source = "registry+https://github.com/rust-lang/crates.io-index"
100 | checksum = "13d324164c51f63867b57e73ba5936ea151b8a41a1d23d1031eeb9f70d0236f8"
101 | dependencies = [
102 | "bytestring",
103 | "cfg-if",
104 | "http",
105 | "regex",
106 | "regex-lite",
107 | "serde",
108 | "tracing",
109 | ]
110 |
111 | [[package]]
112 | name = "actix-rt"
113 | version = "2.10.0"
114 | source = "registry+https://github.com/rust-lang/crates.io-index"
115 | checksum = "24eda4e2a6e042aa4e55ac438a2ae052d3b5da0ecf83d7411e1a368946925208"
116 | dependencies = [
117 | "actix-macros",
118 | "futures-core",
119 | "tokio",
120 | ]
121 |
122 | [[package]]
123 | name = "actix-server"
124 | version = "2.5.0"
125 | source = "registry+https://github.com/rust-lang/crates.io-index"
126 | checksum = "7ca2549781d8dd6d75c40cf6b6051260a2cc2f3c62343d761a969a0640646894"
127 | dependencies = [
128 | "actix-rt",
129 | "actix-service",
130 | "actix-utils",
131 | "futures-core",
132 | "futures-util",
133 | "mio",
134 | "socket2",
135 | "tokio",
136 | "tracing",
137 | ]
138 |
139 | [[package]]
140 | name = "actix-service"
141 | version = "2.0.2"
142 | source = "registry+https://github.com/rust-lang/crates.io-index"
143 | checksum = "3b894941f818cfdc7ccc4b9e60fa7e53b5042a2e8567270f9147d5591893373a"
144 | dependencies = [
145 | "futures-core",
146 | "paste",
147 | "pin-project-lite",
148 | ]
149 |
150 | [[package]]
151 | name = "actix-utils"
152 | version = "3.0.1"
153 | source = "registry+https://github.com/rust-lang/crates.io-index"
154 | checksum = "88a1dcdff1466e3c2488e1cb5c36a71822750ad43839937f85d2f4d9f8b705d8"
155 | dependencies = [
156 | "local-waker",
157 | "pin-project-lite",
158 | ]
159 |
160 | [[package]]
161 | name = "actix-web"
162 | version = "4.9.0"
163 | source = "registry+https://github.com/rust-lang/crates.io-index"
164 | checksum = "9180d76e5cc7ccbc4d60a506f2c727730b154010262df5b910eb17dbe4b8cb38"
165 | dependencies = [
166 | "actix-codec",
167 | "actix-http",
168 | "actix-macros",
169 | "actix-router",
170 | "actix-rt",
171 | "actix-server",
172 | "actix-service",
173 | "actix-utils",
174 | "actix-web-codegen",
175 | "ahash",
176 | "bytes",
177 | "bytestring",
178 | "cfg-if",
179 | "cookie",
180 | "derive_more",
181 | "encoding_rs",
182 | "futures-core",
183 | "futures-util",
184 | "impl-more",
185 | "itoa",
186 | "language-tags",
187 | "log",
188 | "mime",
189 | "once_cell",
190 | "pin-project-lite",
191 | "regex",
192 | "regex-lite",
193 | "serde",
194 | "serde_json",
195 | "serde_urlencoded",
196 | "smallvec",
197 | "socket2",
198 | "time",
199 | "url",
200 | ]
201 |
202 | [[package]]
203 | name = "actix-web-codegen"
204 | version = "4.3.0"
205 | source = "registry+https://github.com/rust-lang/crates.io-index"
206 | checksum = "f591380e2e68490b5dfaf1dd1aa0ebe78d84ba7067078512b4ea6e4492d622b8"
207 | dependencies = [
208 | "actix-router",
209 | "proc-macro2",
210 | "quote",
211 | "syn",
212 | ]
213 |
214 | [[package]]
215 | name = "actix_derive"
216 | version = "0.6.2"
217 | source = "registry+https://github.com/rust-lang/crates.io-index"
218 | checksum = "b6ac1e58cded18cb28ddc17143c4dea5345b3ad575e14f32f66e4054a56eb271"
219 | dependencies = [
220 | "proc-macro2",
221 | "quote",
222 | "syn",
223 | ]
224 |
225 | [[package]]
226 | name = "addr2line"
227 | version = "0.24.1"
228 | source = "registry+https://github.com/rust-lang/crates.io-index"
229 | checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375"
230 | dependencies = [
231 | "gimli",
232 | ]
233 |
234 | [[package]]
235 | name = "adler2"
236 | version = "2.0.0"
237 | source = "registry+https://github.com/rust-lang/crates.io-index"
238 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
239 |
240 | [[package]]
241 | name = "ahash"
242 | version = "0.8.11"
243 | source = "registry+https://github.com/rust-lang/crates.io-index"
244 | checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
245 | dependencies = [
246 | "cfg-if",
247 | "getrandom",
248 | "once_cell",
249 | "version_check",
250 | "zerocopy",
251 | ]
252 |
253 | [[package]]
254 | name = "aho-corasick"
255 | version = "1.1.3"
256 | source = "registry+https://github.com/rust-lang/crates.io-index"
257 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
258 | dependencies = [
259 | "memchr",
260 | ]
261 |
262 | [[package]]
263 | name = "alloc-no-stdlib"
264 | version = "2.0.4"
265 | source = "registry+https://github.com/rust-lang/crates.io-index"
266 | checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
267 |
268 | [[package]]
269 | name = "alloc-stdlib"
270 | version = "0.2.2"
271 | source = "registry+https://github.com/rust-lang/crates.io-index"
272 | checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
273 | dependencies = [
274 | "alloc-no-stdlib",
275 | ]
276 |
277 | [[package]]
278 | name = "anstream"
279 | version = "0.6.15"
280 | source = "registry+https://github.com/rust-lang/crates.io-index"
281 | checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
282 | dependencies = [
283 | "anstyle",
284 | "anstyle-parse",
285 | "anstyle-query",
286 | "anstyle-wincon",
287 | "colorchoice",
288 | "is_terminal_polyfill",
289 | "utf8parse",
290 | ]
291 |
292 | [[package]]
293 | name = "anstyle"
294 | version = "1.0.8"
295 | source = "registry+https://github.com/rust-lang/crates.io-index"
296 | checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
297 |
298 | [[package]]
299 | name = "anstyle-parse"
300 | version = "0.2.5"
301 | source = "registry+https://github.com/rust-lang/crates.io-index"
302 | checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
303 | dependencies = [
304 | "utf8parse",
305 | ]
306 |
307 | [[package]]
308 | name = "anstyle-query"
309 | version = "1.1.1"
310 | source = "registry+https://github.com/rust-lang/crates.io-index"
311 | checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
312 | dependencies = [
313 | "windows-sys 0.52.0",
314 | ]
315 |
316 | [[package]]
317 | name = "anstyle-wincon"
318 | version = "3.0.4"
319 | source = "registry+https://github.com/rust-lang/crates.io-index"
320 | checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
321 | dependencies = [
322 | "anstyle",
323 | "windows-sys 0.52.0",
324 | ]
325 |
326 | [[package]]
327 | name = "autocfg"
328 | version = "1.3.0"
329 | source = "registry+https://github.com/rust-lang/crates.io-index"
330 | checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
331 |
332 | [[package]]
333 | name = "backtrace"
334 | version = "0.3.74"
335 | source = "registry+https://github.com/rust-lang/crates.io-index"
336 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
337 | dependencies = [
338 | "addr2line",
339 | "cfg-if",
340 | "libc",
341 | "miniz_oxide",
342 | "object",
343 | "rustc-demangle",
344 | "windows-targets",
345 | ]
346 |
347 | [[package]]
348 | name = "base64"
349 | version = "0.22.1"
350 | source = "registry+https://github.com/rust-lang/crates.io-index"
351 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
352 |
353 | [[package]]
354 | name = "bitflags"
355 | version = "2.6.0"
356 | source = "registry+https://github.com/rust-lang/crates.io-index"
357 | checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
358 |
359 | [[package]]
360 | name = "block-buffer"
361 | version = "0.10.4"
362 | source = "registry+https://github.com/rust-lang/crates.io-index"
363 | checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
364 | dependencies = [
365 | "generic-array",
366 | ]
367 |
368 | [[package]]
369 | name = "brotli"
370 | version = "6.0.0"
371 | source = "registry+https://github.com/rust-lang/crates.io-index"
372 | checksum = "74f7971dbd9326d58187408ab83117d8ac1bb9c17b085fdacd1cf2f598719b6b"
373 | dependencies = [
374 | "alloc-no-stdlib",
375 | "alloc-stdlib",
376 | "brotli-decompressor",
377 | ]
378 |
379 | [[package]]
380 | name = "brotli-decompressor"
381 | version = "4.0.1"
382 | source = "registry+https://github.com/rust-lang/crates.io-index"
383 | checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362"
384 | dependencies = [
385 | "alloc-no-stdlib",
386 | "alloc-stdlib",
387 | ]
388 |
389 | [[package]]
390 | name = "byteorder"
391 | version = "1.5.0"
392 | source = "registry+https://github.com/rust-lang/crates.io-index"
393 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
394 |
395 | [[package]]
396 | name = "bytes"
397 | version = "1.7.1"
398 | source = "registry+https://github.com/rust-lang/crates.io-index"
399 | checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50"
400 |
401 | [[package]]
402 | name = "bytestring"
403 | version = "1.3.1"
404 | source = "registry+https://github.com/rust-lang/crates.io-index"
405 | checksum = "74d80203ea6b29df88012294f62733de21cfeab47f17b41af3a38bc30a03ee72"
406 | dependencies = [
407 | "bytes",
408 | ]
409 |
410 | [[package]]
411 | name = "cc"
412 | version = "1.2.16"
413 | source = "registry+https://github.com/rust-lang/crates.io-index"
414 | checksum = "be714c154be609ec7f5dad223a33bf1482fff90472de28f7362806e6d4832b8c"
415 | dependencies = [
416 | "jobserver",
417 | "libc",
418 | "shlex",
419 | ]
420 |
421 | [[package]]
422 | name = "cfg-if"
423 | version = "1.0.0"
424 | source = "registry+https://github.com/rust-lang/crates.io-index"
425 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
426 |
427 | [[package]]
428 | name = "clap"
429 | version = "4.5.17"
430 | source = "registry+https://github.com/rust-lang/crates.io-index"
431 | checksum = "3e5a21b8495e732f1b3c364c9949b201ca7bae518c502c80256c96ad79eaf6ac"
432 | dependencies = [
433 | "clap_builder",
434 | "clap_derive",
435 | ]
436 |
437 | [[package]]
438 | name = "clap_builder"
439 | version = "4.5.17"
440 | source = "registry+https://github.com/rust-lang/crates.io-index"
441 | checksum = "8cf2dd12af7a047ad9d6da2b6b249759a22a7abc0f474c1dae1777afa4b21a73"
442 | dependencies = [
443 | "anstream",
444 | "anstyle",
445 | "clap_lex",
446 | "strsim",
447 | ]
448 |
449 | [[package]]
450 | name = "clap_derive"
451 | version = "4.5.13"
452 | source = "registry+https://github.com/rust-lang/crates.io-index"
453 | checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0"
454 | dependencies = [
455 | "heck",
456 | "proc-macro2",
457 | "quote",
458 | "syn",
459 | ]
460 |
461 | [[package]]
462 | name = "clap_lex"
463 | version = "0.7.2"
464 | source = "registry+https://github.com/rust-lang/crates.io-index"
465 | checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
466 |
467 | [[package]]
468 | name = "colorchoice"
469 | version = "1.0.2"
470 | source = "registry+https://github.com/rust-lang/crates.io-index"
471 | checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
472 |
473 | [[package]]
474 | name = "convert_case"
475 | version = "0.4.0"
476 | source = "registry+https://github.com/rust-lang/crates.io-index"
477 | checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
478 |
479 | [[package]]
480 | name = "cookie"
481 | version = "0.16.2"
482 | source = "registry+https://github.com/rust-lang/crates.io-index"
483 | checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb"
484 | dependencies = [
485 | "percent-encoding",
486 | "time",
487 | "version_check",
488 | ]
489 |
490 | [[package]]
491 | name = "cpufeatures"
492 | version = "0.2.14"
493 | source = "registry+https://github.com/rust-lang/crates.io-index"
494 | checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0"
495 | dependencies = [
496 | "libc",
497 | ]
498 |
499 | [[package]]
500 | name = "crc32fast"
501 | version = "1.4.2"
502 | source = "registry+https://github.com/rust-lang/crates.io-index"
503 | checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
504 | dependencies = [
505 | "cfg-if",
506 | ]
507 |
508 | [[package]]
509 | name = "crossbeam-channel"
510 | version = "0.5.15"
511 | source = "registry+https://github.com/rust-lang/crates.io-index"
512 | checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"
513 | dependencies = [
514 | "crossbeam-utils",
515 | ]
516 |
517 | [[package]]
518 | name = "crossbeam-utils"
519 | version = "0.8.20"
520 | source = "registry+https://github.com/rust-lang/crates.io-index"
521 | checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
522 |
523 | [[package]]
524 | name = "crypto-common"
525 | version = "0.1.6"
526 | source = "registry+https://github.com/rust-lang/crates.io-index"
527 | checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
528 | dependencies = [
529 | "generic-array",
530 | "typenum",
531 | ]
532 |
533 | [[package]]
534 | name = "deranged"
535 | version = "0.3.11"
536 | source = "registry+https://github.com/rust-lang/crates.io-index"
537 | checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
538 | dependencies = [
539 | "powerfmt",
540 | ]
541 |
542 | [[package]]
543 | name = "derive_more"
544 | version = "0.99.18"
545 | source = "registry+https://github.com/rust-lang/crates.io-index"
546 | checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce"
547 | dependencies = [
548 | "convert_case",
549 | "proc-macro2",
550 | "quote",
551 | "rustc_version",
552 | "syn",
553 | ]
554 |
555 | [[package]]
556 | name = "digest"
557 | version = "0.10.7"
558 | source = "registry+https://github.com/rust-lang/crates.io-index"
559 | checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
560 | dependencies = [
561 | "block-buffer",
562 | "crypto-common",
563 | ]
564 |
565 | [[package]]
566 | name = "encoding_rs"
567 | version = "0.8.34"
568 | source = "registry+https://github.com/rust-lang/crates.io-index"
569 | checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59"
570 | dependencies = [
571 | "cfg-if",
572 | ]
573 |
574 | [[package]]
575 | name = "env_filter"
576 | version = "0.1.2"
577 | source = "registry+https://github.com/rust-lang/crates.io-index"
578 | checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab"
579 | dependencies = [
580 | "log",
581 | "regex",
582 | ]
583 |
584 | [[package]]
585 | name = "env_logger"
586 | version = "0.11.5"
587 | source = "registry+https://github.com/rust-lang/crates.io-index"
588 | checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d"
589 | dependencies = [
590 | "anstream",
591 | "anstyle",
592 | "env_filter",
593 | "humantime",
594 | "log",
595 | ]
596 |
597 | [[package]]
598 | name = "equivalent"
599 | version = "1.0.1"
600 | source = "registry+https://github.com/rust-lang/crates.io-index"
601 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
602 |
603 | [[package]]
604 | name = "errno"
605 | version = "0.3.9"
606 | source = "registry+https://github.com/rust-lang/crates.io-index"
607 | checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
608 | dependencies = [
609 | "libc",
610 | "windows-sys 0.52.0",
611 | ]
612 |
613 | [[package]]
614 | name = "fastrand"
615 | version = "2.1.1"
616 | source = "registry+https://github.com/rust-lang/crates.io-index"
617 | checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
618 |
619 | [[package]]
620 | name = "flate2"
621 | version = "1.0.33"
622 | source = "registry+https://github.com/rust-lang/crates.io-index"
623 | checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253"
624 | dependencies = [
625 | "crc32fast",
626 | "miniz_oxide",
627 | ]
628 |
629 | [[package]]
630 | name = "fnv"
631 | version = "1.0.7"
632 | source = "registry+https://github.com/rust-lang/crates.io-index"
633 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
634 |
635 | [[package]]
636 | name = "form_urlencoded"
637 | version = "1.2.1"
638 | source = "registry+https://github.com/rust-lang/crates.io-index"
639 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
640 | dependencies = [
641 | "percent-encoding",
642 | ]
643 |
644 | [[package]]
645 | name = "futures-core"
646 | version = "0.3.30"
647 | source = "registry+https://github.com/rust-lang/crates.io-index"
648 | checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"
649 |
650 | [[package]]
651 | name = "futures-sink"
652 | version = "0.3.30"
653 | source = "registry+https://github.com/rust-lang/crates.io-index"
654 | checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"
655 |
656 | [[package]]
657 | name = "futures-task"
658 | version = "0.3.30"
659 | source = "registry+https://github.com/rust-lang/crates.io-index"
660 | checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
661 |
662 | [[package]]
663 | name = "futures-util"
664 | version = "0.3.30"
665 | source = "registry+https://github.com/rust-lang/crates.io-index"
666 | checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"
667 | dependencies = [
668 | "futures-core",
669 | "futures-task",
670 | "pin-project-lite",
671 | "pin-utils",
672 | ]
673 |
674 | [[package]]
675 | name = "generic-array"
676 | version = "0.14.7"
677 | source = "registry+https://github.com/rust-lang/crates.io-index"
678 | checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
679 | dependencies = [
680 | "typenum",
681 | "version_check",
682 | ]
683 |
684 | [[package]]
685 | name = "getrandom"
686 | version = "0.2.15"
687 | source = "registry+https://github.com/rust-lang/crates.io-index"
688 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
689 | dependencies = [
690 | "cfg-if",
691 | "libc",
692 | "wasi",
693 | ]
694 |
695 | [[package]]
696 | name = "gimli"
697 | version = "0.31.0"
698 | source = "registry+https://github.com/rust-lang/crates.io-index"
699 | checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64"
700 |
701 | [[package]]
702 | name = "h2"
703 | version = "0.3.26"
704 | source = "registry+https://github.com/rust-lang/crates.io-index"
705 | checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8"
706 | dependencies = [
707 | "bytes",
708 | "fnv",
709 | "futures-core",
710 | "futures-sink",
711 | "futures-util",
712 | "http",
713 | "indexmap",
714 | "slab",
715 | "tokio",
716 | "tokio-util",
717 | "tracing",
718 | ]
719 |
720 | [[package]]
721 | name = "hashbrown"
722 | version = "0.14.5"
723 | source = "registry+https://github.com/rust-lang/crates.io-index"
724 | checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
725 |
726 | [[package]]
727 | name = "heck"
728 | version = "0.5.0"
729 | source = "registry+https://github.com/rust-lang/crates.io-index"
730 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
731 |
732 | [[package]]
733 | name = "hermit-abi"
734 | version = "0.3.9"
735 | source = "registry+https://github.com/rust-lang/crates.io-index"
736 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
737 |
738 | [[package]]
739 | name = "hex"
740 | version = "0.4.3"
741 | source = "registry+https://github.com/rust-lang/crates.io-index"
742 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
743 |
744 | [[package]]
745 | name = "http"
746 | version = "0.2.12"
747 | source = "registry+https://github.com/rust-lang/crates.io-index"
748 | checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"
749 | dependencies = [
750 | "bytes",
751 | "fnv",
752 | "itoa",
753 | ]
754 |
755 | [[package]]
756 | name = "httparse"
757 | version = "1.9.4"
758 | source = "registry+https://github.com/rust-lang/crates.io-index"
759 | checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9"
760 |
761 | [[package]]
762 | name = "httpdate"
763 | version = "1.0.3"
764 | source = "registry+https://github.com/rust-lang/crates.io-index"
765 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
766 |
767 | [[package]]
768 | name = "humantime"
769 | version = "2.1.0"
770 | source = "registry+https://github.com/rust-lang/crates.io-index"
771 | checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
772 |
773 | [[package]]
774 | name = "idna"
775 | version = "0.5.0"
776 | source = "registry+https://github.com/rust-lang/crates.io-index"
777 | checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
778 | dependencies = [
779 | "unicode-bidi",
780 | "unicode-normalization",
781 | ]
782 |
783 | [[package]]
784 | name = "impl-more"
785 | version = "0.1.6"
786 | source = "registry+https://github.com/rust-lang/crates.io-index"
787 | checksum = "206ca75c9c03ba3d4ace2460e57b189f39f43de612c2f85836e65c929701bb2d"
788 |
789 | [[package]]
790 | name = "indexmap"
791 | version = "2.5.0"
792 | source = "registry+https://github.com/rust-lang/crates.io-index"
793 | checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5"
794 | dependencies = [
795 | "equivalent",
796 | "hashbrown",
797 | ]
798 |
799 | [[package]]
800 | name = "is_terminal_polyfill"
801 | version = "1.70.1"
802 | source = "registry+https://github.com/rust-lang/crates.io-index"
803 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
804 |
805 | [[package]]
806 | name = "itoa"
807 | version = "1.0.11"
808 | source = "registry+https://github.com/rust-lang/crates.io-index"
809 | checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
810 |
811 | [[package]]
812 | name = "jobserver"
813 | version = "0.1.32"
814 | source = "registry+https://github.com/rust-lang/crates.io-index"
815 | checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"
816 | dependencies = [
817 | "libc",
818 | ]
819 |
820 | [[package]]
821 | name = "language-tags"
822 | version = "0.3.2"
823 | source = "registry+https://github.com/rust-lang/crates.io-index"
824 | checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388"
825 |
826 | [[package]]
827 | name = "libc"
828 | version = "0.2.158"
829 | source = "registry+https://github.com/rust-lang/crates.io-index"
830 | checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
831 |
832 | [[package]]
833 | name = "linux-raw-sys"
834 | version = "0.4.14"
835 | source = "registry+https://github.com/rust-lang/crates.io-index"
836 | checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
837 |
838 | [[package]]
839 | name = "local-channel"
840 | version = "0.1.5"
841 | source = "registry+https://github.com/rust-lang/crates.io-index"
842 | checksum = "b6cbc85e69b8df4b8bb8b89ec634e7189099cea8927a276b7384ce5488e53ec8"
843 | dependencies = [
844 | "futures-core",
845 | "futures-sink",
846 | "local-waker",
847 | ]
848 |
849 | [[package]]
850 | name = "local-waker"
851 | version = "0.1.4"
852 | source = "registry+https://github.com/rust-lang/crates.io-index"
853 | checksum = "4d873d7c67ce09b42110d801813efbc9364414e356be9935700d368351657487"
854 |
855 | [[package]]
856 | name = "lock_api"
857 | version = "0.4.12"
858 | source = "registry+https://github.com/rust-lang/crates.io-index"
859 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
860 | dependencies = [
861 | "autocfg",
862 | "scopeguard",
863 | ]
864 |
865 | [[package]]
866 | name = "log"
867 | version = "0.4.22"
868 | source = "registry+https://github.com/rust-lang/crates.io-index"
869 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
870 |
871 | [[package]]
872 | name = "memchr"
873 | version = "2.7.4"
874 | source = "registry+https://github.com/rust-lang/crates.io-index"
875 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
876 |
877 | [[package]]
878 | name = "mime"
879 | version = "0.3.17"
880 | source = "registry+https://github.com/rust-lang/crates.io-index"
881 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
882 |
883 | [[package]]
884 | name = "miniz_oxide"
885 | version = "0.8.0"
886 | source = "registry+https://github.com/rust-lang/crates.io-index"
887 | checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1"
888 | dependencies = [
889 | "adler2",
890 | ]
891 |
892 | [[package]]
893 | name = "mio"
894 | version = "1.0.2"
895 | source = "registry+https://github.com/rust-lang/crates.io-index"
896 | checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
897 | dependencies = [
898 | "hermit-abi",
899 | "libc",
900 | "log",
901 | "wasi",
902 | "windows-sys 0.52.0",
903 | ]
904 |
905 | [[package]]
906 | name = "num-conv"
907 | version = "0.1.0"
908 | source = "registry+https://github.com/rust-lang/crates.io-index"
909 | checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
910 |
911 | [[package]]
912 | name = "object"
913 | version = "0.36.4"
914 | source = "registry+https://github.com/rust-lang/crates.io-index"
915 | checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a"
916 | dependencies = [
917 | "memchr",
918 | ]
919 |
920 | [[package]]
921 | name = "once_cell"
922 | version = "1.20.0"
923 | source = "registry+https://github.com/rust-lang/crates.io-index"
924 | checksum = "33ea5043e58958ee56f3e15a90aee535795cd7dfd319846288d93c5b57d85cbe"
925 |
926 | [[package]]
927 | name = "parking_lot"
928 | version = "0.12.3"
929 | source = "registry+https://github.com/rust-lang/crates.io-index"
930 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
931 | dependencies = [
932 | "lock_api",
933 | "parking_lot_core",
934 | ]
935 |
936 | [[package]]
937 | name = "parking_lot_core"
938 | version = "0.9.10"
939 | source = "registry+https://github.com/rust-lang/crates.io-index"
940 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
941 | dependencies = [
942 | "cfg-if",
943 | "libc",
944 | "redox_syscall",
945 | "smallvec",
946 | "windows-targets",
947 | ]
948 |
949 | [[package]]
950 | name = "paste"
951 | version = "1.0.15"
952 | source = "registry+https://github.com/rust-lang/crates.io-index"
953 | checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
954 |
955 | [[package]]
956 | name = "percent-encoding"
957 | version = "2.3.1"
958 | source = "registry+https://github.com/rust-lang/crates.io-index"
959 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
960 |
961 | [[package]]
962 | name = "pin-project-lite"
963 | version = "0.2.14"
964 | source = "registry+https://github.com/rust-lang/crates.io-index"
965 | checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"
966 |
967 | [[package]]
968 | name = "pin-utils"
969 | version = "0.1.0"
970 | source = "registry+https://github.com/rust-lang/crates.io-index"
971 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
972 |
973 | [[package]]
974 | name = "pkg-config"
975 | version = "0.3.30"
976 | source = "registry+https://github.com/rust-lang/crates.io-index"
977 | checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
978 |
979 | [[package]]
980 | name = "powerfmt"
981 | version = "0.2.0"
982 | source = "registry+https://github.com/rust-lang/crates.io-index"
983 | checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
984 |
985 | [[package]]
986 | name = "ppv-lite86"
987 | version = "0.2.20"
988 | source = "registry+https://github.com/rust-lang/crates.io-index"
989 | checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
990 | dependencies = [
991 | "zerocopy",
992 | ]
993 |
994 | [[package]]
995 | name = "proc-macro2"
996 | version = "1.0.86"
997 | source = "registry+https://github.com/rust-lang/crates.io-index"
998 | checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
999 | dependencies = [
1000 | "unicode-ident",
1001 | ]
1002 |
1003 | [[package]]
1004 | name = "quote"
1005 | version = "1.0.37"
1006 | source = "registry+https://github.com/rust-lang/crates.io-index"
1007 | checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
1008 | dependencies = [
1009 | "proc-macro2",
1010 | ]
1011 |
1012 | [[package]]
1013 | name = "rand"
1014 | version = "0.8.5"
1015 | source = "registry+https://github.com/rust-lang/crates.io-index"
1016 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
1017 | dependencies = [
1018 | "libc",
1019 | "rand_chacha",
1020 | "rand_core",
1021 | ]
1022 |
1023 | [[package]]
1024 | name = "rand_chacha"
1025 | version = "0.3.1"
1026 | source = "registry+https://github.com/rust-lang/crates.io-index"
1027 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1028 | dependencies = [
1029 | "ppv-lite86",
1030 | "rand_core",
1031 | ]
1032 |
1033 | [[package]]
1034 | name = "rand_core"
1035 | version = "0.6.4"
1036 | source = "registry+https://github.com/rust-lang/crates.io-index"
1037 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1038 | dependencies = [
1039 | "getrandom",
1040 | ]
1041 |
1042 | [[package]]
1043 | name = "redox_syscall"
1044 | version = "0.5.4"
1045 | source = "registry+https://github.com/rust-lang/crates.io-index"
1046 | checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853"
1047 | dependencies = [
1048 | "bitflags",
1049 | ]
1050 |
1051 | [[package]]
1052 | name = "regex"
1053 | version = "1.10.6"
1054 | source = "registry+https://github.com/rust-lang/crates.io-index"
1055 | checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
1056 | dependencies = [
1057 | "aho-corasick",
1058 | "memchr",
1059 | "regex-automata",
1060 | "regex-syntax",
1061 | ]
1062 |
1063 | [[package]]
1064 | name = "regex-automata"
1065 | version = "0.4.7"
1066 | source = "registry+https://github.com/rust-lang/crates.io-index"
1067 | checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
1068 | dependencies = [
1069 | "aho-corasick",
1070 | "memchr",
1071 | "regex-syntax",
1072 | ]
1073 |
1074 | [[package]]
1075 | name = "regex-lite"
1076 | version = "0.1.6"
1077 | source = "registry+https://github.com/rust-lang/crates.io-index"
1078 | checksum = "53a49587ad06b26609c52e423de037e7f57f20d53535d66e08c695f347df952a"
1079 |
1080 | [[package]]
1081 | name = "regex-syntax"
1082 | version = "0.8.4"
1083 | source = "registry+https://github.com/rust-lang/crates.io-index"
1084 | checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
1085 |
1086 | [[package]]
1087 | name = "ring"
1088 | version = "0.17.13"
1089 | source = "registry+https://github.com/rust-lang/crates.io-index"
1090 | checksum = "70ac5d832aa16abd7d1def883a8545280c20a60f523a370aa3a9617c2b8550ee"
1091 | dependencies = [
1092 | "cc",
1093 | "cfg-if",
1094 | "getrandom",
1095 | "libc",
1096 | "untrusted",
1097 | "windows-sys 0.52.0",
1098 | ]
1099 |
1100 | [[package]]
1101 | name = "rustc-demangle"
1102 | version = "0.1.24"
1103 | source = "registry+https://github.com/rust-lang/crates.io-index"
1104 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
1105 |
1106 | [[package]]
1107 | name = "rustc_version"
1108 | version = "0.4.1"
1109 | source = "registry+https://github.com/rust-lang/crates.io-index"
1110 | checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
1111 | dependencies = [
1112 | "semver",
1113 | ]
1114 |
1115 | [[package]]
1116 | name = "rustix"
1117 | version = "0.38.37"
1118 | source = "registry+https://github.com/rust-lang/crates.io-index"
1119 | checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
1120 | dependencies = [
1121 | "bitflags",
1122 | "errno",
1123 | "libc",
1124 | "linux-raw-sys",
1125 | "windows-sys 0.52.0",
1126 | ]
1127 |
1128 | [[package]]
1129 | name = "ryu"
1130 | version = "1.0.18"
1131 | source = "registry+https://github.com/rust-lang/crates.io-index"
1132 | checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
1133 |
1134 | [[package]]
1135 | name = "scopeguard"
1136 | version = "1.2.0"
1137 | source = "registry+https://github.com/rust-lang/crates.io-index"
1138 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
1139 |
1140 | [[package]]
1141 | name = "semver"
1142 | version = "1.0.23"
1143 | source = "registry+https://github.com/rust-lang/crates.io-index"
1144 | checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
1145 |
1146 | [[package]]
1147 | name = "serde"
1148 | version = "1.0.210"
1149 | source = "registry+https://github.com/rust-lang/crates.io-index"
1150 | checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"
1151 | dependencies = [
1152 | "serde_derive",
1153 | ]
1154 |
1155 | [[package]]
1156 | name = "serde_derive"
1157 | version = "1.0.210"
1158 | source = "registry+https://github.com/rust-lang/crates.io-index"
1159 | checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
1160 | dependencies = [
1161 | "proc-macro2",
1162 | "quote",
1163 | "syn",
1164 | ]
1165 |
1166 | [[package]]
1167 | name = "serde_json"
1168 | version = "1.0.128"
1169 | source = "registry+https://github.com/rust-lang/crates.io-index"
1170 | checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"
1171 | dependencies = [
1172 | "itoa",
1173 | "memchr",
1174 | "ryu",
1175 | "serde",
1176 | ]
1177 |
1178 | [[package]]
1179 | name = "serde_spanned"
1180 | version = "0.6.7"
1181 | source = "registry+https://github.com/rust-lang/crates.io-index"
1182 | checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d"
1183 | dependencies = [
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 = "sha1"
1201 | version = "0.10.6"
1202 | source = "registry+https://github.com/rust-lang/crates.io-index"
1203 | checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
1204 | dependencies = [
1205 | "cfg-if",
1206 | "cpufeatures",
1207 | "digest",
1208 | ]
1209 |
1210 | [[package]]
1211 | name = "shlex"
1212 | version = "1.3.0"
1213 | source = "registry+https://github.com/rust-lang/crates.io-index"
1214 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1215 |
1216 | [[package]]
1217 | name = "signal-hook-registry"
1218 | version = "1.4.2"
1219 | source = "registry+https://github.com/rust-lang/crates.io-index"
1220 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"
1221 | dependencies = [
1222 | "libc",
1223 | ]
1224 |
1225 | [[package]]
1226 | name = "slab"
1227 | version = "0.4.9"
1228 | source = "registry+https://github.com/rust-lang/crates.io-index"
1229 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
1230 | dependencies = [
1231 | "autocfg",
1232 | ]
1233 |
1234 | [[package]]
1235 | name = "smallvec"
1236 | version = "1.13.2"
1237 | source = "registry+https://github.com/rust-lang/crates.io-index"
1238 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
1239 |
1240 | [[package]]
1241 | name = "socket2"
1242 | version = "0.5.7"
1243 | source = "registry+https://github.com/rust-lang/crates.io-index"
1244 | checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"
1245 | dependencies = [
1246 | "libc",
1247 | "windows-sys 0.52.0",
1248 | ]
1249 |
1250 | [[package]]
1251 | name = "strsim"
1252 | version = "0.11.1"
1253 | source = "registry+https://github.com/rust-lang/crates.io-index"
1254 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1255 |
1256 | [[package]]
1257 | name = "syn"
1258 | version = "2.0.77"
1259 | source = "registry+https://github.com/rust-lang/crates.io-index"
1260 | checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed"
1261 | dependencies = [
1262 | "proc-macro2",
1263 | "quote",
1264 | "unicode-ident",
1265 | ]
1266 |
1267 | [[package]]
1268 | name = "tempfile"
1269 | version = "3.12.0"
1270 | source = "registry+https://github.com/rust-lang/crates.io-index"
1271 | checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64"
1272 | dependencies = [
1273 | "cfg-if",
1274 | "fastrand",
1275 | "once_cell",
1276 | "rustix",
1277 | "windows-sys 0.59.0",
1278 | ]
1279 |
1280 | [[package]]
1281 | name = "time"
1282 | version = "0.3.36"
1283 | source = "registry+https://github.com/rust-lang/crates.io-index"
1284 | checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
1285 | dependencies = [
1286 | "deranged",
1287 | "itoa",
1288 | "num-conv",
1289 | "powerfmt",
1290 | "serde",
1291 | "time-core",
1292 | "time-macros",
1293 | ]
1294 |
1295 | [[package]]
1296 | name = "time-core"
1297 | version = "0.1.2"
1298 | source = "registry+https://github.com/rust-lang/crates.io-index"
1299 | checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
1300 |
1301 | [[package]]
1302 | name = "time-macros"
1303 | version = "0.2.18"
1304 | source = "registry+https://github.com/rust-lang/crates.io-index"
1305 | checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
1306 | dependencies = [
1307 | "num-conv",
1308 | "time-core",
1309 | ]
1310 |
1311 | [[package]]
1312 | name = "tinyvec"
1313 | version = "1.8.0"
1314 | source = "registry+https://github.com/rust-lang/crates.io-index"
1315 | checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
1316 | dependencies = [
1317 | "tinyvec_macros",
1318 | ]
1319 |
1320 | [[package]]
1321 | name = "tinyvec_macros"
1322 | version = "0.1.1"
1323 | source = "registry+https://github.com/rust-lang/crates.io-index"
1324 | checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
1325 |
1326 | [[package]]
1327 | name = "tokio"
1328 | version = "1.40.0"
1329 | source = "registry+https://github.com/rust-lang/crates.io-index"
1330 | checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998"
1331 | dependencies = [
1332 | "backtrace",
1333 | "bytes",
1334 | "libc",
1335 | "mio",
1336 | "parking_lot",
1337 | "pin-project-lite",
1338 | "signal-hook-registry",
1339 | "socket2",
1340 | "windows-sys 0.52.0",
1341 | ]
1342 |
1343 | [[package]]
1344 | name = "tokio-util"
1345 | version = "0.7.12"
1346 | source = "registry+https://github.com/rust-lang/crates.io-index"
1347 | checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a"
1348 | dependencies = [
1349 | "bytes",
1350 | "futures-core",
1351 | "futures-sink",
1352 | "pin-project-lite",
1353 | "tokio",
1354 | ]
1355 |
1356 | [[package]]
1357 | name = "toml"
1358 | version = "0.8.19"
1359 | source = "registry+https://github.com/rust-lang/crates.io-index"
1360 | checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e"
1361 | dependencies = [
1362 | "serde",
1363 | "serde_spanned",
1364 | "toml_datetime",
1365 | "toml_edit",
1366 | ]
1367 |
1368 | [[package]]
1369 | name = "toml_datetime"
1370 | version = "0.6.8"
1371 | source = "registry+https://github.com/rust-lang/crates.io-index"
1372 | checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
1373 | dependencies = [
1374 | "serde",
1375 | ]
1376 |
1377 | [[package]]
1378 | name = "toml_edit"
1379 | version = "0.22.20"
1380 | source = "registry+https://github.com/rust-lang/crates.io-index"
1381 | checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d"
1382 | dependencies = [
1383 | "indexmap",
1384 | "serde",
1385 | "serde_spanned",
1386 | "toml_datetime",
1387 | "winnow",
1388 | ]
1389 |
1390 | [[package]]
1391 | name = "tracing"
1392 | version = "0.1.40"
1393 | source = "registry+https://github.com/rust-lang/crates.io-index"
1394 | checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
1395 | dependencies = [
1396 | "log",
1397 | "pin-project-lite",
1398 | "tracing-core",
1399 | ]
1400 |
1401 | [[package]]
1402 | name = "tracing-core"
1403 | version = "0.1.32"
1404 | source = "registry+https://github.com/rust-lang/crates.io-index"
1405 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
1406 | dependencies = [
1407 | "once_cell",
1408 | ]
1409 |
1410 | [[package]]
1411 | name = "typenum"
1412 | version = "1.17.0"
1413 | source = "registry+https://github.com/rust-lang/crates.io-index"
1414 | checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
1415 |
1416 | [[package]]
1417 | name = "unicode-bidi"
1418 | version = "0.3.15"
1419 | source = "registry+https://github.com/rust-lang/crates.io-index"
1420 | checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
1421 |
1422 | [[package]]
1423 | name = "unicode-ident"
1424 | version = "1.0.13"
1425 | source = "registry+https://github.com/rust-lang/crates.io-index"
1426 | checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
1427 |
1428 | [[package]]
1429 | name = "unicode-normalization"
1430 | version = "0.1.23"
1431 | source = "registry+https://github.com/rust-lang/crates.io-index"
1432 | checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
1433 | dependencies = [
1434 | "tinyvec",
1435 | ]
1436 |
1437 | [[package]]
1438 | name = "untrusted"
1439 | version = "0.9.0"
1440 | source = "registry+https://github.com/rust-lang/crates.io-index"
1441 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
1442 |
1443 | [[package]]
1444 | name = "url"
1445 | version = "2.5.2"
1446 | source = "registry+https://github.com/rust-lang/crates.io-index"
1447 | checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"
1448 | dependencies = [
1449 | "form_urlencoded",
1450 | "idna",
1451 | "percent-encoding",
1452 | ]
1453 |
1454 | [[package]]
1455 | name = "utf8parse"
1456 | version = "0.2.2"
1457 | source = "registry+https://github.com/rust-lang/crates.io-index"
1458 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1459 |
1460 | [[package]]
1461 | name = "version_check"
1462 | version = "0.9.5"
1463 | source = "registry+https://github.com/rust-lang/crates.io-index"
1464 | checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
1465 |
1466 | [[package]]
1467 | name = "wasi"
1468 | version = "0.11.0+wasi-snapshot-preview1"
1469 | source = "registry+https://github.com/rust-lang/crates.io-index"
1470 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1471 |
1472 | [[package]]
1473 | name = "webhookd"
1474 | version = "0.2.3"
1475 | dependencies = [
1476 | "actix",
1477 | "actix-rt",
1478 | "actix-web",
1479 | "clap",
1480 | "env_logger",
1481 | "hex",
1482 | "log",
1483 | "ring",
1484 | "serde",
1485 | "serde_derive",
1486 | "serde_json",
1487 | "tempfile",
1488 | "toml",
1489 | ]
1490 |
1491 | [[package]]
1492 | name = "windows-sys"
1493 | version = "0.52.0"
1494 | source = "registry+https://github.com/rust-lang/crates.io-index"
1495 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1496 | dependencies = [
1497 | "windows-targets",
1498 | ]
1499 |
1500 | [[package]]
1501 | name = "windows-sys"
1502 | version = "0.59.0"
1503 | source = "registry+https://github.com/rust-lang/crates.io-index"
1504 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1505 | dependencies = [
1506 | "windows-targets",
1507 | ]
1508 |
1509 | [[package]]
1510 | name = "windows-targets"
1511 | version = "0.52.6"
1512 | source = "registry+https://github.com/rust-lang/crates.io-index"
1513 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1514 | dependencies = [
1515 | "windows_aarch64_gnullvm",
1516 | "windows_aarch64_msvc",
1517 | "windows_i686_gnu",
1518 | "windows_i686_gnullvm",
1519 | "windows_i686_msvc",
1520 | "windows_x86_64_gnu",
1521 | "windows_x86_64_gnullvm",
1522 | "windows_x86_64_msvc",
1523 | ]
1524 |
1525 | [[package]]
1526 | name = "windows_aarch64_gnullvm"
1527 | version = "0.52.6"
1528 | source = "registry+https://github.com/rust-lang/crates.io-index"
1529 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1530 |
1531 | [[package]]
1532 | name = "windows_aarch64_msvc"
1533 | version = "0.52.6"
1534 | source = "registry+https://github.com/rust-lang/crates.io-index"
1535 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1536 |
1537 | [[package]]
1538 | name = "windows_i686_gnu"
1539 | version = "0.52.6"
1540 | source = "registry+https://github.com/rust-lang/crates.io-index"
1541 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1542 |
1543 | [[package]]
1544 | name = "windows_i686_gnullvm"
1545 | version = "0.52.6"
1546 | source = "registry+https://github.com/rust-lang/crates.io-index"
1547 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1548 |
1549 | [[package]]
1550 | name = "windows_i686_msvc"
1551 | version = "0.52.6"
1552 | source = "registry+https://github.com/rust-lang/crates.io-index"
1553 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1554 |
1555 | [[package]]
1556 | name = "windows_x86_64_gnu"
1557 | version = "0.52.6"
1558 | source = "registry+https://github.com/rust-lang/crates.io-index"
1559 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1560 |
1561 | [[package]]
1562 | name = "windows_x86_64_gnullvm"
1563 | version = "0.52.6"
1564 | source = "registry+https://github.com/rust-lang/crates.io-index"
1565 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1566 |
1567 | [[package]]
1568 | name = "windows_x86_64_msvc"
1569 | version = "0.52.6"
1570 | source = "registry+https://github.com/rust-lang/crates.io-index"
1571 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1572 |
1573 | [[package]]
1574 | name = "winnow"
1575 | version = "0.6.18"
1576 | source = "registry+https://github.com/rust-lang/crates.io-index"
1577 | checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f"
1578 | dependencies = [
1579 | "memchr",
1580 | ]
1581 |
1582 | [[package]]
1583 | name = "zerocopy"
1584 | version = "0.7.35"
1585 | source = "registry+https://github.com/rust-lang/crates.io-index"
1586 | checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
1587 | dependencies = [
1588 | "byteorder",
1589 | "zerocopy-derive",
1590 | ]
1591 |
1592 | [[package]]
1593 | name = "zerocopy-derive"
1594 | version = "0.7.35"
1595 | source = "registry+https://github.com/rust-lang/crates.io-index"
1596 | checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
1597 | dependencies = [
1598 | "proc-macro2",
1599 | "quote",
1600 | "syn",
1601 | ]
1602 |
1603 | [[package]]
1604 | name = "zstd"
1605 | version = "0.13.2"
1606 | source = "registry+https://github.com/rust-lang/crates.io-index"
1607 | checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9"
1608 | dependencies = [
1609 | "zstd-safe",
1610 | ]
1611 |
1612 | [[package]]
1613 | name = "zstd-safe"
1614 | version = "7.2.1"
1615 | source = "registry+https://github.com/rust-lang/crates.io-index"
1616 | checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059"
1617 | dependencies = [
1618 | "zstd-sys",
1619 | ]
1620 |
1621 | [[package]]
1622 | name = "zstd-sys"
1623 | version = "2.0.13+zstd.1.5.6"
1624 | source = "registry+https://github.com/rust-lang/crates.io-index"
1625 | checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa"
1626 | dependencies = [
1627 | "cc",
1628 | "pkg-config",
1629 | ]
1630 |
--------------------------------------------------------------------------------
/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "webhookd"
3 | version = "0.2.3"
4 | authors = ["Jiajie Chen "]
5 | edition = "2021"
6 | description = "GitLab/GitHub webhook daemon to run scripts on trigger"
7 | repository = "https://github.com/jiegec/webhookd"
8 | readme = "README.md"
9 | keywords = ["webhook", "gitlab", "github"]
10 | license = "GPL-3.0-or-later"
11 |
12 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13 |
14 | [dependencies]
15 | actix = "0.13"
16 | actix-web = "4"
17 | actix-rt = "2"
18 | clap = { version = "4", features = ["derive"] }
19 | env_logger = "0.11"
20 | hex = "0.4"
21 | log = "0.4"
22 | ring = "0.17"
23 | serde = "1"
24 | serde_derive = "1"
25 | serde_json = "1"
26 | toml = "0.8"
27 | tempfile = "3"
28 |
29 | [profile.release]
30 | debug = "line-tables-only"
31 |
32 | [package.metadata.deb]
33 | name = "webhookd"
34 | assets = [
35 | ["target/release/webhookd", "usr/bin/webhookd", "755"],
36 | ["webhookd.service", "lib/systemd/system/", "644"]
37 | ]
38 | section = "web"
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # webhookd
2 |
3 | A simple GitLab/GitHub web hooks daemon. Run scripts whenever hook is triggered.
4 |
5 | ## Installation
6 |
7 | There are two ways:
8 | 1. Run `cargo install webhookd` to install webhookd.
9 | 2. Use `cargo-deb`:
10 |
11 | ```
12 | > cargo install cargo-deb
13 | > git clone https://github.com/jiegec/webhookd.git
14 | > cd webhookd
15 | > cargo deb --separate-debug-symbols --compress-debug-symbols --install
16 | ```
17 |
18 | ## Configuration
19 |
20 | See `example.toml` for usage. Then, register this webhook in GitLab/GitHub. Currently only json is supported.
21 |
22 | ## Usage
23 |
24 | Run webhookd manually:
25 |
26 | ```bash
27 | > RUST_LOG=info webhookd --config config.toml
28 | ```
29 |
30 | Run webhookd in systemd:
31 |
32 | ```bash
33 | > sudo systemctl edit webhookd
34 | # Add the following lines if needed
35 | [Service]
36 | User=nobody
37 | Group=nobody
38 | Environment="WEBHOOKD_CONFIG=/path/to/config.toml"
39 | ```
40 |
41 | Then, run `sudo systemctl enable --now webhookd` to activate.
42 |
43 | ## License
44 |
45 | Licensed under GPL-3.0-or-later license.
46 |
--------------------------------------------------------------------------------
/example.toml:
--------------------------------------------------------------------------------
1 | listen_addr = "0.0.0.0:8000" # optional
2 |
3 | [[project]]
4 | name = "REDACTED"
5 | # For GitLab, it is matched against "object_kind"
6 | # For GitHub, it is matched against X-GitHub-Event header
7 | event = "push" # optional, do not filter if empty
8 | exec = "echo $PWD"
9 | working_directory = "REDACTED"
10 | endpoint = "/" # optional, match the url path when set
11 | stdout = "stdout.log" # optional, append stdout to file
12 | stderr = "stderr.log" # optional, append stderr to file
13 | token = "REDACTED" # optional, match X-Gitlab-Token header when set
14 | secret = "REDACTED" # optional, verify X-Hub-Signature when set
15 | save_body = false # optional, save webhook body to temporary file and pass the path to program via env WEBHOOKD_BODY, default to false
16 |
17 | # A complete example
18 | [[project]]
19 | name = "github_ping"
20 | event = "ping"
21 | exec = "echo test"
22 | working_directory = "/"
23 | stdout = "stdout.log"
24 | secret = "secret"
25 | save_body = true
--------------------------------------------------------------------------------
/src/main.rs:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2020-2023 Jiajie Chen
2 | //
3 | // This program is free software: you can redistribute it and/or modify
4 | // it under the terms of the GNU General Public License as published by
5 | // the Free Software Foundation, either version 3 of the License, or
6 | // (at your option) any later version.
7 | //
8 | // This program is distributed in the hope that it will be useful,
9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 | // GNU General Public License for more details.
12 | //
13 | // You should have received a copy of the GNU General Public License
14 | // along with this program. If not, see .
15 |
16 | use actix_web::web::Data;
17 | use actix_web::{middleware, web, App, HttpRequest, HttpResponse, HttpServer};
18 | use clap::Parser;
19 | use hex;
20 | use log::*;
21 | use ring::hmac;
22 | use serde_derive::{Deserialize, Serialize};
23 | use serde_json::{from_slice, Value};
24 | use std::fs::{File, OpenOptions};
25 | use std::io::{Read, Write};
26 | use std::path::PathBuf;
27 | use std::process::{Command, Stdio};
28 | use tempfile::NamedTempFile;
29 | use toml::de::Error;
30 |
31 | #[derive(Parser)]
32 | struct Args {
33 | #[arg(short, long)]
34 | config: PathBuf,
35 | }
36 |
37 | #[derive(Deserialize, Serialize, Debug, Clone)]
38 | struct Config {
39 | listen_addr: Option,
40 | project: Vec,
41 | }
42 |
43 | #[derive(Deserialize, Serialize, Debug, Clone)]
44 | struct Project {
45 | name: String,
46 | event: Option,
47 | exec: String,
48 | working_directory: String,
49 | endpoint: Option,
50 | stdout: Option,
51 | stderr: Option,
52 | save_body: Option,
53 | // gitlab
54 | token: Option,
55 | // github
56 | secret: Option,
57 | }
58 |
59 | enum Site {
60 | GitHub,
61 | GitLab,
62 | }
63 |
64 | impl Site {
65 | fn get_name(&self) -> &'static str {
66 | match self {
67 | Site::GitHub => "github",
68 | Site::GitLab => "gitlab",
69 | }
70 | }
71 |
72 | fn verify(&self, req: &HttpRequest, bytes: &web::Bytes, project: &Project) -> bool {
73 | use Site::*;
74 | let headers = req.headers();
75 | match self {
76 | GitHub => {
77 | if let Some(secret) = &project.secret {
78 | if let Some(header) = headers.get("X-Hub-Signature") {
79 | if let Ok(s) = header.to_str() {
80 | if !s.starts_with("sha1=") {
81 | warn!("X-Hub-Signature is invalid for {}, skipping", project.name);
82 | false
83 | } else if let Ok(signature) = hex::decode(&s.as_bytes()[5..]) {
84 | let key = hmac::Key::new(
85 | hmac::HMAC_SHA1_FOR_LEGACY_USE_ONLY,
86 | secret.as_bytes(),
87 | );
88 | if hmac::verify(&key, bytes, &signature).is_ok() {
89 | true
90 | } else {
91 | warn!(
92 | "X-Hub-Signature HMAC verification failed for {}, skipping",
93 | project.name
94 | );
95 | false
96 | }
97 | } else {
98 | warn!(
99 | "X-Hub-Signature is not valid hex string for {}, skipping",
100 | project.name
101 | );
102 | false
103 | }
104 | } else {
105 | warn!("X-Hub-Signature is invalid for {}, skipping", project.name);
106 | false
107 | }
108 | } else {
109 | warn!("X-Hub-Signature not found for {}, skipping", project.name);
110 | false
111 | }
112 | } else {
113 | false
114 | }
115 | }
116 | GitLab => {
117 | if let Some(token) = &project.token {
118 | if let Some(header) = headers.get("X-Gitlab-Token") {
119 | if let Ok(s) = header.to_str() {
120 | if s == token {
121 | true
122 | } else {
123 | warn!(
124 | "X-Gitlab-Token mismatch for project {}, skipping",
125 | project.name
126 | );
127 | false
128 | }
129 | } else {
130 | warn!("X-Gitlab-Token is invalid for {}, skipping", project.name);
131 | false
132 | }
133 | } else {
134 | warn!("X-Gitlab-Token not found for {}, skipping", project.name);
135 | false
136 | }
137 | } else {
138 | false
139 | }
140 | }
141 | }
142 | }
143 |
144 | fn get_event<'a>(&self, req: &'a HttpRequest, body: &'a Value) -> &'a str {
145 | use Site::*;
146 | match self {
147 | GitHub => {
148 | if let Some(header) = req.headers().get("X-GitHub-Event") {
149 | if let Ok(s) = header.to_str() {
150 | s
151 | } else {
152 | "unknown"
153 | }
154 | } else {
155 | "unknown"
156 | }
157 | }
158 | GitLab => body
159 | .get("object_kind")
160 | .and_then(|obj| obj.as_str())
161 | .unwrap_or("unknown"),
162 | }
163 | }
164 | }
165 |
166 | fn get_stdio(project: &Project, path: &Option) -> Stdio {
167 | let mut stdio_file = None;
168 | if let Some(stdio_path) = path {
169 | match OpenOptions::new()
170 | .append(true)
171 | .create(true)
172 | .open(&stdio_path)
173 | {
174 | Ok(file) => stdio_file = Some(file),
175 | Err(err) => {
176 | warn!(
177 | "Can't open file {} for project {}: {:?}",
178 | stdio_path, project.name, err
179 | );
180 | }
181 | }
182 | }
183 | let stdio = if let Some(file) = stdio_file {
184 | Stdio::from(file)
185 | } else {
186 | Stdio::null()
187 | };
188 | stdio
189 | }
190 |
191 | async fn spawn_process(project: Project, body: web::Bytes, env: Vec<(&str, String)>) {
192 | info!(
193 | "spawning {:?} in {}",
194 | project.exec, project.working_directory
195 | );
196 |
197 | let mut envs = vec![];
198 | let mut temp_file = None;
199 | if project.save_body == Some(true) {
200 | match NamedTempFile::new() {
201 | Ok(file) => {
202 | info!("Saving HTTP body to file {:?}", file.path());
203 | if let Err(err) = file.as_file().write_all(&*body) {
204 | warn!("Failed to write to temporary file: {:?}", err);
205 | }
206 | envs.push(("WEBHOOKD_BODY", file.path().to_string_lossy().to_string()));
207 | temp_file = Some(file);
208 | }
209 | Err(err) => {
210 | warn!("Failed to create temporary file: {:?}", err);
211 | }
212 | }
213 | }
214 |
215 | envs.extend(env);
216 |
217 | let stdout = get_stdio(&project, &project.stdout);
218 | let stderr = get_stdio(&project, &project.stderr);
219 | let result = Command::new("/bin/sh")
220 | .arg("-c")
221 | .arg(&project.exec)
222 | .stdout(stdout)
223 | .stderr(stderr)
224 | .current_dir(&project.working_directory)
225 | .envs(envs)
226 | .status();
227 | info!("Process {:?} exited with {:?}", project.exec, result);
228 |
229 | // clear the temp file
230 | drop(temp_file);
231 | }
232 |
233 | async fn handler(req: HttpRequest, bytes: web::Bytes, config: web::Data) -> HttpResponse {
234 | let body: Value = if let Ok(body) = from_slice(&bytes) {
235 | body
236 | } else {
237 | warn!("Invalid body");
238 | return HttpResponse::Ok().body("");
239 | };
240 | debug!("Got json body: {:?}", body);
241 | let headers = req.headers();
242 | let site = if headers.get("X-Gitlab-Token").is_some() {
243 | Site::GitLab
244 | } else if headers.get("X-GitHub-Event").is_some() {
245 | Site::GitHub
246 | } else {
247 | return HttpResponse::Ok().body("");
248 | };
249 | let action = site.get_event(&req, &body);
250 | info!("Received hook: {}", action);
251 | let path = String::from(req.path());
252 | let mut triggered = 0;
253 | for project in &config.project {
254 | if project.endpoint.is_none() || project.endpoint == Some(path.clone()) {
255 | // found
256 | if !site.verify(&req, &bytes, &project) {
257 | continue;
258 | }
259 | if let Some(event) = &project.event {
260 | // filter by event
261 | if action != event {
262 | continue;
263 | }
264 | }
265 | info!("Triggering project {}", project.name);
266 |
267 | let envs = vec![
268 | ("WEBHOOKD_ACTION", action.to_string()),
269 | ("WEBHOOKD_SITE", site.get_name().to_string()),
270 | ("WEBHOOKD_PROJECT", project.name.clone()),
271 | ];
272 |
273 | actix::spawn(spawn_process(project.clone(), bytes.clone(), envs.clone()));
274 | triggered += 1;
275 | }
276 | }
277 | info!("{} projects are triggered", triggered);
278 | HttpResponse::Ok().body("")
279 | }
280 |
281 | #[actix_web::main]
282 | async fn main() -> std::io::Result<()> {
283 | env_logger::init();
284 | let args = Args::parse();
285 | let mut file = File::open(&args.config)?;
286 | let mut content = String::new();
287 | file.read_to_string(&mut content)?;
288 | // see: https://github.com/toml-rs/toml/issues/591
289 | let config: Config = toml::from_str(&content).map_err(|err: Error| {
290 | error!("Failed to parse config: {:?}", err);
291 | std::io::Error::new(std::io::ErrorKind::InvalidData, err)
292 | })?;
293 | info!("using config {:?}", config);
294 | let listen_addr = config
295 | .listen_addr
296 | .clone()
297 | .unwrap_or("127.0.0.1:8000".to_owned());
298 | HttpServer::new(move || {
299 | App::new()
300 | .app_data(Data::new(config.clone()))
301 | .wrap(middleware::Logger::default())
302 | .default_service(web::post().to(handler))
303 | })
304 | .bind(listen_addr)?
305 | .run()
306 | .await
307 | }
308 |
--------------------------------------------------------------------------------
/webhookd.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Webhook Daemon
3 | After=network.target
4 |
5 | [Service]
6 | Type=simple
7 | Environment="RUST_LOG=info"
8 | ExecStart=/usr/bin/webhookd --config $WEBHOOKD_CONFIG
9 |
10 | [Install]
11 | WantedBy=multi-user.target
12 |
13 |
--------------------------------------------------------------------------------