├── .github
├── build.sh
├── get-channels.sh
├── notes.md
└── workflows
│ └── image.yml
├── .gitignore
├── LICENSE
├── README.md
├── avf
├── debug.nix
├── default.nix
├── finish.nix
├── forwarder_guest_Cargo.lock
├── forwarder_guest_launcher_Cargo.lock
├── guest-tcpstates.patch
├── pkgs.nix
├── shutdown_runner_Cargo.lock
├── storage_balloon_agent_Cargo.lock
└── systemd-esp-type-ignore.patch
├── channel
├── avf.nix
└── nixpkgs.nix
├── flake.nix
├── initial.nix
├── initial
├── README-image.md
├── default.nix
└── etc
│ └── ttyd
│ ├── server.crt
│ └── server.key
├── scripts
├── _common.sh
├── android-clean-vm.sh
└── android-download-vm.sh
└── todo
/.github/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | NIXOS="$1"
6 | ARCH="$2"
7 | TAG="nixos-$NIXOS"
8 |
9 | F_CHANNEL="nixos-channel-$NIXOS-$ARCH.tar.xz"
10 | F_AVF="avf-channel-$NIXOS-$ARCH.tar.xz"
11 | F_IMAGE="image-$NIXOS-$ARCH.tar.gz"
12 |
13 | nix-channel --add "https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-$NIXOS.tar.gz" nixpkgs
14 | nix-channel --update
15 |
16 | nix-build channel/nixpkgs.nix -o "$F_CHANNEL"
17 | nix-build channel/avf.nix -o "$F_AVF"
18 |
19 | nix-channel --add "file://$PWD/$F_CHANNEL" nixpkgs
20 | nix-channel --update
21 |
22 | export INITIAL_RELEASE="$NIXOS"
23 | export INITIAL_ARCH="$ARCH"
24 | export INITIAL_URL_OS="https://github.com/nix-community/nixos-avf/releases/download/nixos-$NIXOS/$F_CHANNEL"
25 | export INITIAL_URL_AVF="https://github.com/nix-community/nixos-avf/releases/download/nixos-$NIXOS/$F_AVF"
26 |
27 | cachix watch-exec nix-community -- nix-build initial.nix -A config.system.build.initialRamdisk -A config.system.build.kernel
28 | cachix watch-exec nix-community -- nix-build initial.nix -A config.system.build.toplevel
29 | nix-build initial.nix -A config.system.build.avfImage -o "$F_IMAGE"
30 |
31 | if ! gh release view "$TAG"; then
32 | gh release create --title "Images for NixOS $NIXOS" --target empty "$TAG"
33 | fi
34 |
35 | gh release edit --notes-file ./.github/notes.md "$TAG"
36 |
37 | gh release upload --clobber "$TAG" "$F_IMAGE" "$F_CHANNEL" "$F_AVF"
38 |
--------------------------------------------------------------------------------
/.github/get-channels.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env nix-shell
2 | #!nix-shell -i bash -p curl gnugrep gnused jq
3 |
4 | matrix=$(curl -L -s https://github.com/NixOS/infra/raw/refs/heads/main/channels.nix | grep -o '"nixos-[0-9.a-z]*"' | sed 's|"||g' | sed "s|nixos-||g" | grep -v 24.05 | jq -s -R -c 'split("\n") | map(select(length > 0))')
5 | echo "matrix=$matrix" >> $GITHUB_OUTPUT
6 |
--------------------------------------------------------------------------------
/.github/notes.md:
--------------------------------------------------------------------------------
1 | Download `image-...tar.xz` file below. Instructions, see project README.
2 |
3 | Click on assets if no download links are there.
4 |
5 | [ » Or install this image with the installation app ](https://github.com/mkg20001/nixos-avf-image-app/releases)
6 |
--------------------------------------------------------------------------------
/.github/workflows/image.yml:
--------------------------------------------------------------------------------
1 | name: Build image
2 |
3 | on:
4 | schedule:
5 | - cron: '0 0 * * *'
6 | workflow_dispatch:
7 | push:
8 | branches:
9 | - trunk
10 |
11 | jobs:
12 | matrix:
13 | runs-on: nscloud-ubuntu-22.04-amd64-2x2
14 | outputs:
15 | matrix: ${{ steps.set-matrix.outputs.matrix }}
16 | steps:
17 | - uses: actions/checkout@v3
18 | with:
19 | ref: 'trunk'
20 | - uses: cachix/install-nix-action@v27
21 | with:
22 | nix_path: nixpkgs=channel:nixos-unstable
23 | - run: ./.github/get-channels.sh
24 | id: set-matrix
25 | update:
26 | needs: matrix
27 | strategy:
28 | matrix:
29 | arch:
30 | - id: aarch64
31 | os: nscloud-ubuntu-22.04-arm64-8x16
32 | - id: x86_64
33 | os: nscloud-ubuntu-22.04-amd64-8x16
34 | nixos: ${{ fromJson(needs.matrix.outputs.matrix) }}
35 | permissions:
36 | # Give the default GITHUB_TOKEN write permission to create releases
37 | contents: write
38 | runs-on: ${{ matrix.arch.os }}
39 | steps:
40 | - uses: actions/checkout@v3
41 | with:
42 | ref: 'trunk'
43 | - uses: cachix/install-nix-action@v27
44 | with:
45 | nix_path: nixpkgs=channel:nixos-${{ matrix.nixos }}
46 | github_access_token: ${{ secrets.GITHUB_TOKEN }}
47 | # explicitly enable sandbox
48 | extra_nix_config: |
49 | sandbox = true
50 | system-features = nixos-test benchmark big-parallel kvm
51 | - uses: cachix/cachix-action@v16
52 | with:
53 | name: nix-community
54 | authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
55 | # path /home/runner should have permissions 755, but had permissions 750. Consider running 'chmod o+rx /home/runner'.
56 | - run: chmod o+rx /home/runner
57 | - run: ./.github/build.sh ${{ matrix.nixos }} ${{ matrix.arch.id }}
58 | env:
59 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 | - uses: actions/upload-artifact@v4
61 | with:
62 | name: image-${{ matrix.nixos }}-${{ matrix.arch.id }}
63 | path: image-${{ matrix.nixos }}-${{ matrix.arch.id }}.tar.gz
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | result*
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # nixos-avf
2 |
3 | Android Virtualization Framework is a new virtualization environment for Android
4 |
5 | Among others, it is used to provide the Terminal App starting from Android 15 QPR2
6 |
7 | This profile contains the necesarry services and kernel configs to get it running under the Terminal app
8 |
9 | The system changes have been taken from https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/main/build/debian
10 |
11 | [ » Chat on Matrix ](https://matrix.to/#/#nixos-avf:mkg20001.io)
12 |
13 | # Installation using App
14 |
15 | There is now an app that performs the installation steps for you.
16 |
17 | Note that currently the guides in the README are out of sync as I'm busy with other things.
18 |
19 | [ » App for easier installation ](https://github.com/mkg20001/nixos-avf-image-app/releases)
20 |
21 | If you have any problems, feel free to join the Matrix Chat
22 |
23 | # Downloading initial image
24 |
25 | [ » Download nixos-unstable aarch64 image ](https://github.com/nix-community/nixos-avf/releases/download/nixos-unstable/image-unstable-aarch64.tar.gz)
26 |
27 | [ » Other architectures/releases ](https://github.com/nix-community/nixos-avf/releases)
28 |
29 | # Building initial image (optional, for development)
30 |
31 | Assuming current folder is the root of this repo, build the following: `nix-build initial.nix -A config.system.build.avfImage`
32 |
33 | Copy the result file to `/sdcard/linux/images.tar.gz` on your phone.
34 |
35 | If the VM fails to start, include `./avf/debug.nix` and view the logs on a debuggable version of Android from the Terminal app (there is no better way currently)
36 |
37 | # Enabling the Terminal App
38 |
39 | If you don't have enabled the Terminal App already you need to enable it in the Developer Options.
40 |
41 | Go to Settings > System > Developer Options > Linux development environment (it's close to USB Debugging in the list)
42 |
43 | If you don't have Developer Options enabled [ » read how to do it here ](https://developer.android.com/studio/debug/dev-options)
44 |
45 | # Using the image
46 |
47 | > [!NOTE]
48 | > After installation of the image you want to expand the disk as you will run into space problems during rebuild otherwise.
49 | >
50 | > You can resize the disk under "Settings (Gear) > Disk resize". We recommend 8 GB or more.
51 |
52 | > [!IMPORTANT]
53 | > The image only works on Android 16+ ([ » Beta Program ](https://www.google.com/android/beta)) and on Android 15 flavours that have the Android 16 Terminal patches backported (example: GrapheneOS)
54 |
55 | ## Debuggable android
56 |
57 | You will need a debuggable android build also known as userdebug (eng build also works)
58 |
59 | Place the image under /sdcard/linux/images.tar.gz or use scripts/android-download-vm.sh to download and copy the latest image.
60 |
61 | Delete existing VM configuration either via app (Settings > Recovery) or via scripts/android-clean-vm.sh
62 |
63 | Restart the terminal app. You should get a popup saying "Auto installing" and the Terminal should automatically use your image.
64 |
65 | ## Production android build
66 |
67 | ### Without root
68 |
69 | _todo, help needed_
70 |
71 | ### With root
72 |
73 | Magisk:
74 |
75 | ```sh
76 | adb shell "su -c 'rm -rfv /data/data/com.android.virtualization.terminal/{files/nixos.log,files/debian.log,files/linux,vm/nixos,vm/debian}'" # clean
77 | adb shell "su -c 'magisk resetprop ro.debuggable 1; stop; start;'" # enable debuggable
78 | adb shell "su -c 'rm -f /data/media/0/linux/images.tar.gz'"
79 | adb shell "su -c 'wget https://github.com/nix-community/nixos-avf/releases/download/nixos-unstable/image-unstable-aarch64.tar.gz -O /data/media/0/linux/images.tar.gz'"
80 | ```
81 |
82 | Then launch the terminal app. It should auto-install.
83 |
84 | After installation is finished you can revert the changes to ro.debuggable.
85 |
86 | # Debugging/Common errors
87 |
88 | ## "Connection to terminal timed out"
89 |
90 | Try restarting the app. Try re-installing the image if that doesn't help.
91 |
92 | ### With root
93 |
94 | Check /data/data/com.android.virtualization.terminal/files/nixos.log
95 |
96 | If the log contains `EFI boot manager: Cannot load any image` or is missing any systemd messages like "Started xyz.service..." then the image might be corrupted
97 |
98 | Run `adb shell rm -rfv /data/data/com.android.virtualization.terminal/{files/nixos.log,files/debian.log,files/linux,vm/nixos,vm/debian}` to clear up any remnants of previous installs, then install the image again
99 |
100 | ## Terminal crashes on rebuild or other memory heavy activity
101 |
102 | The VM has a 4 GB allocation of memory. This allocation does not represent the RAM the VM can actually physically use, only the maximum amount of memory it will be given from the host system under any condition.
103 |
104 | That means while the VM may think it has 4 GB of RAM available, there may not be enough physical memory available on the Phone itself.
105 |
106 | If the host memory runs full, the guest will crash.
107 |
108 | For rebuilds you can split up the rebuild into evaluation and build+switch. Just run `sudo nixos-rebuild dry-build` and only afterwards `sudo nixos-rebuild switch`. This usually works even on low-memory systems.
109 |
--------------------------------------------------------------------------------
/avf/debug.nix:
--------------------------------------------------------------------------------
1 | {
2 | # Print all logs to console for debug
3 | boot.kernelParams = [
4 | "systemd.journald.forward_to_console"
5 | ];
6 |
7 | # Enable AVF debug log
8 | avf.vmConfig.debugLevel = 1;
9 |
10 | # Allow the user to log in as root without a password.
11 | users.users.root.initialHashedPassword = "";
12 |
13 | # Automatically log in at the virtual consoles.
14 | services.getty.autologinUser = "droid";
15 | }
16 |
--------------------------------------------------------------------------------
/avf/default.nix:
--------------------------------------------------------------------------------
1 | {
2 | config,
3 | lib,
4 | modulesPath,
5 | pkgs,
6 | ...
7 | }:
8 |
9 | let
10 | base = pkgs.fetchgit {
11 | url = "https://android.googlesource.com/platform/packages/modules/Virtualization/";
12 | rev = "175a51b30123fa6b02b541f1969665708f7ec2c3";
13 | hash = "sha256-5Y1TbH7IYG3cGFUhVcyIwzKrPUSG54dWNC3H634xKr4=";
14 | };
15 | extraPkgs = pkgs.callPackage ./pkgs.nix { inherit base; };
16 |
17 | serialDevice = "ttyS0";
18 |
19 | mkService = name: {
20 | serviceConfig = {
21 | ExecStart = "${
22 | lib.getExe extraPkgs.android_virt.${name}
23 | } --grpc-port-file /mnt/internal/debian_service_port";
24 | Type = "simple";
25 | Restart = "on-failure";
26 | RestartSec = 1;
27 | User = "root";
28 | Group = "root";
29 | StandardOutput = "journal";
30 | StandardError = "journal";
31 | };
32 | wantedBy = [ "multi-user.target" ];
33 | after = [
34 | "network-online.target"
35 | "network.target"
36 | "mnt-internal.mount"
37 | ];
38 | };
39 |
40 | vmConfig = pkgs.formats.json { };
41 |
42 | cfg = config.avf;
43 | in
44 |
45 | with lib;
46 | {
47 | imports = [
48 | "${modulesPath}/profiles/qemu-guest.nix"
49 | ];
50 |
51 | options = {
52 | avf = {
53 | vmConfig = mkOption {
54 | description = "VM config for AVF";
55 | default = { };
56 | type = vmConfig.type;
57 | };
58 |
59 | defaultUser = mkOption {
60 | description = "Default user to create";
61 | type = types.str;
62 | default = "droid";
63 | };
64 |
65 | extraFiles = mkOption {
66 | description = "Extra files to include in the image";
67 | type = types.attrsOf types.path;
68 | default = {};
69 | example = { "README.md" = ../README.md; };
70 | };
71 |
72 | enableConfigReplace = mkEnableOption "vm_config.json replace (WARNING ALPHA MAY BRICK INSTALL)";
73 | useGenericKernel = mkEnableOption "use latest standard kernel";
74 | };
75 | };
76 |
77 | config = {
78 | avf.vmConfig = {
79 | name = "nixos";
80 | disks = [
81 | {
82 | partitions = [
83 | {
84 | label = "ESP";
85 | path = "$PAYLOAD_DIR/efi_part";
86 | writable = true;
87 | guid = "{efi_part_guid}";
88 | }
89 | {
90 | label = "nixos";
91 | path = "$PAYLOAD_DIR/root_part";
92 | writable = true;
93 | guid = "{root_part_guid}";
94 | }
95 | ];
96 | writable = true;
97 | }
98 | ];
99 | sharedPath = [
100 | {
101 | sharedPath = "/storage/emulated";
102 | }
103 | {
104 | sharedPath = "$APP_DATA_DIR/files";
105 | }
106 | ];
107 | protected = false;
108 | cpu_topology = "match_host";
109 | platform_version = "~1.0";
110 | memory_mib = 4096;
111 | debuggable = true;
112 | console_out = true;
113 | console_input_device = "ttyS0";
114 | network = true;
115 | auto_memory_balloon = true;
116 | gpu = {
117 | backend = "2d";
118 | };
119 | };
120 |
121 | /*
122 | services.ttyd = {
123 | enable = true;
124 | enableSSL = true;
125 | caFile = = "/mnt/internal/ca.crt";
126 | keyFile = "/etc/ttyd/server.key";
127 | clientOptions = [ "disableLeaveAlert=true" ];
128 | certFile = "/etc/ttyd/server.ct";
129 | entrypoint = [ "${pkgs.shadow}/bin/login" "-f" "${cfg.defaultUser}" ];
130 | writeable = true;
131 | };
132 | */
133 |
134 | systemd.package = pkgs.systemd.overrideAttrs (a: {
135 | patches = a.patches ++ [
136 | ./systemd-esp-type-ignore.patch
137 | ];
138 | });
139 |
140 | systemd.services.ttyd = {
141 | serviceConfig = {
142 | ExecStart = "${extraPkgs.ttyd}/bin/ttyd --ssl --ssl-cert /etc/ttyd/server.crt --ssl-key /etc/ttyd/server.key --ssl-ca /mnt/internal/ca.crt -t disableLeaveAlert=true -W ${config.services.ttyd.entrypoint} -f ${cfg.defaultUser}";
143 | Type = "simple";
144 | Restart = "always";
145 | User = "root";
146 | Group = "root";
147 | };
148 |
149 | wantedBy = [ "multi-user.target" ];
150 | after = [
151 | "network-online.target"
152 | "network.target"
153 | "mnt-internal.mount"
154 | ];
155 | };
156 |
157 | systemd.services.avahi_ttyd = {
158 | description = "avahi_TTYD";
159 |
160 | after = [
161 | "ttyd.service"
162 | "avahi-daemon.socket"
163 | ];
164 | wantedBy = [ "multi-user.target" ];
165 |
166 | serviceConfig = {
167 | ExecStart = "${pkgs.avahi}/bin/avahi-publish-service ttyd _http._tcp 7681";
168 | Type = "simple";
169 | Restart = "always";
170 | User = "root";
171 | Group = "root";
172 | };
173 | };
174 |
175 | services.avahi = {
176 | enable = true;
177 | # Sometimes during startup, Terminal will discover only the IPv6 address
178 | # and then only whitelist that one for GRPC.
179 | # Remove once this is solved. See #5
180 | ipv6 = false;
181 | publish = {
182 | enable = true;
183 | userServices = true;
184 | };
185 | };
186 |
187 | system.build.avfImage = pkgs.callPackage ./finish.nix {
188 | raw_disk_image = import "${pkgs.path}/nixos/lib/make-disk-image.nix" {
189 | inherit pkgs lib config;
190 |
191 | partitionTableType = "efi";
192 | copyChannel = false;
193 | memSize = "2048";
194 | # make sure image can be used
195 | additionalSpace = "4G";
196 | };
197 |
198 | vm_config = config.system.build.vmConfig;
199 | extraFiles = cfg.extraFiles;
200 | };
201 |
202 | system.build.vmConfig = vmConfig.generate "vm_config.json" cfg.vmConfig;
203 |
204 | nix.settings.substituters = [
205 | "https://nix-community.cachix.org"
206 | ];
207 |
208 | nix.settings.trusted-public-keys = [
209 | "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
210 | ];
211 |
212 | boot.growPartition = true;
213 | boot.loader.systemd-boot.enable = true;
214 | boot.initrd.systemd.enable = true;
215 | boot.loader.systemd-boot.extraInstallCommands = mkIf (cfg.enableConfigReplace) ''
216 | # update vm_config if on live machine
217 | if [ -e /mnt/internal/linux ]; then
218 | ${pkgs.coreutils}/bin/cp -v ${config.system.build.vmConfig} /tmp/vm_config.json.new
219 | ${pkgs.gnused}/bin/sed -i "s/{efi_part_guid}/$(${pkgs.util-linux}/bin/sfdisk --part-uuid /dev/vda 1)/g" /tmp/vm_config.json.new
220 | ${pkgs.gnused}/bin/sed -i "s/{root_part_guid}/$(${pkgs.util-linux}/bin/sfdisk --part-uuid /dev/vda 2)/g" /tmp/vm_config.json.new
221 | ${pkgs.coreutils}/bin/mv -v /tmp/vm_config.json.new /mnt/internal/linux/vm_config.json
222 | fi
223 | '';
224 |
225 | # image building needs to know what device to install bootloader on
226 | boot.loader.grub.device = "/dev/vda";
227 | # Faster boot. User can't access bootloader currently anyways (?)
228 | boot.loader.timeout = 0;
229 |
230 | # avf patches only available for 6.1 right now
231 | boot.kernelPackages = mkIf (!cfg.useGenericKernel) pkgs.linuxPackages_6_1;
232 |
233 | boot.kernelPatches = mkIf (!cfg.useGenericKernel) [
234 | {
235 | name = "avf";
236 | patch = "${base}/build/debian/kernel/patches/avf/arm64-balloon.patch";
237 | extraStructuredConfig = with lib.kernel; {
238 | # DRM = module;
239 | SND_VIRTIO = module;
240 | SND = yes;
241 | SOUND = yes;
242 | };
243 | }
244 | ];
245 |
246 | boot.kernelParams = [
247 | "console=tty1"
248 | "console=${serialDevice}"
249 | ];
250 |
251 | boot.kernelModules = [ "vhost_vsock" ];
252 |
253 | fileSystems = {
254 | "/" = {
255 | device = "/dev/disk/by-label/nixos";
256 | autoResize = true;
257 | fsType = "ext4";
258 | };
259 | "/boot" = {
260 | device = "/dev/disk/by-label/ESP";
261 | fsType = "vfat";
262 | };
263 |
264 | "/mnt/internal" = {
265 | device = "internal";
266 | fsType = "virtiofs";
267 | };
268 | "/mnt/shared" = {
269 | device = "android";
270 | fsType = "virtiofs";
271 | };
272 | /*
273 | "/mnt/backup" = {
274 | device = "/dev/vdb";
275 | fsType = "virtiofs";
276 | };
277 | */
278 | };
279 |
280 | # from Virtualization/guest/storage_balloon_agent/debian/service
281 |
282 | systemd.services.storage_balloon_agent = mkService "storage_balloon_agent";
283 |
284 | # from Virtualization/guest/forwarder_guest_launcher/debian/service
285 |
286 | systemd.services.forwarder_guest_launcher = mkService "forwarder_guest_launcher" // {
287 | path = [
288 | extraPkgs.android_virt.forwarder_guest
289 | pkgs.bcc
290 | "/run/current-system/sw"
291 | ];
292 | };
293 |
294 | # from Virtualization/guest/shutdown_runner/debian/service
295 |
296 | systemd.services.shutdown_runner = mkService "shutdown_runner";
297 |
298 | services.zram-generator = {
299 | enable = true;
300 | settings = {
301 | "zram0" = {
302 | zram-size = "ram / 4";
303 | };
304 |
305 | "" = {
306 | compression-algorithm = "zstd";
307 | };
308 | };
309 | };
310 |
311 | users.users.${cfg.defaultUser} = {
312 | isNormalUser = true;
313 | extraGroups = [
314 | "${cfg.defaultUser}"
315 | "wheel"
316 | "video"
317 | "render"
318 | ];
319 | initialHashedPassword = "";
320 | };
321 | users.groups.${cfg.defaultUser} = { };
322 | security.sudo.wheelNeedsPassword = false;
323 |
324 | programs.bcc.enable = true;
325 |
326 | /* programs.bash.interactiveShellInit = ''
327 | # Show title of current running command
328 | trap 'echo -ne "\e]0;\$BASH_COMMAND\007"' DEBUG
329 | ''; */
330 |
331 | systemd.network.enable = true;
332 | networking.useNetworkd = true;
333 | networking.dhcpcd.enable = false;
334 | services.resolved.dnssec = "false";
335 | networking.useDHCP = true;
336 | networking.firewall.enable = true; # default
337 | networking.nftables.enable = true;
338 | networking.firewall.allowedTCPPorts = [ 7681 ];
339 | };
340 | }
341 |
--------------------------------------------------------------------------------
/avf/finish.nix:
--------------------------------------------------------------------------------
1 | {
2 | stdenv,
3 | raw_disk_image,
4 | vm_config,
5 | utillinux,
6 | pigz,
7 | e2fsprogs,
8 | dosfstools,
9 | lib,
10 | extraFiles,
11 | }:
12 |
13 | let
14 | RELEASE_YEAR = "2025";
15 | # switch back to lib.concatMapAttrsStringSep once 24.11 is dropped
16 | concatMapAttrsStringSep = sep: f: attrs:
17 | lib.concatStringsSep sep (lib.mapAttrsToList f attrs);
18 | in
19 | stdenv.mkDerivation {
20 | name = "avf_image.tar.gz";
21 |
22 | nativeBuildInputs = [
23 | utillinux
24 | pigz
25 | e2fsprogs
26 | dosfstools
27 | ];
28 |
29 | dontUnpack = true;
30 | dontBuild = true;
31 | installPhase = ''
32 | diskImage=$(echo ${raw_disk_image}/*.img)
33 |
34 | OFFSETS=($(sfdisk -l $diskImage -o Start,Sectors | tail -n 2 | grep -o "[0-9]*"))
35 |
36 | echo "$out ${RELEASE_YEAR}" > build_id
37 |
38 | # bs=512 -> sector size is 512, skip=start sector, count=size in sectors
39 | dd if=$diskImage of=efi_part bs=512 skip="''${OFFSETS[0]}" count="''${OFFSETS[1]}"
40 | dd if=$diskImage of=root_part bs=512 skip="''${OFFSETS[2]}" count="''${OFFSETS[3]}"
41 |
42 | # can be removed once android e2fsck supports this feature
43 | tune2fs -O ^orphan_file root_part
44 | fsck.fat -v -a efi_part
45 |
46 | cp ${vm_config} vm_config.json
47 |
48 | sed -i "s/{efi_part_guid}/$(sfdisk --part-uuid $diskImage 1)/g" vm_config.json
49 | sed -i "s/{root_part_guid}/$(sfdisk --part-uuid $diskImage 2)/g" vm_config.json
50 |
51 | contents=(
52 | build_id
53 | root_part
54 | efi_part
55 | vm_config.json
56 | )
57 | ${concatMapAttrsStringSep "\n" (key: value: ''
58 | cp ${lib.escapeShellArg "${value}"} ${lib.escapeShellArg key}
59 | contents+=(${lib.escapeShellArg key})
60 | '') extraFiles}
61 |
62 | # --sparse option isn't supported in apache-commons-compress
63 | tar cv -I pigz -f $out -C . "''${contents[@]}"
64 | '';
65 | }
66 |
--------------------------------------------------------------------------------
/avf/forwarder_guest_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 = "anstream"
7 | version = "0.6.18"
8 | source = "registry+https://github.com/rust-lang/crates.io-index"
9 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
10 | dependencies = [
11 | "anstyle",
12 | "anstyle-parse",
13 | "anstyle-query",
14 | "anstyle-wincon",
15 | "colorchoice",
16 | "is_terminal_polyfill",
17 | "utf8parse",
18 | ]
19 |
20 | [[package]]
21 | name = "anstyle"
22 | version = "1.0.10"
23 | source = "registry+https://github.com/rust-lang/crates.io-index"
24 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
25 |
26 | [[package]]
27 | name = "anstyle-parse"
28 | version = "0.2.6"
29 | source = "registry+https://github.com/rust-lang/crates.io-index"
30 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
31 | dependencies = [
32 | "utf8parse",
33 | ]
34 |
35 | [[package]]
36 | name = "anstyle-query"
37 | version = "1.1.2"
38 | source = "registry+https://github.com/rust-lang/crates.io-index"
39 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
40 | dependencies = [
41 | "windows-sys",
42 | ]
43 |
44 | [[package]]
45 | name = "anstyle-wincon"
46 | version = "3.0.7"
47 | source = "registry+https://github.com/rust-lang/crates.io-index"
48 | checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
49 | dependencies = [
50 | "anstyle",
51 | "once_cell",
52 | "windows-sys",
53 | ]
54 |
55 | [[package]]
56 | name = "autocfg"
57 | version = "1.4.0"
58 | source = "registry+https://github.com/rust-lang/crates.io-index"
59 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
60 |
61 | [[package]]
62 | name = "bitflags"
63 | version = "1.3.2"
64 | source = "registry+https://github.com/rust-lang/crates.io-index"
65 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
66 |
67 | [[package]]
68 | name = "bitflags"
69 | version = "2.9.0"
70 | source = "registry+https://github.com/rust-lang/crates.io-index"
71 | checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
72 |
73 | [[package]]
74 | name = "cfg-if"
75 | version = "1.0.0"
76 | source = "registry+https://github.com/rust-lang/crates.io-index"
77 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
78 |
79 | [[package]]
80 | name = "cfg_aliases"
81 | version = "0.2.1"
82 | source = "registry+https://github.com/rust-lang/crates.io-index"
83 | checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
84 |
85 | [[package]]
86 | name = "clap"
87 | version = "4.5.32"
88 | source = "registry+https://github.com/rust-lang/crates.io-index"
89 | checksum = "6088f3ae8c3608d19260cd7445411865a485688711b78b5be70d78cd96136f83"
90 | dependencies = [
91 | "clap_builder",
92 | "clap_derive",
93 | ]
94 |
95 | [[package]]
96 | name = "clap_builder"
97 | version = "4.5.32"
98 | source = "registry+https://github.com/rust-lang/crates.io-index"
99 | checksum = "22a7ef7f676155edfb82daa97f99441f3ebf4a58d5e32f295a56259f1b6facc8"
100 | dependencies = [
101 | "anstream",
102 | "anstyle",
103 | "clap_lex",
104 | "strsim",
105 | ]
106 |
107 | [[package]]
108 | name = "clap_derive"
109 | version = "4.5.32"
110 | source = "registry+https://github.com/rust-lang/crates.io-index"
111 | checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7"
112 | dependencies = [
113 | "heck",
114 | "proc-macro2 1.0.94",
115 | "quote 1.0.40",
116 | "syn 2.0.100",
117 | ]
118 |
119 | [[package]]
120 | name = "clap_lex"
121 | version = "0.7.4"
122 | source = "registry+https://github.com/rust-lang/crates.io-index"
123 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
124 |
125 | [[package]]
126 | name = "colorchoice"
127 | version = "1.0.3"
128 | source = "registry+https://github.com/rust-lang/crates.io-index"
129 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
130 |
131 | [[package]]
132 | name = "forwarder"
133 | version = "0.1.0"
134 | dependencies = [
135 | "libc",
136 | "remain",
137 | "vsock",
138 | ]
139 |
140 | [[package]]
141 | name = "forwarder_guest"
142 | version = "0.1.0"
143 | dependencies = [
144 | "clap",
145 | "forwarder",
146 | "poll_token_derive",
147 | "remain",
148 | "vmm-sys-util",
149 | ]
150 |
151 | [[package]]
152 | name = "heck"
153 | version = "0.5.0"
154 | source = "registry+https://github.com/rust-lang/crates.io-index"
155 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
156 |
157 | [[package]]
158 | name = "is_terminal_polyfill"
159 | version = "1.70.1"
160 | source = "registry+https://github.com/rust-lang/crates.io-index"
161 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
162 |
163 | [[package]]
164 | name = "libc"
165 | version = "0.2.171"
166 | source = "registry+https://github.com/rust-lang/crates.io-index"
167 | checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
168 |
169 | [[package]]
170 | name = "memoffset"
171 | version = "0.9.1"
172 | source = "registry+https://github.com/rust-lang/crates.io-index"
173 | checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
174 | dependencies = [
175 | "autocfg",
176 | ]
177 |
178 | [[package]]
179 | name = "nix"
180 | version = "0.29.0"
181 | source = "registry+https://github.com/rust-lang/crates.io-index"
182 | checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
183 | dependencies = [
184 | "bitflags 2.9.0",
185 | "cfg-if",
186 | "cfg_aliases",
187 | "libc",
188 | "memoffset",
189 | ]
190 |
191 | [[package]]
192 | name = "once_cell"
193 | version = "1.21.1"
194 | source = "registry+https://github.com/rust-lang/crates.io-index"
195 | checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc"
196 |
197 | [[package]]
198 | name = "poll_token_derive"
199 | version = "0.1.0"
200 | source = "registry+https://github.com/rust-lang/crates.io-index"
201 | checksum = "cdb419a9f5d14041365a655a4747ff17be0bdb494bf467affedade4dfc3a4683"
202 | dependencies = [
203 | "proc-macro2 0.4.30",
204 | "quote 0.6.13",
205 | "syn 0.15.44",
206 | ]
207 |
208 | [[package]]
209 | name = "proc-macro2"
210 | version = "0.4.30"
211 | source = "registry+https://github.com/rust-lang/crates.io-index"
212 | checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"
213 | dependencies = [
214 | "unicode-xid",
215 | ]
216 |
217 | [[package]]
218 | name = "proc-macro2"
219 | version = "1.0.94"
220 | source = "registry+https://github.com/rust-lang/crates.io-index"
221 | checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
222 | dependencies = [
223 | "unicode-ident",
224 | ]
225 |
226 | [[package]]
227 | name = "quote"
228 | version = "0.6.13"
229 | source = "registry+https://github.com/rust-lang/crates.io-index"
230 | checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1"
231 | dependencies = [
232 | "proc-macro2 0.4.30",
233 | ]
234 |
235 | [[package]]
236 | name = "quote"
237 | version = "1.0.40"
238 | source = "registry+https://github.com/rust-lang/crates.io-index"
239 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
240 | dependencies = [
241 | "proc-macro2 1.0.94",
242 | ]
243 |
244 | [[package]]
245 | name = "remain"
246 | version = "0.2.15"
247 | source = "registry+https://github.com/rust-lang/crates.io-index"
248 | checksum = "d7ef12e84481ab4006cb942f8682bba28ece7270743e649442027c5db87df126"
249 | dependencies = [
250 | "proc-macro2 1.0.94",
251 | "quote 1.0.40",
252 | "syn 2.0.100",
253 | ]
254 |
255 | [[package]]
256 | name = "strsim"
257 | version = "0.11.1"
258 | source = "registry+https://github.com/rust-lang/crates.io-index"
259 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
260 |
261 | [[package]]
262 | name = "syn"
263 | version = "0.15.44"
264 | source = "registry+https://github.com/rust-lang/crates.io-index"
265 | checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5"
266 | dependencies = [
267 | "proc-macro2 0.4.30",
268 | "quote 0.6.13",
269 | "unicode-xid",
270 | ]
271 |
272 | [[package]]
273 | name = "syn"
274 | version = "2.0.100"
275 | source = "registry+https://github.com/rust-lang/crates.io-index"
276 | checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
277 | dependencies = [
278 | "proc-macro2 1.0.94",
279 | "quote 1.0.40",
280 | "unicode-ident",
281 | ]
282 |
283 | [[package]]
284 | name = "unicode-ident"
285 | version = "1.0.18"
286 | source = "registry+https://github.com/rust-lang/crates.io-index"
287 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
288 |
289 | [[package]]
290 | name = "unicode-xid"
291 | version = "0.1.0"
292 | source = "registry+https://github.com/rust-lang/crates.io-index"
293 | checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
294 |
295 | [[package]]
296 | name = "utf8parse"
297 | version = "0.2.2"
298 | source = "registry+https://github.com/rust-lang/crates.io-index"
299 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
300 |
301 | [[package]]
302 | name = "vmm-sys-util"
303 | version = "0.12.1"
304 | source = "registry+https://github.com/rust-lang/crates.io-index"
305 | checksum = "1d1435039746e20da4f8d507a72ee1b916f7b4b05af7a91c093d2c6561934ede"
306 | dependencies = [
307 | "bitflags 1.3.2",
308 | "libc",
309 | ]
310 |
311 | [[package]]
312 | name = "vsock"
313 | version = "0.5.1"
314 | source = "registry+https://github.com/rust-lang/crates.io-index"
315 | checksum = "4e8b4d00e672f147fc86a09738fadb1445bd1c0a40542378dfb82909deeee688"
316 | dependencies = [
317 | "libc",
318 | "nix",
319 | ]
320 |
321 | [[package]]
322 | name = "windows-sys"
323 | version = "0.59.0"
324 | source = "registry+https://github.com/rust-lang/crates.io-index"
325 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
326 | dependencies = [
327 | "windows-targets",
328 | ]
329 |
330 | [[package]]
331 | name = "windows-targets"
332 | version = "0.52.6"
333 | source = "registry+https://github.com/rust-lang/crates.io-index"
334 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
335 | dependencies = [
336 | "windows_aarch64_gnullvm",
337 | "windows_aarch64_msvc",
338 | "windows_i686_gnu",
339 | "windows_i686_gnullvm",
340 | "windows_i686_msvc",
341 | "windows_x86_64_gnu",
342 | "windows_x86_64_gnullvm",
343 | "windows_x86_64_msvc",
344 | ]
345 |
346 | [[package]]
347 | name = "windows_aarch64_gnullvm"
348 | version = "0.52.6"
349 | source = "registry+https://github.com/rust-lang/crates.io-index"
350 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
351 |
352 | [[package]]
353 | name = "windows_aarch64_msvc"
354 | version = "0.52.6"
355 | source = "registry+https://github.com/rust-lang/crates.io-index"
356 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
357 |
358 | [[package]]
359 | name = "windows_i686_gnu"
360 | version = "0.52.6"
361 | source = "registry+https://github.com/rust-lang/crates.io-index"
362 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
363 |
364 | [[package]]
365 | name = "windows_i686_gnullvm"
366 | version = "0.52.6"
367 | source = "registry+https://github.com/rust-lang/crates.io-index"
368 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
369 |
370 | [[package]]
371 | name = "windows_i686_msvc"
372 | version = "0.52.6"
373 | source = "registry+https://github.com/rust-lang/crates.io-index"
374 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
375 |
376 | [[package]]
377 | name = "windows_x86_64_gnu"
378 | version = "0.52.6"
379 | source = "registry+https://github.com/rust-lang/crates.io-index"
380 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
381 |
382 | [[package]]
383 | name = "windows_x86_64_gnullvm"
384 | version = "0.52.6"
385 | source = "registry+https://github.com/rust-lang/crates.io-index"
386 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
387 |
388 | [[package]]
389 | name = "windows_x86_64_msvc"
390 | version = "0.52.6"
391 | source = "registry+https://github.com/rust-lang/crates.io-index"
392 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
393 |
--------------------------------------------------------------------------------
/avf/guest-tcpstates.patch:
--------------------------------------------------------------------------------
1 | diff --git a/src/main.rs b/src/main.rs
2 | index 3cb557aed..b42e54eb9 100644
3 | --- a/src/main.rs
4 | +++ b/src/main.rs
5 | @@ -112,9 +112,7 @@ async fn report_active_ports(
6 | mut client: DebianServiceClient,
7 | ) -> Result<(), Box> {
8 | // TODO: we can remove python3 -u when https://github.com/iovisor/bcc/pull/5142 is deployed
9 | - let mut cmd = Command::new("python3")
10 | - .arg("-u")
11 | - .arg("/usr/sbin/tcpstates-bpfcc")
12 | + let mut cmd = Command::new("tcpstates")
13 | .arg("-s")
14 | .stdout(Stdio::piped())
15 | .spawn()?;
16 |
--------------------------------------------------------------------------------
/avf/pkgs.nix:
--------------------------------------------------------------------------------
1 | {
2 | base,
3 | lib,
4 | ttyd,
5 | rustPlatform,
6 | protobuf_28,
7 | libwebsockets,
8 | }:
9 | let
10 |
11 | mkRustPkg =
12 | name: lock: extra:
13 | rustPlatform.buildRustPackage (
14 | {
15 | inherit name;
16 |
17 | RUSTFLAGS = "-C linker=gcc";
18 |
19 | # see https://github.com/NixOS/nixpkgs/issues/145726
20 | # TODO: disable when cross-compling
21 | prePatch = ''
22 | rm .cargo/config.toml
23 | '';
24 |
25 | src = base;
26 | setSourceRoot = "sourceRoot=$(echo */guest/${name})";
27 |
28 | nativeBuildInputs = [
29 | protobuf_28
30 | ];
31 |
32 | postPatch = ''
33 | ln -s ${lock} Cargo.lock
34 | '';
35 |
36 | cargoLock = {
37 | lockFile = lock;
38 | };
39 |
40 | meta = {
41 | mainProgram = name;
42 | };
43 | }
44 | // extra
45 | );
46 | in
47 | {
48 | ttyd =
49 | (ttyd.override ({
50 | libwebsockets = libwebsockets.overrideAttrs (_: {
51 | patches = [
52 | "${base}/build/debian/ttyd/client_cert.patch"
53 | ];
54 | });
55 | })).overrideAttrs
56 | (a: {
57 | patches = [
58 | "${base}/build/debian/ttyd/xtermjs_a11y.patch"
59 | ];
60 | });
61 |
62 | android_virt = lib.recurseIntoAttrs {
63 | forwarder_guest = mkRustPkg "forwarder_guest" ./forwarder_guest_Cargo.lock { };
64 | forwarder_guest_launcher =
65 | mkRustPkg "forwarder_guest_launcher" ./forwarder_guest_launcher_Cargo.lock
66 | {
67 | patches = [
68 | ./guest-tcpstates.patch
69 | ];
70 | };
71 | shutdown_runner = mkRustPkg "shutdown_runner" ./shutdown_runner_Cargo.lock { };
72 | storage_balloon_agent = mkRustPkg "storage_balloon_agent" ./storage_balloon_agent_Cargo.lock { };
73 | };
74 | }
75 |
--------------------------------------------------------------------------------
/avf/shutdown_runner_Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | version = 4
4 |
5 | [[package]]
6 | name = "addr2line"
7 | version = "0.24.2"
8 | source = "registry+https://github.com/rust-lang/crates.io-index"
9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
10 | dependencies = [
11 | "gimli",
12 | ]
13 |
14 | [[package]]
15 | name = "adler2"
16 | version = "2.0.0"
17 | source = "registry+https://github.com/rust-lang/crates.io-index"
18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
19 |
20 | [[package]]
21 | name = "aho-corasick"
22 | version = "1.1.3"
23 | source = "registry+https://github.com/rust-lang/crates.io-index"
24 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
25 | dependencies = [
26 | "memchr",
27 | ]
28 |
29 | [[package]]
30 | name = "anstream"
31 | version = "0.6.18"
32 | source = "registry+https://github.com/rust-lang/crates.io-index"
33 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
34 | dependencies = [
35 | "anstyle",
36 | "anstyle-parse",
37 | "anstyle-query",
38 | "anstyle-wincon",
39 | "colorchoice",
40 | "is_terminal_polyfill",
41 | "utf8parse",
42 | ]
43 |
44 | [[package]]
45 | name = "anstyle"
46 | version = "1.0.10"
47 | source = "registry+https://github.com/rust-lang/crates.io-index"
48 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
49 |
50 | [[package]]
51 | name = "anstyle-parse"
52 | version = "0.2.6"
53 | source = "registry+https://github.com/rust-lang/crates.io-index"
54 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
55 | dependencies = [
56 | "utf8parse",
57 | ]
58 |
59 | [[package]]
60 | name = "anstyle-query"
61 | version = "1.1.2"
62 | source = "registry+https://github.com/rust-lang/crates.io-index"
63 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
64 | dependencies = [
65 | "windows-sys 0.59.0",
66 | ]
67 |
68 | [[package]]
69 | name = "anstyle-wincon"
70 | version = "3.0.7"
71 | source = "registry+https://github.com/rust-lang/crates.io-index"
72 | checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
73 | dependencies = [
74 | "anstyle",
75 | "once_cell",
76 | "windows-sys 0.59.0",
77 | ]
78 |
79 | [[package]]
80 | name = "anyhow"
81 | version = "1.0.97"
82 | source = "registry+https://github.com/rust-lang/crates.io-index"
83 | checksum = "dcfed56ad506cb2c684a14971b8861fdc3baaaae314b9e5f9bb532cbe3ba7a4f"
84 |
85 | [[package]]
86 | name = "async-stream"
87 | version = "0.3.6"
88 | source = "registry+https://github.com/rust-lang/crates.io-index"
89 | checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476"
90 | dependencies = [
91 | "async-stream-impl",
92 | "futures-core",
93 | "pin-project-lite",
94 | ]
95 |
96 | [[package]]
97 | name = "async-stream-impl"
98 | version = "0.3.6"
99 | source = "registry+https://github.com/rust-lang/crates.io-index"
100 | checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
101 | dependencies = [
102 | "proc-macro2",
103 | "quote",
104 | "syn",
105 | ]
106 |
107 | [[package]]
108 | name = "async-trait"
109 | version = "0.1.88"
110 | source = "registry+https://github.com/rust-lang/crates.io-index"
111 | checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"
112 | dependencies = [
113 | "proc-macro2",
114 | "quote",
115 | "syn",
116 | ]
117 |
118 | [[package]]
119 | name = "atomic-waker"
120 | version = "1.1.2"
121 | source = "registry+https://github.com/rust-lang/crates.io-index"
122 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
123 |
124 | [[package]]
125 | name = "autocfg"
126 | version = "1.4.0"
127 | source = "registry+https://github.com/rust-lang/crates.io-index"
128 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
129 |
130 | [[package]]
131 | name = "axum"
132 | version = "0.7.9"
133 | source = "registry+https://github.com/rust-lang/crates.io-index"
134 | checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
135 | dependencies = [
136 | "async-trait",
137 | "axum-core",
138 | "bytes",
139 | "futures-util",
140 | "http",
141 | "http-body",
142 | "http-body-util",
143 | "itoa",
144 | "matchit",
145 | "memchr",
146 | "mime",
147 | "percent-encoding",
148 | "pin-project-lite",
149 | "rustversion",
150 | "serde",
151 | "sync_wrapper",
152 | "tower 0.5.2",
153 | "tower-layer",
154 | "tower-service",
155 | ]
156 |
157 | [[package]]
158 | name = "axum-core"
159 | version = "0.4.5"
160 | source = "registry+https://github.com/rust-lang/crates.io-index"
161 | checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199"
162 | dependencies = [
163 | "async-trait",
164 | "bytes",
165 | "futures-util",
166 | "http",
167 | "http-body",
168 | "http-body-util",
169 | "mime",
170 | "pin-project-lite",
171 | "rustversion",
172 | "sync_wrapper",
173 | "tower-layer",
174 | "tower-service",
175 | ]
176 |
177 | [[package]]
178 | name = "backtrace"
179 | version = "0.3.74"
180 | source = "registry+https://github.com/rust-lang/crates.io-index"
181 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
182 | dependencies = [
183 | "addr2line",
184 | "cfg-if",
185 | "libc",
186 | "miniz_oxide",
187 | "object",
188 | "rustc-demangle",
189 | "windows-targets",
190 | ]
191 |
192 | [[package]]
193 | name = "base64"
194 | version = "0.22.1"
195 | source = "registry+https://github.com/rust-lang/crates.io-index"
196 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
197 |
198 | [[package]]
199 | name = "bitflags"
200 | version = "1.3.2"
201 | source = "registry+https://github.com/rust-lang/crates.io-index"
202 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
203 |
204 | [[package]]
205 | name = "bitflags"
206 | version = "2.9.0"
207 | source = "registry+https://github.com/rust-lang/crates.io-index"
208 | checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
209 |
210 | [[package]]
211 | name = "byteorder"
212 | version = "1.5.0"
213 | source = "registry+https://github.com/rust-lang/crates.io-index"
214 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
215 |
216 | [[package]]
217 | name = "bytes"
218 | version = "1.10.1"
219 | source = "registry+https://github.com/rust-lang/crates.io-index"
220 | checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
221 |
222 | [[package]]
223 | name = "cfg-if"
224 | version = "1.0.0"
225 | source = "registry+https://github.com/rust-lang/crates.io-index"
226 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
227 |
228 | [[package]]
229 | name = "clap"
230 | version = "4.5.32"
231 | source = "registry+https://github.com/rust-lang/crates.io-index"
232 | checksum = "6088f3ae8c3608d19260cd7445411865a485688711b78b5be70d78cd96136f83"
233 | dependencies = [
234 | "clap_builder",
235 | "clap_derive",
236 | ]
237 |
238 | [[package]]
239 | name = "clap_builder"
240 | version = "4.5.32"
241 | source = "registry+https://github.com/rust-lang/crates.io-index"
242 | checksum = "22a7ef7f676155edfb82daa97f99441f3ebf4a58d5e32f295a56259f1b6facc8"
243 | dependencies = [
244 | "anstream",
245 | "anstyle",
246 | "clap_lex",
247 | "strsim",
248 | ]
249 |
250 | [[package]]
251 | name = "clap_derive"
252 | version = "4.5.32"
253 | source = "registry+https://github.com/rust-lang/crates.io-index"
254 | checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7"
255 | dependencies = [
256 | "heck",
257 | "proc-macro2",
258 | "quote",
259 | "syn",
260 | ]
261 |
262 | [[package]]
263 | name = "clap_lex"
264 | version = "0.7.4"
265 | source = "registry+https://github.com/rust-lang/crates.io-index"
266 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
267 |
268 | [[package]]
269 | name = "colorchoice"
270 | version = "1.0.3"
271 | source = "registry+https://github.com/rust-lang/crates.io-index"
272 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
273 |
274 | [[package]]
275 | name = "core-foundation"
276 | version = "0.9.4"
277 | source = "registry+https://github.com/rust-lang/crates.io-index"
278 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
279 | dependencies = [
280 | "core-foundation-sys",
281 | "libc",
282 | ]
283 |
284 | [[package]]
285 | name = "core-foundation-sys"
286 | version = "0.8.7"
287 | source = "registry+https://github.com/rust-lang/crates.io-index"
288 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
289 |
290 | [[package]]
291 | name = "dlopen2"
292 | version = "0.5.0"
293 | source = "registry+https://github.com/rust-lang/crates.io-index"
294 | checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa"
295 | dependencies = [
296 | "libc",
297 | "once_cell",
298 | "winapi",
299 | ]
300 |
301 | [[package]]
302 | name = "either"
303 | version = "1.15.0"
304 | source = "registry+https://github.com/rust-lang/crates.io-index"
305 | checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
306 |
307 | [[package]]
308 | name = "env_filter"
309 | version = "0.1.3"
310 | source = "registry+https://github.com/rust-lang/crates.io-index"
311 | checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0"
312 | dependencies = [
313 | "log",
314 | "regex",
315 | ]
316 |
317 | [[package]]
318 | name = "env_logger"
319 | version = "0.11.7"
320 | source = "registry+https://github.com/rust-lang/crates.io-index"
321 | checksum = "c3716d7a920fb4fac5d84e9d4bce8ceb321e9414b4409da61b07b75c1e3d0697"
322 | dependencies = [
323 | "anstream",
324 | "anstyle",
325 | "env_filter",
326 | "jiff",
327 | "log",
328 | ]
329 |
330 | [[package]]
331 | name = "equivalent"
332 | version = "1.0.2"
333 | source = "registry+https://github.com/rust-lang/crates.io-index"
334 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
335 |
336 | [[package]]
337 | name = "errno"
338 | version = "0.3.10"
339 | source = "registry+https://github.com/rust-lang/crates.io-index"
340 | checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
341 | dependencies = [
342 | "libc",
343 | "windows-sys 0.59.0",
344 | ]
345 |
346 | [[package]]
347 | name = "fastrand"
348 | version = "2.3.0"
349 | source = "registry+https://github.com/rust-lang/crates.io-index"
350 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
351 |
352 | [[package]]
353 | name = "fixedbitset"
354 | version = "0.5.7"
355 | source = "registry+https://github.com/rust-lang/crates.io-index"
356 | checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99"
357 |
358 | [[package]]
359 | name = "fnv"
360 | version = "1.0.7"
361 | source = "registry+https://github.com/rust-lang/crates.io-index"
362 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
363 |
364 | [[package]]
365 | name = "futures-channel"
366 | version = "0.3.31"
367 | source = "registry+https://github.com/rust-lang/crates.io-index"
368 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
369 | dependencies = [
370 | "futures-core",
371 | ]
372 |
373 | [[package]]
374 | name = "futures-core"
375 | version = "0.3.31"
376 | source = "registry+https://github.com/rust-lang/crates.io-index"
377 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
378 |
379 | [[package]]
380 | name = "futures-sink"
381 | version = "0.3.31"
382 | source = "registry+https://github.com/rust-lang/crates.io-index"
383 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
384 |
385 | [[package]]
386 | name = "futures-task"
387 | version = "0.3.31"
388 | source = "registry+https://github.com/rust-lang/crates.io-index"
389 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
390 |
391 | [[package]]
392 | name = "futures-util"
393 | version = "0.3.31"
394 | source = "registry+https://github.com/rust-lang/crates.io-index"
395 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
396 | dependencies = [
397 | "futures-core",
398 | "futures-task",
399 | "pin-project-lite",
400 | "pin-utils",
401 | ]
402 |
403 | [[package]]
404 | name = "getrandom"
405 | version = "0.2.15"
406 | source = "registry+https://github.com/rust-lang/crates.io-index"
407 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
408 | dependencies = [
409 | "cfg-if",
410 | "libc",
411 | "wasi 0.11.0+wasi-snapshot-preview1",
412 | ]
413 |
414 | [[package]]
415 | name = "getrandom"
416 | version = "0.3.1"
417 | source = "registry+https://github.com/rust-lang/crates.io-index"
418 | checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
419 | dependencies = [
420 | "cfg-if",
421 | "libc",
422 | "wasi 0.13.3+wasi-0.2.2",
423 | "windows-targets",
424 | ]
425 |
426 | [[package]]
427 | name = "gimli"
428 | version = "0.31.1"
429 | source = "registry+https://github.com/rust-lang/crates.io-index"
430 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
431 |
432 | [[package]]
433 | name = "h2"
434 | version = "0.4.8"
435 | source = "registry+https://github.com/rust-lang/crates.io-index"
436 | checksum = "5017294ff4bb30944501348f6f8e42e6ad28f42c8bbef7a74029aff064a4e3c2"
437 | dependencies = [
438 | "atomic-waker",
439 | "bytes",
440 | "fnv",
441 | "futures-core",
442 | "futures-sink",
443 | "http",
444 | "indexmap 2.8.0",
445 | "slab",
446 | "tokio",
447 | "tokio-util",
448 | "tracing",
449 | ]
450 |
451 | [[package]]
452 | name = "hashbrown"
453 | version = "0.12.3"
454 | source = "registry+https://github.com/rust-lang/crates.io-index"
455 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
456 |
457 | [[package]]
458 | name = "hashbrown"
459 | version = "0.15.2"
460 | source = "registry+https://github.com/rust-lang/crates.io-index"
461 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
462 |
463 | [[package]]
464 | name = "heck"
465 | version = "0.5.0"
466 | source = "registry+https://github.com/rust-lang/crates.io-index"
467 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
468 |
469 | [[package]]
470 | name = "http"
471 | version = "1.3.1"
472 | source = "registry+https://github.com/rust-lang/crates.io-index"
473 | checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
474 | dependencies = [
475 | "bytes",
476 | "fnv",
477 | "itoa",
478 | ]
479 |
480 | [[package]]
481 | name = "http-body"
482 | version = "1.0.1"
483 | source = "registry+https://github.com/rust-lang/crates.io-index"
484 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
485 | dependencies = [
486 | "bytes",
487 | "http",
488 | ]
489 |
490 | [[package]]
491 | name = "http-body-util"
492 | version = "0.1.3"
493 | source = "registry+https://github.com/rust-lang/crates.io-index"
494 | checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
495 | dependencies = [
496 | "bytes",
497 | "futures-core",
498 | "http",
499 | "http-body",
500 | "pin-project-lite",
501 | ]
502 |
503 | [[package]]
504 | name = "httparse"
505 | version = "1.10.1"
506 | source = "registry+https://github.com/rust-lang/crates.io-index"
507 | checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
508 |
509 | [[package]]
510 | name = "httpdate"
511 | version = "1.0.3"
512 | source = "registry+https://github.com/rust-lang/crates.io-index"
513 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
514 |
515 | [[package]]
516 | name = "hyper"
517 | version = "1.6.0"
518 | source = "registry+https://github.com/rust-lang/crates.io-index"
519 | checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
520 | dependencies = [
521 | "bytes",
522 | "futures-channel",
523 | "futures-util",
524 | "h2",
525 | "http",
526 | "http-body",
527 | "httparse",
528 | "httpdate",
529 | "itoa",
530 | "pin-project-lite",
531 | "smallvec",
532 | "tokio",
533 | "want",
534 | ]
535 |
536 | [[package]]
537 | name = "hyper-timeout"
538 | version = "0.5.2"
539 | source = "registry+https://github.com/rust-lang/crates.io-index"
540 | checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0"
541 | dependencies = [
542 | "hyper",
543 | "hyper-util",
544 | "pin-project-lite",
545 | "tokio",
546 | "tower-service",
547 | ]
548 |
549 | [[package]]
550 | name = "hyper-util"
551 | version = "0.1.10"
552 | source = "registry+https://github.com/rust-lang/crates.io-index"
553 | checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4"
554 | dependencies = [
555 | "bytes",
556 | "futures-channel",
557 | "futures-util",
558 | "http",
559 | "http-body",
560 | "hyper",
561 | "pin-project-lite",
562 | "socket2",
563 | "tokio",
564 | "tower-service",
565 | "tracing",
566 | ]
567 |
568 | [[package]]
569 | name = "indexmap"
570 | version = "1.9.3"
571 | source = "registry+https://github.com/rust-lang/crates.io-index"
572 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
573 | dependencies = [
574 | "autocfg",
575 | "hashbrown 0.12.3",
576 | ]
577 |
578 | [[package]]
579 | name = "indexmap"
580 | version = "2.8.0"
581 | source = "registry+https://github.com/rust-lang/crates.io-index"
582 | checksum = "3954d50fe15b02142bf25d3b8bdadb634ec3948f103d04ffe3031bc8fe9d7058"
583 | dependencies = [
584 | "equivalent",
585 | "hashbrown 0.15.2",
586 | ]
587 |
588 | [[package]]
589 | name = "ipnet"
590 | version = "2.11.0"
591 | source = "registry+https://github.com/rust-lang/crates.io-index"
592 | checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
593 |
594 | [[package]]
595 | name = "is_terminal_polyfill"
596 | version = "1.70.1"
597 | source = "registry+https://github.com/rust-lang/crates.io-index"
598 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
599 |
600 | [[package]]
601 | name = "itertools"
602 | version = "0.14.0"
603 | source = "registry+https://github.com/rust-lang/crates.io-index"
604 | checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
605 | dependencies = [
606 | "either",
607 | ]
608 |
609 | [[package]]
610 | name = "itoa"
611 | version = "1.0.15"
612 | source = "registry+https://github.com/rust-lang/crates.io-index"
613 | checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
614 |
615 | [[package]]
616 | name = "jiff"
617 | version = "0.2.4"
618 | source = "registry+https://github.com/rust-lang/crates.io-index"
619 | checksum = "d699bc6dfc879fb1bf9bdff0d4c56f0884fc6f0d0eb0fba397a6d00cd9a6b85e"
620 | dependencies = [
621 | "jiff-static",
622 | "log",
623 | "portable-atomic",
624 | "portable-atomic-util",
625 | "serde",
626 | ]
627 |
628 | [[package]]
629 | name = "jiff-static"
630 | version = "0.2.4"
631 | source = "registry+https://github.com/rust-lang/crates.io-index"
632 | checksum = "8d16e75759ee0aa64c57a56acbf43916987b20c77373cb7e808979e02b93c9f9"
633 | dependencies = [
634 | "proc-macro2",
635 | "quote",
636 | "syn",
637 | ]
638 |
639 | [[package]]
640 | name = "libc"
641 | version = "0.2.171"
642 | source = "registry+https://github.com/rust-lang/crates.io-index"
643 | checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
644 |
645 | [[package]]
646 | name = "linux-raw-sys"
647 | version = "0.9.3"
648 | source = "registry+https://github.com/rust-lang/crates.io-index"
649 | checksum = "fe7db12097d22ec582439daf8618b8fdd1a7bef6270e9af3b1ebcd30893cf413"
650 |
651 | [[package]]
652 | name = "log"
653 | version = "0.4.26"
654 | source = "registry+https://github.com/rust-lang/crates.io-index"
655 | checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e"
656 |
657 | [[package]]
658 | name = "matchit"
659 | version = "0.7.3"
660 | source = "registry+https://github.com/rust-lang/crates.io-index"
661 | checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
662 |
663 | [[package]]
664 | name = "memchr"
665 | version = "2.7.4"
666 | source = "registry+https://github.com/rust-lang/crates.io-index"
667 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
668 |
669 | [[package]]
670 | name = "mime"
671 | version = "0.3.17"
672 | source = "registry+https://github.com/rust-lang/crates.io-index"
673 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
674 |
675 | [[package]]
676 | name = "miniz_oxide"
677 | version = "0.8.5"
678 | source = "registry+https://github.com/rust-lang/crates.io-index"
679 | checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5"
680 | dependencies = [
681 | "adler2",
682 | ]
683 |
684 | [[package]]
685 | name = "mio"
686 | version = "1.0.3"
687 | source = "registry+https://github.com/rust-lang/crates.io-index"
688 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd"
689 | dependencies = [
690 | "libc",
691 | "wasi 0.11.0+wasi-snapshot-preview1",
692 | "windows-sys 0.52.0",
693 | ]
694 |
695 | [[package]]
696 | name = "multimap"
697 | version = "0.10.0"
698 | source = "registry+https://github.com/rust-lang/crates.io-index"
699 | checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03"
700 |
701 | [[package]]
702 | name = "netdev"
703 | version = "0.31.0"
704 | source = "registry+https://github.com/rust-lang/crates.io-index"
705 | checksum = "f901362e84cd407be6f8cd9d3a46bccf09136b095792785401ea7d283c79b91d"
706 | dependencies = [
707 | "dlopen2",
708 | "ipnet",
709 | "libc",
710 | "netlink-packet-core",
711 | "netlink-packet-route",
712 | "netlink-sys",
713 | "once_cell",
714 | "system-configuration",
715 | "windows-sys 0.52.0",
716 | ]
717 |
718 | [[package]]
719 | name = "netlink-packet-core"
720 | version = "0.7.0"
721 | source = "registry+https://github.com/rust-lang/crates.io-index"
722 | checksum = "72724faf704479d67b388da142b186f916188505e7e0b26719019c525882eda4"
723 | dependencies = [
724 | "anyhow",
725 | "byteorder",
726 | "netlink-packet-utils",
727 | ]
728 |
729 | [[package]]
730 | name = "netlink-packet-route"
731 | version = "0.17.1"
732 | source = "registry+https://github.com/rust-lang/crates.io-index"
733 | checksum = "053998cea5a306971f88580d0829e90f270f940befd7cf928da179d4187a5a66"
734 | dependencies = [
735 | "anyhow",
736 | "bitflags 1.3.2",
737 | "byteorder",
738 | "libc",
739 | "netlink-packet-core",
740 | "netlink-packet-utils",
741 | ]
742 |
743 | [[package]]
744 | name = "netlink-packet-utils"
745 | version = "0.5.2"
746 | source = "registry+https://github.com/rust-lang/crates.io-index"
747 | checksum = "0ede8a08c71ad5a95cdd0e4e52facd37190977039a4704eb82a283f713747d34"
748 | dependencies = [
749 | "anyhow",
750 | "byteorder",
751 | "paste",
752 | "thiserror",
753 | ]
754 |
755 | [[package]]
756 | name = "netlink-sys"
757 | version = "0.8.7"
758 | source = "registry+https://github.com/rust-lang/crates.io-index"
759 | checksum = "16c903aa70590cb93691bf97a767c8d1d6122d2cc9070433deb3bbf36ce8bd23"
760 | dependencies = [
761 | "bytes",
762 | "libc",
763 | "log",
764 | ]
765 |
766 | [[package]]
767 | name = "object"
768 | version = "0.36.7"
769 | source = "registry+https://github.com/rust-lang/crates.io-index"
770 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
771 | dependencies = [
772 | "memchr",
773 | ]
774 |
775 | [[package]]
776 | name = "once_cell"
777 | version = "1.21.1"
778 | source = "registry+https://github.com/rust-lang/crates.io-index"
779 | checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc"
780 |
781 | [[package]]
782 | name = "paste"
783 | version = "1.0.15"
784 | source = "registry+https://github.com/rust-lang/crates.io-index"
785 | checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
786 |
787 | [[package]]
788 | name = "percent-encoding"
789 | version = "2.3.1"
790 | source = "registry+https://github.com/rust-lang/crates.io-index"
791 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
792 |
793 | [[package]]
794 | name = "petgraph"
795 | version = "0.7.1"
796 | source = "registry+https://github.com/rust-lang/crates.io-index"
797 | checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772"
798 | dependencies = [
799 | "fixedbitset",
800 | "indexmap 2.8.0",
801 | ]
802 |
803 | [[package]]
804 | name = "pin-project"
805 | version = "1.1.10"
806 | source = "registry+https://github.com/rust-lang/crates.io-index"
807 | checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a"
808 | dependencies = [
809 | "pin-project-internal",
810 | ]
811 |
812 | [[package]]
813 | name = "pin-project-internal"
814 | version = "1.1.10"
815 | source = "registry+https://github.com/rust-lang/crates.io-index"
816 | checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861"
817 | dependencies = [
818 | "proc-macro2",
819 | "quote",
820 | "syn",
821 | ]
822 |
823 | [[package]]
824 | name = "pin-project-lite"
825 | version = "0.2.16"
826 | source = "registry+https://github.com/rust-lang/crates.io-index"
827 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
828 |
829 | [[package]]
830 | name = "pin-utils"
831 | version = "0.1.0"
832 | source = "registry+https://github.com/rust-lang/crates.io-index"
833 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
834 |
835 | [[package]]
836 | name = "portable-atomic"
837 | version = "1.11.0"
838 | source = "registry+https://github.com/rust-lang/crates.io-index"
839 | checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e"
840 |
841 | [[package]]
842 | name = "portable-atomic-util"
843 | version = "0.2.4"
844 | source = "registry+https://github.com/rust-lang/crates.io-index"
845 | checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
846 | dependencies = [
847 | "portable-atomic",
848 | ]
849 |
850 | [[package]]
851 | name = "ppv-lite86"
852 | version = "0.2.21"
853 | source = "registry+https://github.com/rust-lang/crates.io-index"
854 | checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
855 | dependencies = [
856 | "zerocopy",
857 | ]
858 |
859 | [[package]]
860 | name = "prettyplease"
861 | version = "0.2.31"
862 | source = "registry+https://github.com/rust-lang/crates.io-index"
863 | checksum = "5316f57387668042f561aae71480de936257848f9c43ce528e311d89a07cadeb"
864 | dependencies = [
865 | "proc-macro2",
866 | "syn",
867 | ]
868 |
869 | [[package]]
870 | name = "proc-macro2"
871 | version = "1.0.94"
872 | source = "registry+https://github.com/rust-lang/crates.io-index"
873 | checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
874 | dependencies = [
875 | "unicode-ident",
876 | ]
877 |
878 | [[package]]
879 | name = "prost"
880 | version = "0.13.5"
881 | source = "registry+https://github.com/rust-lang/crates.io-index"
882 | checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5"
883 | dependencies = [
884 | "bytes",
885 | "prost-derive",
886 | ]
887 |
888 | [[package]]
889 | name = "prost-build"
890 | version = "0.13.5"
891 | source = "registry+https://github.com/rust-lang/crates.io-index"
892 | checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf"
893 | dependencies = [
894 | "heck",
895 | "itertools",
896 | "log",
897 | "multimap",
898 | "once_cell",
899 | "petgraph",
900 | "prettyplease",
901 | "prost",
902 | "prost-types",
903 | "regex",
904 | "syn",
905 | "tempfile",
906 | ]
907 |
908 | [[package]]
909 | name = "prost-derive"
910 | version = "0.13.5"
911 | source = "registry+https://github.com/rust-lang/crates.io-index"
912 | checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d"
913 | dependencies = [
914 | "anyhow",
915 | "itertools",
916 | "proc-macro2",
917 | "quote",
918 | "syn",
919 | ]
920 |
921 | [[package]]
922 | name = "prost-types"
923 | version = "0.13.5"
924 | source = "registry+https://github.com/rust-lang/crates.io-index"
925 | checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16"
926 | dependencies = [
927 | "prost",
928 | ]
929 |
930 | [[package]]
931 | name = "quote"
932 | version = "1.0.40"
933 | source = "registry+https://github.com/rust-lang/crates.io-index"
934 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
935 | dependencies = [
936 | "proc-macro2",
937 | ]
938 |
939 | [[package]]
940 | name = "rand"
941 | version = "0.8.5"
942 | source = "registry+https://github.com/rust-lang/crates.io-index"
943 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
944 | dependencies = [
945 | "libc",
946 | "rand_chacha",
947 | "rand_core",
948 | ]
949 |
950 | [[package]]
951 | name = "rand_chacha"
952 | version = "0.3.1"
953 | source = "registry+https://github.com/rust-lang/crates.io-index"
954 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
955 | dependencies = [
956 | "ppv-lite86",
957 | "rand_core",
958 | ]
959 |
960 | [[package]]
961 | name = "rand_core"
962 | version = "0.6.4"
963 | source = "registry+https://github.com/rust-lang/crates.io-index"
964 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
965 | dependencies = [
966 | "getrandom 0.2.15",
967 | ]
968 |
969 | [[package]]
970 | name = "regex"
971 | version = "1.11.1"
972 | source = "registry+https://github.com/rust-lang/crates.io-index"
973 | checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
974 | dependencies = [
975 | "aho-corasick",
976 | "memchr",
977 | "regex-automata",
978 | "regex-syntax",
979 | ]
980 |
981 | [[package]]
982 | name = "regex-automata"
983 | version = "0.4.9"
984 | source = "registry+https://github.com/rust-lang/crates.io-index"
985 | checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
986 | dependencies = [
987 | "aho-corasick",
988 | "memchr",
989 | "regex-syntax",
990 | ]
991 |
992 | [[package]]
993 | name = "regex-syntax"
994 | version = "0.8.5"
995 | source = "registry+https://github.com/rust-lang/crates.io-index"
996 | checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
997 |
998 | [[package]]
999 | name = "rustc-demangle"
1000 | version = "0.1.24"
1001 | source = "registry+https://github.com/rust-lang/crates.io-index"
1002 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
1003 |
1004 | [[package]]
1005 | name = "rustix"
1006 | version = "1.0.2"
1007 | source = "registry+https://github.com/rust-lang/crates.io-index"
1008 | checksum = "f7178faa4b75a30e269c71e61c353ce2748cf3d76f0c44c393f4e60abf49b825"
1009 | dependencies = [
1010 | "bitflags 2.9.0",
1011 | "errno",
1012 | "libc",
1013 | "linux-raw-sys",
1014 | "windows-sys 0.59.0",
1015 | ]
1016 |
1017 | [[package]]
1018 | name = "rustversion"
1019 | version = "1.0.20"
1020 | source = "registry+https://github.com/rust-lang/crates.io-index"
1021 | checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
1022 |
1023 | [[package]]
1024 | name = "serde"
1025 | version = "1.0.219"
1026 | source = "registry+https://github.com/rust-lang/crates.io-index"
1027 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
1028 | dependencies = [
1029 | "serde_derive",
1030 | ]
1031 |
1032 | [[package]]
1033 | name = "serde_derive"
1034 | version = "1.0.219"
1035 | source = "registry+https://github.com/rust-lang/crates.io-index"
1036 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
1037 | dependencies = [
1038 | "proc-macro2",
1039 | "quote",
1040 | "syn",
1041 | ]
1042 |
1043 | [[package]]
1044 | name = "shutdown_runner"
1045 | version = "0.1.0"
1046 | dependencies = [
1047 | "anyhow",
1048 | "clap",
1049 | "env_logger",
1050 | "log",
1051 | "netdev",
1052 | "prost",
1053 | "tokio",
1054 | "tonic",
1055 | "tonic-build",
1056 | ]
1057 |
1058 | [[package]]
1059 | name = "slab"
1060 | version = "0.4.9"
1061 | source = "registry+https://github.com/rust-lang/crates.io-index"
1062 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
1063 | dependencies = [
1064 | "autocfg",
1065 | ]
1066 |
1067 | [[package]]
1068 | name = "smallvec"
1069 | version = "1.14.0"
1070 | source = "registry+https://github.com/rust-lang/crates.io-index"
1071 | checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd"
1072 |
1073 | [[package]]
1074 | name = "socket2"
1075 | version = "0.5.8"
1076 | source = "registry+https://github.com/rust-lang/crates.io-index"
1077 | checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8"
1078 | dependencies = [
1079 | "libc",
1080 | "windows-sys 0.52.0",
1081 | ]
1082 |
1083 | [[package]]
1084 | name = "strsim"
1085 | version = "0.11.1"
1086 | source = "registry+https://github.com/rust-lang/crates.io-index"
1087 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1088 |
1089 | [[package]]
1090 | name = "syn"
1091 | version = "2.0.100"
1092 | source = "registry+https://github.com/rust-lang/crates.io-index"
1093 | checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
1094 | dependencies = [
1095 | "proc-macro2",
1096 | "quote",
1097 | "unicode-ident",
1098 | ]
1099 |
1100 | [[package]]
1101 | name = "sync_wrapper"
1102 | version = "1.0.2"
1103 | source = "registry+https://github.com/rust-lang/crates.io-index"
1104 | checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
1105 |
1106 | [[package]]
1107 | name = "system-configuration"
1108 | version = "0.6.1"
1109 | source = "registry+https://github.com/rust-lang/crates.io-index"
1110 | checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
1111 | dependencies = [
1112 | "bitflags 2.9.0",
1113 | "core-foundation",
1114 | "system-configuration-sys",
1115 | ]
1116 |
1117 | [[package]]
1118 | name = "system-configuration-sys"
1119 | version = "0.6.0"
1120 | source = "registry+https://github.com/rust-lang/crates.io-index"
1121 | checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1122 | dependencies = [
1123 | "core-foundation-sys",
1124 | "libc",
1125 | ]
1126 |
1127 | [[package]]
1128 | name = "tempfile"
1129 | version = "3.19.0"
1130 | source = "registry+https://github.com/rust-lang/crates.io-index"
1131 | checksum = "488960f40a3fd53d72c2a29a58722561dee8afdd175bd88e3db4677d7b2ba600"
1132 | dependencies = [
1133 | "fastrand",
1134 | "getrandom 0.3.1",
1135 | "once_cell",
1136 | "rustix",
1137 | "windows-sys 0.59.0",
1138 | ]
1139 |
1140 | [[package]]
1141 | name = "thiserror"
1142 | version = "1.0.69"
1143 | source = "registry+https://github.com/rust-lang/crates.io-index"
1144 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
1145 | dependencies = [
1146 | "thiserror-impl",
1147 | ]
1148 |
1149 | [[package]]
1150 | name = "thiserror-impl"
1151 | version = "1.0.69"
1152 | source = "registry+https://github.com/rust-lang/crates.io-index"
1153 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
1154 | dependencies = [
1155 | "proc-macro2",
1156 | "quote",
1157 | "syn",
1158 | ]
1159 |
1160 | [[package]]
1161 | name = "tokio"
1162 | version = "1.44.1"
1163 | source = "registry+https://github.com/rust-lang/crates.io-index"
1164 | checksum = "f382da615b842244d4b8738c82ed1275e6c5dd90c459a30941cd07080b06c91a"
1165 | dependencies = [
1166 | "backtrace",
1167 | "bytes",
1168 | "libc",
1169 | "mio",
1170 | "pin-project-lite",
1171 | "socket2",
1172 | "tokio-macros",
1173 | "windows-sys 0.52.0",
1174 | ]
1175 |
1176 | [[package]]
1177 | name = "tokio-macros"
1178 | version = "2.5.0"
1179 | source = "registry+https://github.com/rust-lang/crates.io-index"
1180 | checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
1181 | dependencies = [
1182 | "proc-macro2",
1183 | "quote",
1184 | "syn",
1185 | ]
1186 |
1187 | [[package]]
1188 | name = "tokio-stream"
1189 | version = "0.1.17"
1190 | source = "registry+https://github.com/rust-lang/crates.io-index"
1191 | checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047"
1192 | dependencies = [
1193 | "futures-core",
1194 | "pin-project-lite",
1195 | "tokio",
1196 | ]
1197 |
1198 | [[package]]
1199 | name = "tokio-util"
1200 | version = "0.7.14"
1201 | source = "registry+https://github.com/rust-lang/crates.io-index"
1202 | checksum = "6b9590b93e6fcc1739458317cccd391ad3955e2bde8913edf6f95f9e65a8f034"
1203 | dependencies = [
1204 | "bytes",
1205 | "futures-core",
1206 | "futures-sink",
1207 | "pin-project-lite",
1208 | "tokio",
1209 | ]
1210 |
1211 | [[package]]
1212 | name = "tonic"
1213 | version = "0.12.3"
1214 | source = "registry+https://github.com/rust-lang/crates.io-index"
1215 | checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52"
1216 | dependencies = [
1217 | "async-stream",
1218 | "async-trait",
1219 | "axum",
1220 | "base64",
1221 | "bytes",
1222 | "h2",
1223 | "http",
1224 | "http-body",
1225 | "http-body-util",
1226 | "hyper",
1227 | "hyper-timeout",
1228 | "hyper-util",
1229 | "percent-encoding",
1230 | "pin-project",
1231 | "prost",
1232 | "socket2",
1233 | "tokio",
1234 | "tokio-stream",
1235 | "tower 0.4.13",
1236 | "tower-layer",
1237 | "tower-service",
1238 | "tracing",
1239 | ]
1240 |
1241 | [[package]]
1242 | name = "tonic-build"
1243 | version = "0.12.3"
1244 | source = "registry+https://github.com/rust-lang/crates.io-index"
1245 | checksum = "9557ce109ea773b399c9b9e5dca39294110b74f1f342cb347a80d1fce8c26a11"
1246 | dependencies = [
1247 | "prettyplease",
1248 | "proc-macro2",
1249 | "prost-build",
1250 | "prost-types",
1251 | "quote",
1252 | "syn",
1253 | ]
1254 |
1255 | [[package]]
1256 | name = "tower"
1257 | version = "0.4.13"
1258 | source = "registry+https://github.com/rust-lang/crates.io-index"
1259 | checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
1260 | dependencies = [
1261 | "futures-core",
1262 | "futures-util",
1263 | "indexmap 1.9.3",
1264 | "pin-project",
1265 | "pin-project-lite",
1266 | "rand",
1267 | "slab",
1268 | "tokio",
1269 | "tokio-util",
1270 | "tower-layer",
1271 | "tower-service",
1272 | "tracing",
1273 | ]
1274 |
1275 | [[package]]
1276 | name = "tower"
1277 | version = "0.5.2"
1278 | source = "registry+https://github.com/rust-lang/crates.io-index"
1279 | checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
1280 | dependencies = [
1281 | "futures-core",
1282 | "futures-util",
1283 | "pin-project-lite",
1284 | "sync_wrapper",
1285 | "tower-layer",
1286 | "tower-service",
1287 | ]
1288 |
1289 | [[package]]
1290 | name = "tower-layer"
1291 | version = "0.3.3"
1292 | source = "registry+https://github.com/rust-lang/crates.io-index"
1293 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
1294 |
1295 | [[package]]
1296 | name = "tower-service"
1297 | version = "0.3.3"
1298 | source = "registry+https://github.com/rust-lang/crates.io-index"
1299 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
1300 |
1301 | [[package]]
1302 | name = "tracing"
1303 | version = "0.1.41"
1304 | source = "registry+https://github.com/rust-lang/crates.io-index"
1305 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
1306 | dependencies = [
1307 | "pin-project-lite",
1308 | "tracing-attributes",
1309 | "tracing-core",
1310 | ]
1311 |
1312 | [[package]]
1313 | name = "tracing-attributes"
1314 | version = "0.1.28"
1315 | source = "registry+https://github.com/rust-lang/crates.io-index"
1316 | checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d"
1317 | dependencies = [
1318 | "proc-macro2",
1319 | "quote",
1320 | "syn",
1321 | ]
1322 |
1323 | [[package]]
1324 | name = "tracing-core"
1325 | version = "0.1.33"
1326 | source = "registry+https://github.com/rust-lang/crates.io-index"
1327 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c"
1328 | dependencies = [
1329 | "once_cell",
1330 | ]
1331 |
1332 | [[package]]
1333 | name = "try-lock"
1334 | version = "0.2.5"
1335 | source = "registry+https://github.com/rust-lang/crates.io-index"
1336 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
1337 |
1338 | [[package]]
1339 | name = "unicode-ident"
1340 | version = "1.0.18"
1341 | source = "registry+https://github.com/rust-lang/crates.io-index"
1342 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
1343 |
1344 | [[package]]
1345 | name = "utf8parse"
1346 | version = "0.2.2"
1347 | source = "registry+https://github.com/rust-lang/crates.io-index"
1348 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1349 |
1350 | [[package]]
1351 | name = "want"
1352 | version = "0.3.1"
1353 | source = "registry+https://github.com/rust-lang/crates.io-index"
1354 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
1355 | dependencies = [
1356 | "try-lock",
1357 | ]
1358 |
1359 | [[package]]
1360 | name = "wasi"
1361 | version = "0.11.0+wasi-snapshot-preview1"
1362 | source = "registry+https://github.com/rust-lang/crates.io-index"
1363 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1364 |
1365 | [[package]]
1366 | name = "wasi"
1367 | version = "0.13.3+wasi-0.2.2"
1368 | source = "registry+https://github.com/rust-lang/crates.io-index"
1369 | checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
1370 | dependencies = [
1371 | "wit-bindgen-rt",
1372 | ]
1373 |
1374 | [[package]]
1375 | name = "winapi"
1376 | version = "0.3.9"
1377 | source = "registry+https://github.com/rust-lang/crates.io-index"
1378 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1379 | dependencies = [
1380 | "winapi-i686-pc-windows-gnu",
1381 | "winapi-x86_64-pc-windows-gnu",
1382 | ]
1383 |
1384 | [[package]]
1385 | name = "winapi-i686-pc-windows-gnu"
1386 | version = "0.4.0"
1387 | source = "registry+https://github.com/rust-lang/crates.io-index"
1388 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1389 |
1390 | [[package]]
1391 | name = "winapi-x86_64-pc-windows-gnu"
1392 | version = "0.4.0"
1393 | source = "registry+https://github.com/rust-lang/crates.io-index"
1394 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1395 |
1396 | [[package]]
1397 | name = "windows-sys"
1398 | version = "0.52.0"
1399 | source = "registry+https://github.com/rust-lang/crates.io-index"
1400 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1401 | dependencies = [
1402 | "windows-targets",
1403 | ]
1404 |
1405 | [[package]]
1406 | name = "windows-sys"
1407 | version = "0.59.0"
1408 | source = "registry+https://github.com/rust-lang/crates.io-index"
1409 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1410 | dependencies = [
1411 | "windows-targets",
1412 | ]
1413 |
1414 | [[package]]
1415 | name = "windows-targets"
1416 | version = "0.52.6"
1417 | source = "registry+https://github.com/rust-lang/crates.io-index"
1418 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1419 | dependencies = [
1420 | "windows_aarch64_gnullvm",
1421 | "windows_aarch64_msvc",
1422 | "windows_i686_gnu",
1423 | "windows_i686_gnullvm",
1424 | "windows_i686_msvc",
1425 | "windows_x86_64_gnu",
1426 | "windows_x86_64_gnullvm",
1427 | "windows_x86_64_msvc",
1428 | ]
1429 |
1430 | [[package]]
1431 | name = "windows_aarch64_gnullvm"
1432 | version = "0.52.6"
1433 | source = "registry+https://github.com/rust-lang/crates.io-index"
1434 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1435 |
1436 | [[package]]
1437 | name = "windows_aarch64_msvc"
1438 | version = "0.52.6"
1439 | source = "registry+https://github.com/rust-lang/crates.io-index"
1440 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1441 |
1442 | [[package]]
1443 | name = "windows_i686_gnu"
1444 | version = "0.52.6"
1445 | source = "registry+https://github.com/rust-lang/crates.io-index"
1446 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1447 |
1448 | [[package]]
1449 | name = "windows_i686_gnullvm"
1450 | version = "0.52.6"
1451 | source = "registry+https://github.com/rust-lang/crates.io-index"
1452 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1453 |
1454 | [[package]]
1455 | name = "windows_i686_msvc"
1456 | version = "0.52.6"
1457 | source = "registry+https://github.com/rust-lang/crates.io-index"
1458 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1459 |
1460 | [[package]]
1461 | name = "windows_x86_64_gnu"
1462 | version = "0.52.6"
1463 | source = "registry+https://github.com/rust-lang/crates.io-index"
1464 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1465 |
1466 | [[package]]
1467 | name = "windows_x86_64_gnullvm"
1468 | version = "0.52.6"
1469 | source = "registry+https://github.com/rust-lang/crates.io-index"
1470 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1471 |
1472 | [[package]]
1473 | name = "windows_x86_64_msvc"
1474 | version = "0.52.6"
1475 | source = "registry+https://github.com/rust-lang/crates.io-index"
1476 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1477 |
1478 | [[package]]
1479 | name = "wit-bindgen-rt"
1480 | version = "0.33.0"
1481 | source = "registry+https://github.com/rust-lang/crates.io-index"
1482 | checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c"
1483 | dependencies = [
1484 | "bitflags 2.9.0",
1485 | ]
1486 |
1487 | [[package]]
1488 | name = "zerocopy"
1489 | version = "0.8.23"
1490 | source = "registry+https://github.com/rust-lang/crates.io-index"
1491 | checksum = "fd97444d05a4328b90e75e503a34bad781f14e28a823ad3557f0750df1ebcbc6"
1492 | dependencies = [
1493 | "zerocopy-derive",
1494 | ]
1495 |
1496 | [[package]]
1497 | name = "zerocopy-derive"
1498 | version = "0.8.23"
1499 | source = "registry+https://github.com/rust-lang/crates.io-index"
1500 | checksum = "6352c01d0edd5db859a63e2605f4ea3183ddbd15e2c4a9e7d32184df75e4f154"
1501 | dependencies = [
1502 | "proc-macro2",
1503 | "quote",
1504 | "syn",
1505 | ]
1506 |
--------------------------------------------------------------------------------
/avf/storage_balloon_agent_Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | version = 3
4 |
5 | [[package]]
6 | name = "addr2line"
7 | version = "0.24.2"
8 | source = "registry+https://github.com/rust-lang/crates.io-index"
9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
10 | dependencies = [
11 | "gimli",
12 | ]
13 |
14 | [[package]]
15 | name = "adler2"
16 | version = "2.0.0"
17 | source = "registry+https://github.com/rust-lang/crates.io-index"
18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
19 |
20 | [[package]]
21 | name = "aho-corasick"
22 | version = "1.1.3"
23 | source = "registry+https://github.com/rust-lang/crates.io-index"
24 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
25 | dependencies = [
26 | "memchr",
27 | ]
28 |
29 | [[package]]
30 | name = "anstream"
31 | version = "0.6.18"
32 | source = "registry+https://github.com/rust-lang/crates.io-index"
33 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
34 | dependencies = [
35 | "anstyle",
36 | "anstyle-parse",
37 | "anstyle-query",
38 | "anstyle-wincon",
39 | "colorchoice",
40 | "is_terminal_polyfill",
41 | "utf8parse",
42 | ]
43 |
44 | [[package]]
45 | name = "anstyle"
46 | version = "1.0.10"
47 | source = "registry+https://github.com/rust-lang/crates.io-index"
48 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
49 |
50 | [[package]]
51 | name = "anstyle-parse"
52 | version = "0.2.6"
53 | source = "registry+https://github.com/rust-lang/crates.io-index"
54 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
55 | dependencies = [
56 | "utf8parse",
57 | ]
58 |
59 | [[package]]
60 | name = "anstyle-query"
61 | version = "1.1.2"
62 | source = "registry+https://github.com/rust-lang/crates.io-index"
63 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
64 | dependencies = [
65 | "windows-sys 0.59.0",
66 | ]
67 |
68 | [[package]]
69 | name = "anstyle-wincon"
70 | version = "3.0.7"
71 | source = "registry+https://github.com/rust-lang/crates.io-index"
72 | checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
73 | dependencies = [
74 | "anstyle",
75 | "once_cell",
76 | "windows-sys 0.59.0",
77 | ]
78 |
79 | [[package]]
80 | name = "anyhow"
81 | version = "1.0.97"
82 | source = "registry+https://github.com/rust-lang/crates.io-index"
83 | checksum = "dcfed56ad506cb2c684a14971b8861fdc3baaaae314b9e5f9bb532cbe3ba7a4f"
84 |
85 | [[package]]
86 | name = "async-stream"
87 | version = "0.3.6"
88 | source = "registry+https://github.com/rust-lang/crates.io-index"
89 | checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476"
90 | dependencies = [
91 | "async-stream-impl",
92 | "futures-core",
93 | "pin-project-lite",
94 | ]
95 |
96 | [[package]]
97 | name = "async-stream-impl"
98 | version = "0.3.6"
99 | source = "registry+https://github.com/rust-lang/crates.io-index"
100 | checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
101 | dependencies = [
102 | "proc-macro2",
103 | "quote",
104 | "syn",
105 | ]
106 |
107 | [[package]]
108 | name = "async-trait"
109 | version = "0.1.88"
110 | source = "registry+https://github.com/rust-lang/crates.io-index"
111 | checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"
112 | dependencies = [
113 | "proc-macro2",
114 | "quote",
115 | "syn",
116 | ]
117 |
118 | [[package]]
119 | name = "atomic-waker"
120 | version = "1.1.2"
121 | source = "registry+https://github.com/rust-lang/crates.io-index"
122 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
123 |
124 | [[package]]
125 | name = "autocfg"
126 | version = "1.4.0"
127 | source = "registry+https://github.com/rust-lang/crates.io-index"
128 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
129 |
130 | [[package]]
131 | name = "axum"
132 | version = "0.7.9"
133 | source = "registry+https://github.com/rust-lang/crates.io-index"
134 | checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
135 | dependencies = [
136 | "async-trait",
137 | "axum-core",
138 | "bytes",
139 | "futures-util",
140 | "http",
141 | "http-body",
142 | "http-body-util",
143 | "itoa",
144 | "matchit",
145 | "memchr",
146 | "mime",
147 | "percent-encoding",
148 | "pin-project-lite",
149 | "rustversion",
150 | "serde",
151 | "sync_wrapper",
152 | "tower 0.5.2",
153 | "tower-layer",
154 | "tower-service",
155 | ]
156 |
157 | [[package]]
158 | name = "axum-core"
159 | version = "0.4.5"
160 | source = "registry+https://github.com/rust-lang/crates.io-index"
161 | checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199"
162 | dependencies = [
163 | "async-trait",
164 | "bytes",
165 | "futures-util",
166 | "http",
167 | "http-body",
168 | "http-body-util",
169 | "mime",
170 | "pin-project-lite",
171 | "rustversion",
172 | "sync_wrapper",
173 | "tower-layer",
174 | "tower-service",
175 | ]
176 |
177 | [[package]]
178 | name = "backtrace"
179 | version = "0.3.74"
180 | source = "registry+https://github.com/rust-lang/crates.io-index"
181 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
182 | dependencies = [
183 | "addr2line",
184 | "cfg-if",
185 | "libc",
186 | "miniz_oxide",
187 | "object",
188 | "rustc-demangle",
189 | "windows-targets",
190 | ]
191 |
192 | [[package]]
193 | name = "base64"
194 | version = "0.22.1"
195 | source = "registry+https://github.com/rust-lang/crates.io-index"
196 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
197 |
198 | [[package]]
199 | name = "bitflags"
200 | version = "1.3.2"
201 | source = "registry+https://github.com/rust-lang/crates.io-index"
202 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
203 |
204 | [[package]]
205 | name = "bitflags"
206 | version = "2.9.0"
207 | source = "registry+https://github.com/rust-lang/crates.io-index"
208 | checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
209 |
210 | [[package]]
211 | name = "byteorder"
212 | version = "1.5.0"
213 | source = "registry+https://github.com/rust-lang/crates.io-index"
214 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
215 |
216 | [[package]]
217 | name = "bytes"
218 | version = "1.10.1"
219 | source = "registry+https://github.com/rust-lang/crates.io-index"
220 | checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
221 |
222 | [[package]]
223 | name = "cfg-if"
224 | version = "1.0.0"
225 | source = "registry+https://github.com/rust-lang/crates.io-index"
226 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
227 |
228 | [[package]]
229 | name = "cfg_aliases"
230 | version = "0.1.1"
231 | source = "registry+https://github.com/rust-lang/crates.io-index"
232 | checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
233 |
234 | [[package]]
235 | name = "clap"
236 | version = "4.5.32"
237 | source = "registry+https://github.com/rust-lang/crates.io-index"
238 | checksum = "6088f3ae8c3608d19260cd7445411865a485688711b78b5be70d78cd96136f83"
239 | dependencies = [
240 | "clap_builder",
241 | "clap_derive",
242 | ]
243 |
244 | [[package]]
245 | name = "clap_builder"
246 | version = "4.5.32"
247 | source = "registry+https://github.com/rust-lang/crates.io-index"
248 | checksum = "22a7ef7f676155edfb82daa97f99441f3ebf4a58d5e32f295a56259f1b6facc8"
249 | dependencies = [
250 | "anstream",
251 | "anstyle",
252 | "clap_lex",
253 | "strsim",
254 | ]
255 |
256 | [[package]]
257 | name = "clap_derive"
258 | version = "4.5.32"
259 | source = "registry+https://github.com/rust-lang/crates.io-index"
260 | checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7"
261 | dependencies = [
262 | "heck",
263 | "proc-macro2",
264 | "quote",
265 | "syn",
266 | ]
267 |
268 | [[package]]
269 | name = "clap_lex"
270 | version = "0.7.4"
271 | source = "registry+https://github.com/rust-lang/crates.io-index"
272 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
273 |
274 | [[package]]
275 | name = "colorchoice"
276 | version = "1.0.3"
277 | source = "registry+https://github.com/rust-lang/crates.io-index"
278 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
279 |
280 | [[package]]
281 | name = "core-foundation"
282 | version = "0.9.4"
283 | source = "registry+https://github.com/rust-lang/crates.io-index"
284 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
285 | dependencies = [
286 | "core-foundation-sys",
287 | "libc",
288 | ]
289 |
290 | [[package]]
291 | name = "core-foundation-sys"
292 | version = "0.8.7"
293 | source = "registry+https://github.com/rust-lang/crates.io-index"
294 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
295 |
296 | [[package]]
297 | name = "dlopen2"
298 | version = "0.5.0"
299 | source = "registry+https://github.com/rust-lang/crates.io-index"
300 | checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa"
301 | dependencies = [
302 | "libc",
303 | "once_cell",
304 | "winapi",
305 | ]
306 |
307 | [[package]]
308 | name = "either"
309 | version = "1.15.0"
310 | source = "registry+https://github.com/rust-lang/crates.io-index"
311 | checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
312 |
313 | [[package]]
314 | name = "env_logger"
315 | version = "0.10.2"
316 | source = "registry+https://github.com/rust-lang/crates.io-index"
317 | checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
318 | dependencies = [
319 | "humantime",
320 | "is-terminal",
321 | "log",
322 | "regex",
323 | "termcolor",
324 | ]
325 |
326 | [[package]]
327 | name = "equivalent"
328 | version = "1.0.2"
329 | source = "registry+https://github.com/rust-lang/crates.io-index"
330 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
331 |
332 | [[package]]
333 | name = "errno"
334 | version = "0.3.10"
335 | source = "registry+https://github.com/rust-lang/crates.io-index"
336 | checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
337 | dependencies = [
338 | "libc",
339 | "windows-sys 0.59.0",
340 | ]
341 |
342 | [[package]]
343 | name = "fastrand"
344 | version = "2.3.0"
345 | source = "registry+https://github.com/rust-lang/crates.io-index"
346 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
347 |
348 | [[package]]
349 | name = "fixedbitset"
350 | version = "0.5.7"
351 | source = "registry+https://github.com/rust-lang/crates.io-index"
352 | checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99"
353 |
354 | [[package]]
355 | name = "fnv"
356 | version = "1.0.7"
357 | source = "registry+https://github.com/rust-lang/crates.io-index"
358 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
359 |
360 | [[package]]
361 | name = "futures-channel"
362 | version = "0.3.31"
363 | source = "registry+https://github.com/rust-lang/crates.io-index"
364 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
365 | dependencies = [
366 | "futures-core",
367 | ]
368 |
369 | [[package]]
370 | name = "futures-core"
371 | version = "0.3.31"
372 | source = "registry+https://github.com/rust-lang/crates.io-index"
373 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
374 |
375 | [[package]]
376 | name = "futures-sink"
377 | version = "0.3.31"
378 | source = "registry+https://github.com/rust-lang/crates.io-index"
379 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
380 |
381 | [[package]]
382 | name = "futures-task"
383 | version = "0.3.31"
384 | source = "registry+https://github.com/rust-lang/crates.io-index"
385 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
386 |
387 | [[package]]
388 | name = "futures-util"
389 | version = "0.3.31"
390 | source = "registry+https://github.com/rust-lang/crates.io-index"
391 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
392 | dependencies = [
393 | "futures-core",
394 | "futures-task",
395 | "pin-project-lite",
396 | "pin-utils",
397 | ]
398 |
399 | [[package]]
400 | name = "getrandom"
401 | version = "0.2.15"
402 | source = "registry+https://github.com/rust-lang/crates.io-index"
403 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
404 | dependencies = [
405 | "cfg-if",
406 | "libc",
407 | "wasi 0.11.0+wasi-snapshot-preview1",
408 | ]
409 |
410 | [[package]]
411 | name = "getrandom"
412 | version = "0.3.1"
413 | source = "registry+https://github.com/rust-lang/crates.io-index"
414 | checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
415 | dependencies = [
416 | "cfg-if",
417 | "libc",
418 | "wasi 0.13.3+wasi-0.2.2",
419 | "windows-targets",
420 | ]
421 |
422 | [[package]]
423 | name = "gimli"
424 | version = "0.31.1"
425 | source = "registry+https://github.com/rust-lang/crates.io-index"
426 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
427 |
428 | [[package]]
429 | name = "h2"
430 | version = "0.4.8"
431 | source = "registry+https://github.com/rust-lang/crates.io-index"
432 | checksum = "5017294ff4bb30944501348f6f8e42e6ad28f42c8bbef7a74029aff064a4e3c2"
433 | dependencies = [
434 | "atomic-waker",
435 | "bytes",
436 | "fnv",
437 | "futures-core",
438 | "futures-sink",
439 | "http",
440 | "indexmap 2.8.0",
441 | "slab",
442 | "tokio",
443 | "tokio-util",
444 | "tracing",
445 | ]
446 |
447 | [[package]]
448 | name = "hashbrown"
449 | version = "0.12.3"
450 | source = "registry+https://github.com/rust-lang/crates.io-index"
451 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
452 |
453 | [[package]]
454 | name = "hashbrown"
455 | version = "0.15.2"
456 | source = "registry+https://github.com/rust-lang/crates.io-index"
457 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
458 |
459 | [[package]]
460 | name = "heck"
461 | version = "0.5.0"
462 | source = "registry+https://github.com/rust-lang/crates.io-index"
463 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
464 |
465 | [[package]]
466 | name = "hermit-abi"
467 | version = "0.5.0"
468 | source = "registry+https://github.com/rust-lang/crates.io-index"
469 | checksum = "fbd780fe5cc30f81464441920d82ac8740e2e46b29a6fad543ddd075229ce37e"
470 |
471 | [[package]]
472 | name = "http"
473 | version = "1.3.1"
474 | source = "registry+https://github.com/rust-lang/crates.io-index"
475 | checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
476 | dependencies = [
477 | "bytes",
478 | "fnv",
479 | "itoa",
480 | ]
481 |
482 | [[package]]
483 | name = "http-body"
484 | version = "1.0.1"
485 | source = "registry+https://github.com/rust-lang/crates.io-index"
486 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
487 | dependencies = [
488 | "bytes",
489 | "http",
490 | ]
491 |
492 | [[package]]
493 | name = "http-body-util"
494 | version = "0.1.3"
495 | source = "registry+https://github.com/rust-lang/crates.io-index"
496 | checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
497 | dependencies = [
498 | "bytes",
499 | "futures-core",
500 | "http",
501 | "http-body",
502 | "pin-project-lite",
503 | ]
504 |
505 | [[package]]
506 | name = "httparse"
507 | version = "1.10.1"
508 | source = "registry+https://github.com/rust-lang/crates.io-index"
509 | checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
510 |
511 | [[package]]
512 | name = "httpdate"
513 | version = "1.0.3"
514 | source = "registry+https://github.com/rust-lang/crates.io-index"
515 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
516 |
517 | [[package]]
518 | name = "humantime"
519 | version = "2.2.0"
520 | source = "registry+https://github.com/rust-lang/crates.io-index"
521 | checksum = "9b112acc8b3adf4b107a8ec20977da0273a8c386765a3ec0229bd500a1443f9f"
522 |
523 | [[package]]
524 | name = "hyper"
525 | version = "1.6.0"
526 | source = "registry+https://github.com/rust-lang/crates.io-index"
527 | checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
528 | dependencies = [
529 | "bytes",
530 | "futures-channel",
531 | "futures-util",
532 | "h2",
533 | "http",
534 | "http-body",
535 | "httparse",
536 | "httpdate",
537 | "itoa",
538 | "pin-project-lite",
539 | "smallvec",
540 | "tokio",
541 | "want",
542 | ]
543 |
544 | [[package]]
545 | name = "hyper-timeout"
546 | version = "0.5.2"
547 | source = "registry+https://github.com/rust-lang/crates.io-index"
548 | checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0"
549 | dependencies = [
550 | "hyper",
551 | "hyper-util",
552 | "pin-project-lite",
553 | "tokio",
554 | "tower-service",
555 | ]
556 |
557 | [[package]]
558 | name = "hyper-util"
559 | version = "0.1.10"
560 | source = "registry+https://github.com/rust-lang/crates.io-index"
561 | checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4"
562 | dependencies = [
563 | "bytes",
564 | "futures-channel",
565 | "futures-util",
566 | "http",
567 | "http-body",
568 | "hyper",
569 | "pin-project-lite",
570 | "socket2",
571 | "tokio",
572 | "tower-service",
573 | "tracing",
574 | ]
575 |
576 | [[package]]
577 | name = "indexmap"
578 | version = "1.9.3"
579 | source = "registry+https://github.com/rust-lang/crates.io-index"
580 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
581 | dependencies = [
582 | "autocfg",
583 | "hashbrown 0.12.3",
584 | ]
585 |
586 | [[package]]
587 | name = "indexmap"
588 | version = "2.8.0"
589 | source = "registry+https://github.com/rust-lang/crates.io-index"
590 | checksum = "3954d50fe15b02142bf25d3b8bdadb634ec3948f103d04ffe3031bc8fe9d7058"
591 | dependencies = [
592 | "equivalent",
593 | "hashbrown 0.15.2",
594 | ]
595 |
596 | [[package]]
597 | name = "ipnet"
598 | version = "2.11.0"
599 | source = "registry+https://github.com/rust-lang/crates.io-index"
600 | checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
601 |
602 | [[package]]
603 | name = "is-terminal"
604 | version = "0.4.16"
605 | source = "registry+https://github.com/rust-lang/crates.io-index"
606 | checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9"
607 | dependencies = [
608 | "hermit-abi",
609 | "libc",
610 | "windows-sys 0.59.0",
611 | ]
612 |
613 | [[package]]
614 | name = "is_terminal_polyfill"
615 | version = "1.70.1"
616 | source = "registry+https://github.com/rust-lang/crates.io-index"
617 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
618 |
619 | [[package]]
620 | name = "itertools"
621 | version = "0.14.0"
622 | source = "registry+https://github.com/rust-lang/crates.io-index"
623 | checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
624 | dependencies = [
625 | "either",
626 | ]
627 |
628 | [[package]]
629 | name = "itoa"
630 | version = "1.0.15"
631 | source = "registry+https://github.com/rust-lang/crates.io-index"
632 | checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
633 |
634 | [[package]]
635 | name = "libc"
636 | version = "0.2.171"
637 | source = "registry+https://github.com/rust-lang/crates.io-index"
638 | checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
639 |
640 | [[package]]
641 | name = "linux-raw-sys"
642 | version = "0.9.3"
643 | source = "registry+https://github.com/rust-lang/crates.io-index"
644 | checksum = "fe7db12097d22ec582439daf8618b8fdd1a7bef6270e9af3b1ebcd30893cf413"
645 |
646 | [[package]]
647 | name = "log"
648 | version = "0.4.26"
649 | source = "registry+https://github.com/rust-lang/crates.io-index"
650 | checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e"
651 |
652 | [[package]]
653 | name = "matchit"
654 | version = "0.7.3"
655 | source = "registry+https://github.com/rust-lang/crates.io-index"
656 | checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
657 |
658 | [[package]]
659 | name = "memchr"
660 | version = "2.7.4"
661 | source = "registry+https://github.com/rust-lang/crates.io-index"
662 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
663 |
664 | [[package]]
665 | name = "mime"
666 | version = "0.3.17"
667 | source = "registry+https://github.com/rust-lang/crates.io-index"
668 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
669 |
670 | [[package]]
671 | name = "miniz_oxide"
672 | version = "0.8.5"
673 | source = "registry+https://github.com/rust-lang/crates.io-index"
674 | checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5"
675 | dependencies = [
676 | "adler2",
677 | ]
678 |
679 | [[package]]
680 | name = "mio"
681 | version = "1.0.3"
682 | source = "registry+https://github.com/rust-lang/crates.io-index"
683 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd"
684 | dependencies = [
685 | "libc",
686 | "wasi 0.11.0+wasi-snapshot-preview1",
687 | "windows-sys 0.52.0",
688 | ]
689 |
690 | [[package]]
691 | name = "multimap"
692 | version = "0.10.0"
693 | source = "registry+https://github.com/rust-lang/crates.io-index"
694 | checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03"
695 |
696 | [[package]]
697 | name = "netdev"
698 | version = "0.31.0"
699 | source = "registry+https://github.com/rust-lang/crates.io-index"
700 | checksum = "f901362e84cd407be6f8cd9d3a46bccf09136b095792785401ea7d283c79b91d"
701 | dependencies = [
702 | "dlopen2",
703 | "ipnet",
704 | "libc",
705 | "netlink-packet-core",
706 | "netlink-packet-route",
707 | "netlink-sys",
708 | "once_cell",
709 | "system-configuration",
710 | "windows-sys 0.52.0",
711 | ]
712 |
713 | [[package]]
714 | name = "netlink-packet-core"
715 | version = "0.7.0"
716 | source = "registry+https://github.com/rust-lang/crates.io-index"
717 | checksum = "72724faf704479d67b388da142b186f916188505e7e0b26719019c525882eda4"
718 | dependencies = [
719 | "anyhow",
720 | "byteorder",
721 | "netlink-packet-utils",
722 | ]
723 |
724 | [[package]]
725 | name = "netlink-packet-route"
726 | version = "0.17.1"
727 | source = "registry+https://github.com/rust-lang/crates.io-index"
728 | checksum = "053998cea5a306971f88580d0829e90f270f940befd7cf928da179d4187a5a66"
729 | dependencies = [
730 | "anyhow",
731 | "bitflags 1.3.2",
732 | "byteorder",
733 | "libc",
734 | "netlink-packet-core",
735 | "netlink-packet-utils",
736 | ]
737 |
738 | [[package]]
739 | name = "netlink-packet-utils"
740 | version = "0.5.2"
741 | source = "registry+https://github.com/rust-lang/crates.io-index"
742 | checksum = "0ede8a08c71ad5a95cdd0e4e52facd37190977039a4704eb82a283f713747d34"
743 | dependencies = [
744 | "anyhow",
745 | "byteorder",
746 | "paste",
747 | "thiserror",
748 | ]
749 |
750 | [[package]]
751 | name = "netlink-sys"
752 | version = "0.8.7"
753 | source = "registry+https://github.com/rust-lang/crates.io-index"
754 | checksum = "16c903aa70590cb93691bf97a767c8d1d6122d2cc9070433deb3bbf36ce8bd23"
755 | dependencies = [
756 | "bytes",
757 | "libc",
758 | "log",
759 | ]
760 |
761 | [[package]]
762 | name = "nix"
763 | version = "0.28.0"
764 | source = "registry+https://github.com/rust-lang/crates.io-index"
765 | checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
766 | dependencies = [
767 | "bitflags 2.9.0",
768 | "cfg-if",
769 | "cfg_aliases",
770 | "libc",
771 | ]
772 |
773 | [[package]]
774 | name = "object"
775 | version = "0.36.7"
776 | source = "registry+https://github.com/rust-lang/crates.io-index"
777 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
778 | dependencies = [
779 | "memchr",
780 | ]
781 |
782 | [[package]]
783 | name = "once_cell"
784 | version = "1.21.1"
785 | source = "registry+https://github.com/rust-lang/crates.io-index"
786 | checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc"
787 |
788 | [[package]]
789 | name = "paste"
790 | version = "1.0.15"
791 | source = "registry+https://github.com/rust-lang/crates.io-index"
792 | checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
793 |
794 | [[package]]
795 | name = "percent-encoding"
796 | version = "2.3.1"
797 | source = "registry+https://github.com/rust-lang/crates.io-index"
798 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
799 |
800 | [[package]]
801 | name = "petgraph"
802 | version = "0.7.1"
803 | source = "registry+https://github.com/rust-lang/crates.io-index"
804 | checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772"
805 | dependencies = [
806 | "fixedbitset",
807 | "indexmap 2.8.0",
808 | ]
809 |
810 | [[package]]
811 | name = "pin-project"
812 | version = "1.1.10"
813 | source = "registry+https://github.com/rust-lang/crates.io-index"
814 | checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a"
815 | dependencies = [
816 | "pin-project-internal",
817 | ]
818 |
819 | [[package]]
820 | name = "pin-project-internal"
821 | version = "1.1.10"
822 | source = "registry+https://github.com/rust-lang/crates.io-index"
823 | checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861"
824 | dependencies = [
825 | "proc-macro2",
826 | "quote",
827 | "syn",
828 | ]
829 |
830 | [[package]]
831 | name = "pin-project-lite"
832 | version = "0.2.16"
833 | source = "registry+https://github.com/rust-lang/crates.io-index"
834 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
835 |
836 | [[package]]
837 | name = "pin-utils"
838 | version = "0.1.0"
839 | source = "registry+https://github.com/rust-lang/crates.io-index"
840 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
841 |
842 | [[package]]
843 | name = "ppv-lite86"
844 | version = "0.2.21"
845 | source = "registry+https://github.com/rust-lang/crates.io-index"
846 | checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
847 | dependencies = [
848 | "zerocopy",
849 | ]
850 |
851 | [[package]]
852 | name = "prettyplease"
853 | version = "0.2.31"
854 | source = "registry+https://github.com/rust-lang/crates.io-index"
855 | checksum = "5316f57387668042f561aae71480de936257848f9c43ce528e311d89a07cadeb"
856 | dependencies = [
857 | "proc-macro2",
858 | "syn",
859 | ]
860 |
861 | [[package]]
862 | name = "proc-macro2"
863 | version = "1.0.94"
864 | source = "registry+https://github.com/rust-lang/crates.io-index"
865 | checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
866 | dependencies = [
867 | "unicode-ident",
868 | ]
869 |
870 | [[package]]
871 | name = "prost"
872 | version = "0.13.5"
873 | source = "registry+https://github.com/rust-lang/crates.io-index"
874 | checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5"
875 | dependencies = [
876 | "bytes",
877 | "prost-derive",
878 | ]
879 |
880 | [[package]]
881 | name = "prost-build"
882 | version = "0.13.5"
883 | source = "registry+https://github.com/rust-lang/crates.io-index"
884 | checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf"
885 | dependencies = [
886 | "heck",
887 | "itertools",
888 | "log",
889 | "multimap",
890 | "once_cell",
891 | "petgraph",
892 | "prettyplease",
893 | "prost",
894 | "prost-types",
895 | "regex",
896 | "syn",
897 | "tempfile",
898 | ]
899 |
900 | [[package]]
901 | name = "prost-derive"
902 | version = "0.13.5"
903 | source = "registry+https://github.com/rust-lang/crates.io-index"
904 | checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d"
905 | dependencies = [
906 | "anyhow",
907 | "itertools",
908 | "proc-macro2",
909 | "quote",
910 | "syn",
911 | ]
912 |
913 | [[package]]
914 | name = "prost-types"
915 | version = "0.13.5"
916 | source = "registry+https://github.com/rust-lang/crates.io-index"
917 | checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16"
918 | dependencies = [
919 | "prost",
920 | ]
921 |
922 | [[package]]
923 | name = "quote"
924 | version = "1.0.40"
925 | source = "registry+https://github.com/rust-lang/crates.io-index"
926 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
927 | dependencies = [
928 | "proc-macro2",
929 | ]
930 |
931 | [[package]]
932 | name = "rand"
933 | version = "0.8.5"
934 | source = "registry+https://github.com/rust-lang/crates.io-index"
935 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
936 | dependencies = [
937 | "libc",
938 | "rand_chacha",
939 | "rand_core",
940 | ]
941 |
942 | [[package]]
943 | name = "rand_chacha"
944 | version = "0.3.1"
945 | source = "registry+https://github.com/rust-lang/crates.io-index"
946 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
947 | dependencies = [
948 | "ppv-lite86",
949 | "rand_core",
950 | ]
951 |
952 | [[package]]
953 | name = "rand_core"
954 | version = "0.6.4"
955 | source = "registry+https://github.com/rust-lang/crates.io-index"
956 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
957 | dependencies = [
958 | "getrandom 0.2.15",
959 | ]
960 |
961 | [[package]]
962 | name = "regex"
963 | version = "1.11.1"
964 | source = "registry+https://github.com/rust-lang/crates.io-index"
965 | checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
966 | dependencies = [
967 | "aho-corasick",
968 | "memchr",
969 | "regex-automata",
970 | "regex-syntax",
971 | ]
972 |
973 | [[package]]
974 | name = "regex-automata"
975 | version = "0.4.9"
976 | source = "registry+https://github.com/rust-lang/crates.io-index"
977 | checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
978 | dependencies = [
979 | "aho-corasick",
980 | "memchr",
981 | "regex-syntax",
982 | ]
983 |
984 | [[package]]
985 | name = "regex-syntax"
986 | version = "0.8.5"
987 | source = "registry+https://github.com/rust-lang/crates.io-index"
988 | checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
989 |
990 | [[package]]
991 | name = "rustc-demangle"
992 | version = "0.1.24"
993 | source = "registry+https://github.com/rust-lang/crates.io-index"
994 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
995 |
996 | [[package]]
997 | name = "rustix"
998 | version = "1.0.2"
999 | source = "registry+https://github.com/rust-lang/crates.io-index"
1000 | checksum = "f7178faa4b75a30e269c71e61c353ce2748cf3d76f0c44c393f4e60abf49b825"
1001 | dependencies = [
1002 | "bitflags 2.9.0",
1003 | "errno",
1004 | "libc",
1005 | "linux-raw-sys",
1006 | "windows-sys 0.59.0",
1007 | ]
1008 |
1009 | [[package]]
1010 | name = "rustversion"
1011 | version = "1.0.20"
1012 | source = "registry+https://github.com/rust-lang/crates.io-index"
1013 | checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
1014 |
1015 | [[package]]
1016 | name = "serde"
1017 | version = "1.0.219"
1018 | source = "registry+https://github.com/rust-lang/crates.io-index"
1019 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
1020 | dependencies = [
1021 | "serde_derive",
1022 | ]
1023 |
1024 | [[package]]
1025 | name = "serde_derive"
1026 | version = "1.0.219"
1027 | source = "registry+https://github.com/rust-lang/crates.io-index"
1028 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
1029 | dependencies = [
1030 | "proc-macro2",
1031 | "quote",
1032 | "syn",
1033 | ]
1034 |
1035 | [[package]]
1036 | name = "slab"
1037 | version = "0.4.9"
1038 | source = "registry+https://github.com/rust-lang/crates.io-index"
1039 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
1040 | dependencies = [
1041 | "autocfg",
1042 | ]
1043 |
1044 | [[package]]
1045 | name = "smallvec"
1046 | version = "1.14.0"
1047 | source = "registry+https://github.com/rust-lang/crates.io-index"
1048 | checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd"
1049 |
1050 | [[package]]
1051 | name = "socket2"
1052 | version = "0.5.8"
1053 | source = "registry+https://github.com/rust-lang/crates.io-index"
1054 | checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8"
1055 | dependencies = [
1056 | "libc",
1057 | "windows-sys 0.52.0",
1058 | ]
1059 |
1060 | [[package]]
1061 | name = "storage_balloon_agent"
1062 | version = "0.1.0"
1063 | dependencies = [
1064 | "anyhow",
1065 | "clap",
1066 | "env_logger",
1067 | "log",
1068 | "netdev",
1069 | "nix",
1070 | "prost",
1071 | "tokio",
1072 | "tonic",
1073 | "tonic-build",
1074 | ]
1075 |
1076 | [[package]]
1077 | name = "strsim"
1078 | version = "0.11.1"
1079 | source = "registry+https://github.com/rust-lang/crates.io-index"
1080 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1081 |
1082 | [[package]]
1083 | name = "syn"
1084 | version = "2.0.100"
1085 | source = "registry+https://github.com/rust-lang/crates.io-index"
1086 | checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
1087 | dependencies = [
1088 | "proc-macro2",
1089 | "quote",
1090 | "unicode-ident",
1091 | ]
1092 |
1093 | [[package]]
1094 | name = "sync_wrapper"
1095 | version = "1.0.2"
1096 | source = "registry+https://github.com/rust-lang/crates.io-index"
1097 | checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
1098 |
1099 | [[package]]
1100 | name = "system-configuration"
1101 | version = "0.6.1"
1102 | source = "registry+https://github.com/rust-lang/crates.io-index"
1103 | checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
1104 | dependencies = [
1105 | "bitflags 2.9.0",
1106 | "core-foundation",
1107 | "system-configuration-sys",
1108 | ]
1109 |
1110 | [[package]]
1111 | name = "system-configuration-sys"
1112 | version = "0.6.0"
1113 | source = "registry+https://github.com/rust-lang/crates.io-index"
1114 | checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1115 | dependencies = [
1116 | "core-foundation-sys",
1117 | "libc",
1118 | ]
1119 |
1120 | [[package]]
1121 | name = "tempfile"
1122 | version = "3.19.0"
1123 | source = "registry+https://github.com/rust-lang/crates.io-index"
1124 | checksum = "488960f40a3fd53d72c2a29a58722561dee8afdd175bd88e3db4677d7b2ba600"
1125 | dependencies = [
1126 | "fastrand",
1127 | "getrandom 0.3.1",
1128 | "once_cell",
1129 | "rustix",
1130 | "windows-sys 0.59.0",
1131 | ]
1132 |
1133 | [[package]]
1134 | name = "termcolor"
1135 | version = "1.4.1"
1136 | source = "registry+https://github.com/rust-lang/crates.io-index"
1137 | checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
1138 | dependencies = [
1139 | "winapi-util",
1140 | ]
1141 |
1142 | [[package]]
1143 | name = "thiserror"
1144 | version = "1.0.69"
1145 | source = "registry+https://github.com/rust-lang/crates.io-index"
1146 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
1147 | dependencies = [
1148 | "thiserror-impl",
1149 | ]
1150 |
1151 | [[package]]
1152 | name = "thiserror-impl"
1153 | version = "1.0.69"
1154 | source = "registry+https://github.com/rust-lang/crates.io-index"
1155 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
1156 | dependencies = [
1157 | "proc-macro2",
1158 | "quote",
1159 | "syn",
1160 | ]
1161 |
1162 | [[package]]
1163 | name = "tokio"
1164 | version = "1.44.1"
1165 | source = "registry+https://github.com/rust-lang/crates.io-index"
1166 | checksum = "f382da615b842244d4b8738c82ed1275e6c5dd90c459a30941cd07080b06c91a"
1167 | dependencies = [
1168 | "backtrace",
1169 | "bytes",
1170 | "libc",
1171 | "mio",
1172 | "pin-project-lite",
1173 | "socket2",
1174 | "tokio-macros",
1175 | "windows-sys 0.52.0",
1176 | ]
1177 |
1178 | [[package]]
1179 | name = "tokio-macros"
1180 | version = "2.5.0"
1181 | source = "registry+https://github.com/rust-lang/crates.io-index"
1182 | checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
1183 | dependencies = [
1184 | "proc-macro2",
1185 | "quote",
1186 | "syn",
1187 | ]
1188 |
1189 | [[package]]
1190 | name = "tokio-stream"
1191 | version = "0.1.17"
1192 | source = "registry+https://github.com/rust-lang/crates.io-index"
1193 | checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047"
1194 | dependencies = [
1195 | "futures-core",
1196 | "pin-project-lite",
1197 | "tokio",
1198 | ]
1199 |
1200 | [[package]]
1201 | name = "tokio-util"
1202 | version = "0.7.14"
1203 | source = "registry+https://github.com/rust-lang/crates.io-index"
1204 | checksum = "6b9590b93e6fcc1739458317cccd391ad3955e2bde8913edf6f95f9e65a8f034"
1205 | dependencies = [
1206 | "bytes",
1207 | "futures-core",
1208 | "futures-sink",
1209 | "pin-project-lite",
1210 | "tokio",
1211 | ]
1212 |
1213 | [[package]]
1214 | name = "tonic"
1215 | version = "0.12.3"
1216 | source = "registry+https://github.com/rust-lang/crates.io-index"
1217 | checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52"
1218 | dependencies = [
1219 | "async-stream",
1220 | "async-trait",
1221 | "axum",
1222 | "base64",
1223 | "bytes",
1224 | "h2",
1225 | "http",
1226 | "http-body",
1227 | "http-body-util",
1228 | "hyper",
1229 | "hyper-timeout",
1230 | "hyper-util",
1231 | "percent-encoding",
1232 | "pin-project",
1233 | "prost",
1234 | "socket2",
1235 | "tokio",
1236 | "tokio-stream",
1237 | "tower 0.4.13",
1238 | "tower-layer",
1239 | "tower-service",
1240 | "tracing",
1241 | ]
1242 |
1243 | [[package]]
1244 | name = "tonic-build"
1245 | version = "0.12.3"
1246 | source = "registry+https://github.com/rust-lang/crates.io-index"
1247 | checksum = "9557ce109ea773b399c9b9e5dca39294110b74f1f342cb347a80d1fce8c26a11"
1248 | dependencies = [
1249 | "prettyplease",
1250 | "proc-macro2",
1251 | "prost-build",
1252 | "prost-types",
1253 | "quote",
1254 | "syn",
1255 | ]
1256 |
1257 | [[package]]
1258 | name = "tower"
1259 | version = "0.4.13"
1260 | source = "registry+https://github.com/rust-lang/crates.io-index"
1261 | checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
1262 | dependencies = [
1263 | "futures-core",
1264 | "futures-util",
1265 | "indexmap 1.9.3",
1266 | "pin-project",
1267 | "pin-project-lite",
1268 | "rand",
1269 | "slab",
1270 | "tokio",
1271 | "tokio-util",
1272 | "tower-layer",
1273 | "tower-service",
1274 | "tracing",
1275 | ]
1276 |
1277 | [[package]]
1278 | name = "tower"
1279 | version = "0.5.2"
1280 | source = "registry+https://github.com/rust-lang/crates.io-index"
1281 | checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
1282 | dependencies = [
1283 | "futures-core",
1284 | "futures-util",
1285 | "pin-project-lite",
1286 | "sync_wrapper",
1287 | "tower-layer",
1288 | "tower-service",
1289 | ]
1290 |
1291 | [[package]]
1292 | name = "tower-layer"
1293 | version = "0.3.3"
1294 | source = "registry+https://github.com/rust-lang/crates.io-index"
1295 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
1296 |
1297 | [[package]]
1298 | name = "tower-service"
1299 | version = "0.3.3"
1300 | source = "registry+https://github.com/rust-lang/crates.io-index"
1301 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
1302 |
1303 | [[package]]
1304 | name = "tracing"
1305 | version = "0.1.41"
1306 | source = "registry+https://github.com/rust-lang/crates.io-index"
1307 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
1308 | dependencies = [
1309 | "pin-project-lite",
1310 | "tracing-attributes",
1311 | "tracing-core",
1312 | ]
1313 |
1314 | [[package]]
1315 | name = "tracing-attributes"
1316 | version = "0.1.28"
1317 | source = "registry+https://github.com/rust-lang/crates.io-index"
1318 | checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d"
1319 | dependencies = [
1320 | "proc-macro2",
1321 | "quote",
1322 | "syn",
1323 | ]
1324 |
1325 | [[package]]
1326 | name = "tracing-core"
1327 | version = "0.1.33"
1328 | source = "registry+https://github.com/rust-lang/crates.io-index"
1329 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c"
1330 | dependencies = [
1331 | "once_cell",
1332 | ]
1333 |
1334 | [[package]]
1335 | name = "try-lock"
1336 | version = "0.2.5"
1337 | source = "registry+https://github.com/rust-lang/crates.io-index"
1338 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
1339 |
1340 | [[package]]
1341 | name = "unicode-ident"
1342 | version = "1.0.18"
1343 | source = "registry+https://github.com/rust-lang/crates.io-index"
1344 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
1345 |
1346 | [[package]]
1347 | name = "utf8parse"
1348 | version = "0.2.2"
1349 | source = "registry+https://github.com/rust-lang/crates.io-index"
1350 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1351 |
1352 | [[package]]
1353 | name = "want"
1354 | version = "0.3.1"
1355 | source = "registry+https://github.com/rust-lang/crates.io-index"
1356 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
1357 | dependencies = [
1358 | "try-lock",
1359 | ]
1360 |
1361 | [[package]]
1362 | name = "wasi"
1363 | version = "0.11.0+wasi-snapshot-preview1"
1364 | source = "registry+https://github.com/rust-lang/crates.io-index"
1365 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1366 |
1367 | [[package]]
1368 | name = "wasi"
1369 | version = "0.13.3+wasi-0.2.2"
1370 | source = "registry+https://github.com/rust-lang/crates.io-index"
1371 | checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
1372 | dependencies = [
1373 | "wit-bindgen-rt",
1374 | ]
1375 |
1376 | [[package]]
1377 | name = "winapi"
1378 | version = "0.3.9"
1379 | source = "registry+https://github.com/rust-lang/crates.io-index"
1380 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1381 | dependencies = [
1382 | "winapi-i686-pc-windows-gnu",
1383 | "winapi-x86_64-pc-windows-gnu",
1384 | ]
1385 |
1386 | [[package]]
1387 | name = "winapi-i686-pc-windows-gnu"
1388 | version = "0.4.0"
1389 | source = "registry+https://github.com/rust-lang/crates.io-index"
1390 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1391 |
1392 | [[package]]
1393 | name = "winapi-util"
1394 | version = "0.1.9"
1395 | source = "registry+https://github.com/rust-lang/crates.io-index"
1396 | checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
1397 | dependencies = [
1398 | "windows-sys 0.59.0",
1399 | ]
1400 |
1401 | [[package]]
1402 | name = "winapi-x86_64-pc-windows-gnu"
1403 | version = "0.4.0"
1404 | source = "registry+https://github.com/rust-lang/crates.io-index"
1405 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1406 |
1407 | [[package]]
1408 | name = "windows-sys"
1409 | version = "0.52.0"
1410 | source = "registry+https://github.com/rust-lang/crates.io-index"
1411 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1412 | dependencies = [
1413 | "windows-targets",
1414 | ]
1415 |
1416 | [[package]]
1417 | name = "windows-sys"
1418 | version = "0.59.0"
1419 | source = "registry+https://github.com/rust-lang/crates.io-index"
1420 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1421 | dependencies = [
1422 | "windows-targets",
1423 | ]
1424 |
1425 | [[package]]
1426 | name = "windows-targets"
1427 | version = "0.52.6"
1428 | source = "registry+https://github.com/rust-lang/crates.io-index"
1429 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1430 | dependencies = [
1431 | "windows_aarch64_gnullvm",
1432 | "windows_aarch64_msvc",
1433 | "windows_i686_gnu",
1434 | "windows_i686_gnullvm",
1435 | "windows_i686_msvc",
1436 | "windows_x86_64_gnu",
1437 | "windows_x86_64_gnullvm",
1438 | "windows_x86_64_msvc",
1439 | ]
1440 |
1441 | [[package]]
1442 | name = "windows_aarch64_gnullvm"
1443 | version = "0.52.6"
1444 | source = "registry+https://github.com/rust-lang/crates.io-index"
1445 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1446 |
1447 | [[package]]
1448 | name = "windows_aarch64_msvc"
1449 | version = "0.52.6"
1450 | source = "registry+https://github.com/rust-lang/crates.io-index"
1451 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1452 |
1453 | [[package]]
1454 | name = "windows_i686_gnu"
1455 | version = "0.52.6"
1456 | source = "registry+https://github.com/rust-lang/crates.io-index"
1457 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1458 |
1459 | [[package]]
1460 | name = "windows_i686_gnullvm"
1461 | version = "0.52.6"
1462 | source = "registry+https://github.com/rust-lang/crates.io-index"
1463 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1464 |
1465 | [[package]]
1466 | name = "windows_i686_msvc"
1467 | version = "0.52.6"
1468 | source = "registry+https://github.com/rust-lang/crates.io-index"
1469 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1470 |
1471 | [[package]]
1472 | name = "windows_x86_64_gnu"
1473 | version = "0.52.6"
1474 | source = "registry+https://github.com/rust-lang/crates.io-index"
1475 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1476 |
1477 | [[package]]
1478 | name = "windows_x86_64_gnullvm"
1479 | version = "0.52.6"
1480 | source = "registry+https://github.com/rust-lang/crates.io-index"
1481 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1482 |
1483 | [[package]]
1484 | name = "windows_x86_64_msvc"
1485 | version = "0.52.6"
1486 | source = "registry+https://github.com/rust-lang/crates.io-index"
1487 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1488 |
1489 | [[package]]
1490 | name = "wit-bindgen-rt"
1491 | version = "0.33.0"
1492 | source = "registry+https://github.com/rust-lang/crates.io-index"
1493 | checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c"
1494 | dependencies = [
1495 | "bitflags 2.9.0",
1496 | ]
1497 |
1498 | [[package]]
1499 | name = "zerocopy"
1500 | version = "0.8.23"
1501 | source = "registry+https://github.com/rust-lang/crates.io-index"
1502 | checksum = "fd97444d05a4328b90e75e503a34bad781f14e28a823ad3557f0750df1ebcbc6"
1503 | dependencies = [
1504 | "zerocopy-derive",
1505 | ]
1506 |
1507 | [[package]]
1508 | name = "zerocopy-derive"
1509 | version = "0.8.23"
1510 | source = "registry+https://github.com/rust-lang/crates.io-index"
1511 | checksum = "6352c01d0edd5db859a63e2605f4ea3183ddbd15e2c4a9e7d32184df75e4f154"
1512 | dependencies = [
1513 | "proc-macro2",
1514 | "quote",
1515 | "syn",
1516 | ]
1517 |
--------------------------------------------------------------------------------
/avf/systemd-esp-type-ignore.patch:
--------------------------------------------------------------------------------
1 | diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c
2 | index e0550a7a09..82e88384c8 100644
3 | --- a/src/shared/find-esp.c
4 | +++ b/src/shared/find-esp.c
5 | @@ -120,10 +120,10 @@ static int verify_esp_blkid(
6 | r = blkid_probe_lookup_value(b, "PART_ENTRY_TYPE", &v, NULL);
7 | if (r != 0)
8 | return log_error_errno(errno ?: EIO, "Failed to probe partition type UUID of \"%s\": %m", node);
9 | - if (sd_id128_string_equal(v, SD_GPT_ESP) <= 0)
10 | +/* if (sd_id128_string_equal(v, SD_GPT_ESP) <= 0)
11 | return log_full_errno(searching ? LOG_DEBUG : LOG_ERR,
12 | SYNTHETIC_ERRNO(searching ? EADDRNOTAVAIL : ENODEV),
13 | - "File system \"%s\" has wrong type for an EFI System Partition (ESP).", node);
14 | + "File system \"%s\" has wrong type for an EFI System Partition (ESP).", node);*/
15 |
16 | errno = 0;
17 | r = blkid_probe_lookup_value(b, "PART_ENTRY_UUID", &v, NULL);
18 | @@ -218,11 +218,11 @@ static int verify_esp_udev(
19 | r = sd_device_get_property_value(d, "ID_PART_ENTRY_TYPE", &v);
20 | if (r < 0)
21 | return log_device_error_errno(d, r, "Failed to get device property: %m");
22 | - if (sd_id128_string_equal(v, SD_GPT_ESP) <= 0)
23 | +/* if (sd_id128_string_equal(v, SD_GPT_ESP) <= 0)
24 | return log_device_full_errno(d,
25 | searching ? LOG_DEBUG : LOG_ERR,
26 | SYNTHETIC_ERRNO(searching ? EADDRNOTAVAIL : ENODEV),
27 | - "File system \"%s\" has wrong type for an EFI System Partition (ESP).", node);
28 | + "File system \"%s\" has wrong type for an EFI System Partition (ESP).", node);*/
29 |
30 | r = sd_device_get_property_value(d, "ID_PART_ENTRY_UUID", &v);
31 | if (r < 0)
32 |
--------------------------------------------------------------------------------
/channel/avf.nix:
--------------------------------------------------------------------------------
1 | with (import { });
2 | stdenv.mkDerivation {
3 | name = "avf-channel-avf.tar.xz";
4 |
5 | dontFixup = true;
6 | dontBuild = true;
7 | dontConfigure = true;
8 |
9 | src = ./../.;
10 |
11 | nativeBuildInputs = [
12 | git
13 | ];
14 |
15 | installPhase = ''
16 | git clean -dxf
17 | rm -rfv .git
18 | BASE=$(basename "$PWD")
19 | cd ..
20 | tar cvfJ $out "$BASE"
21 | '';
22 | }
23 |
--------------------------------------------------------------------------------
/channel/nixpkgs.nix:
--------------------------------------------------------------------------------
1 | with (import { });
2 | stdenv.mkDerivation {
3 | name = "avf-channel-nixpkgs.tar.xz";
4 |
5 | dontFixup = true;
6 | dontBuild = true;
7 | dontConfigure = true;
8 |
9 | src = pkgs.path;
10 |
11 | patches = [ ];
12 |
13 | installPhase = ''
14 | BASE=$(basename "$PWD")
15 | cd ..
16 | tar cfJ $out "$BASE"
17 | '';
18 | }
19 |
--------------------------------------------------------------------------------
/flake.nix:
--------------------------------------------------------------------------------
1 | {
2 | description = "NixOS for Android Terminal (Android Virtualization Framework) ";
3 |
4 | outputs =
5 | { self }:
6 | {
7 | nixosModules = {
8 | avf = import ./avf;
9 | avfDebug = import ./avf/debug.nix;
10 | avfInitial = import ./initial;
11 | };
12 | };
13 | }
14 |
--------------------------------------------------------------------------------
/initial.nix:
--------------------------------------------------------------------------------
1 | (import {
2 | system = builtins.currentSystem;
3 | modules = [
4 | (
5 | { modulesPath, ... }:
6 | {
7 | imports = [
8 | ./avf
9 | ./initial
10 | ];
11 | }
12 | )
13 | ];
14 | })
15 |
--------------------------------------------------------------------------------
/initial/README-image.md:
--------------------------------------------------------------------------------
1 | # Installing
2 |
3 | To install this image on a debug build of Android, place the image into `/storage/emulated/0/linux/image.tar.gz`
4 |
5 | To install this image on a production build of Android, please use the installation app: https://github.com/nix-community/nixos-avf-image-app/releases
6 |
--------------------------------------------------------------------------------
/initial/default.nix:
--------------------------------------------------------------------------------
1 | {
2 | config,
3 | pkgs,
4 | lib,
5 | ...
6 | }:
7 |
8 | with lib;
9 |
10 | let
11 | envWithDefault =
12 | var: def:
13 | let
14 | varName = "INITIAL_${var}";
15 | in
16 | if builtins.getEnv varName == "" then def else builtins.getEnv varName;
17 |
18 | defaultConfig = pkgs.writeText "default-configuration.nix" ''
19 | # Edit this configuration file to define what should be installed on
20 | # your system. Help is available in the configuration.nix(5) man page, on
21 | # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
22 |
23 | # NixOS-WSL specific options are documented on the NixOS-WSL repository:
24 | # https://github.com/nix-community/NixOS-WSL
25 |
26 | { config, lib, pkgs, ... }:
27 |
28 | {
29 | imports = [
30 | # include nixos-avf modules
31 |
32 | ];
33 |
34 | # Change default user
35 | # avf.defaultUser = "droid";
36 |
37 | # This value determines the NixOS release from which the default
38 | # settings for stateful data, like file locations and database versions
39 | # on your system were taken. It's perfectly fine and recommended to leave
40 | # this value at the release version of the first install of this system.
41 | # Before changing this value read the documentation for this option
42 | # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
43 | system.stateVersion = "${config.system.nixos.release}"; # Did you read the comment?
44 | }
45 | '';
46 |
47 | cfg = config.avf.initial;
48 | in
49 | {
50 | options = {
51 | avf.initial = {
52 | urlAVF = mkOption {
53 | type = types.str;
54 | default = envWithDefault "URL_AVF" "https://github.com/nix-community/nixos-avf/archive/refs/heads/trunk.tar.gz";
55 | };
56 | urlOS = mkOption {
57 | type = types.str;
58 | default = envWithDefault "URL_OS" "https://nixos.org/channels/nixos-unstable";
59 | };
60 | archId = mkOption {
61 | type = types.str;
62 | default = envWithDefault "ARCH" builtins.currentSystem;
63 | };
64 | release = mkOption {
65 | type = types.str;
66 | default = envWithDefault "RELEASE" "unstable";
67 | };
68 | };
69 | };
70 |
71 | config = {
72 | system.activationScripts.setup_files = {
73 | text = ''
74 | if [ ! -e /_setup ]; then
75 | cp -rv ${./etc}/* /etc/
76 | mkdir -vp /mnt/{shared,internal,backup}
77 | chown -v 1000:100 /mnt/{shared,internal,backup}
78 | mkdir -vp /etc/nixos
79 | cp -v ${defaultConfig} /etc/nixos/configuration.nix
80 |
81 | HOME=/root ${config.nix.package}/bin/nix-channel --add ${cfg.urlAVF} nixos-avf
82 | HOME=/root ${config.nix.package}/bin/nix-channel --add ${cfg.urlOS} nixos
83 |
84 | touch /_setup
85 | fi
86 | '';
87 | };
88 |
89 | systemd.tmpfiles.rules =
90 | let
91 | channels = pkgs.runCommand "default-channels" { } ''
92 | mkdir -p $out
93 | ln -s ${pkgs.path} $out/nixos
94 | ln -s ${./../.} $out/nixos-avf
95 | '';
96 | in
97 | [
98 | "L /nix/var/nix/profiles/per-user/root/channels-1-link - - - - ${channels}"
99 | "L /nix/var/nix/profiles/per-user/root/channels - - - - channels-1-link"
100 | ];
101 |
102 | system.stateVersion = config.system.nixos.release;
103 |
104 | avf.extraFiles."README.md" = ./README-image.md;
105 | };
106 | }
107 |
--------------------------------------------------------------------------------
/initial/etc/ttyd/server.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDiTCCAnGgAwIBAgIUasfD1K/4tJHwNRXL2kdSD9VbeSwwDQYJKoZIhvcNAQEL
3 | BQAwUzELMAkGA1UEBhMCQ04xCzAJBgNVBAgMAkdEMQswCQYDVQQHDAJTWjETMBEG
4 | A1UECgwKQWNtZSwgSW5jLjEVMBMGA1UEAwwMQWNtZSBSb290IENBMB4XDTI0MTAx
5 | NDAxMjgzOFoXDTI1MTAxNDAxMjgzOFowUDELMAkGA1UEBhMCQ04xCzAJBgNVBAgM
6 | AkdEMQswCQYDVQQHDAJTWjETMBEGA1UECgwKQWNtZSwgSW5jLjESMBAGA1UEAwwJ
7 | bG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3+uVF4TP
8 | jUjfL8vJlECAN1rLFK8lDuOUv52VCrW7MXMfGYlA4nk1OKDjygnZIpET6I9cTfCG
9 | Xiwad6bU6Oqy4MZ2i338F+eERrGpkitSQ7QRqZannjBIDFxXZvJpMTJDIWNCmz+P
10 | K2VcvCh8im2tJA66wJogUcVmJBugNqleqxFcxPvXOdBdWBK7JYOcb4J643eLX6+D
11 | X6v2QTlKXfihouVC8wAzbw9HHmOVb7ono1rV7xpcFrOyBiDGVSgEteiB8l26iXA9
12 | fExkb0rUzHjlgvb/l8/nGAaQHd0eE+/SGd4tXvs9KHX6XJh/PI0ExTsDIBDcuVOt
13 | 2YzXeuM6zzrKLQIDAQABo1gwVjAUBgNVHREEDTALgglsb2NhbGhvc3QwHQYDVR0O
14 | BBYEFHpFYqFC/AEOfWfdZmpy5YBZfgR2MB8GA1UdIwQYMBaAFGThxe/2q5/Dg6hI
15 | 9Von5HRAOUxZMA0GCSqGSIb3DQEBCwUAA4IBAQBQspP3wo3yzcPWuFk4lRyo7zpF
16 | JfBBX0UU1Z0MQfIGxLC2YtRvxobRqwLcKUKQjBqUuRdukleOaVVFeXb/HI9vY3ji
17 | 9PfUb2UJ4O3z3pdSK0EwXbkCidtUflRLvPG6dgBrXyLOqxBqA5lWR2ds5HRAMRAi
18 | eXfDkJTmNOAQAnPgM+35FBgmhh6axG+bUudvvVoA8ca+zW9i1R6/vblxYJ6bhmw0
19 | 8s+uoAX6FXcZ0YFOGdhcpJmnbiRd3D0VVacjc3b9pjFOI8d3bh9pR47p0kVOaRsh
20 | aAG3gZhyMPOgbYceCjfzND5YhycDI+MzPo/JOYdhHGGJawoh1nP94QNPan6J
21 | -----END CERTIFICATE-----
22 |
--------------------------------------------------------------------------------
/initial/etc/ttyd/server.key:
--------------------------------------------------------------------------------
1 | -----BEGIN PRIVATE KEY-----
2 | MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDf65UXhM+NSN8v
3 | y8mUQIA3WssUryUO45S/nZUKtbsxcx8ZiUDieTU4oOPKCdkikRPoj1xN8IZeLBp3
4 | ptTo6rLgxnaLffwX54RGsamSK1JDtBGplqeeMEgMXFdm8mkxMkMhY0KbP48rZVy8
5 | KHyKba0kDrrAmiBRxWYkG6A2qV6rEVzE+9c50F1YErslg5xvgnrjd4tfr4Nfq/ZB
6 | OUpd+KGi5ULzADNvD0ceY5VvuiejWtXvGlwWs7IGIMZVKAS16IHyXbqJcD18TGRv
7 | StTMeOWC9v+Xz+cYBpAd3R4T79IZ3i1e+z0odfpcmH88jQTFOwMgENy5U63ZjNd6
8 | 4zrPOsotAgMBAAECggEAARJYlD12ch5WM2aDrPOGOAtREOfP7CCwWcMiOfBP72iR
9 | Y9Vipxmuz16nwTJ22F7HvPsdPOUo1cFtWhim2Aqr/ZxuT4Ce9oVrk6iDwRdeuYdY
10 | cIhtChvJi+p0ggMcuyzp90+3AYXxynsOlCufMjSNGaqvYUsNEXnJFSgiKr7mgbIO
11 | J0VU1Wrquw7N58RKL+T3xEvE7uO3QpLOim2MbfRSVq/JGNxqAGw0/uxtjFs7Vtf9
12 | z44e/ULeYDS7zMj6cMggxQp5nfzcboGoNVUEDgYjOzqXCe4cG0n3XfN7GJhaS1ZF
13 | tPd8l4Ch0IrT4hs5uVFaMdFbj+er7mvmqfTVytrRmQKBgQD2kVB53EKhqxgvz2N7
14 | bAJglOLd6FWKsWlLMSdER0/4dRVRMIBxnYWgQ0gaRc4TM7oyKOl3MDF9jdDne5KJ
15 | cnfzFoH2GD6VBQRr0mFmV1UV6oHEjDJBasMo/1Vw3TJ4oZgZpYpJjrDmPWZqHUs4
16 | I79TdvJrNFSmk3MGVFjatLIq5QKBgQDofHpHfBeRCn2Z3OOkiAN5V53n5deZl6Jt
17 | lGTsrXKpEzRTre4LWZojoB9hiGjptZkXHA2HW90RiV9OHhTa8W9ZntLnOnWc5RUn
18 | Tzh14KupjsBQm/gE8SuqHSDx1mxTnIUo0W28d/Beecri5KfaoEY+wxZXOeQy5JFR
19 | ec/AhU4FqQKBgGhVzUwDnF502+M/SsVrSwY7elSUf74UnI2o2wjVdE2anc6hS3jI
20 | Q0cxsU0MxMrzVJLtJP2+cvLCE+ggLj3jJkbC+3N7ht/gI6LMf1KjGeoQNaFKAeoU
21 | l0i94xXDRBwvpQEVP5MowkprKO82PiIfXlKfPq2Gk1t5gW7oOkExvULRAoGBAK7R
22 | 051nec0uJ06I5IE3ae1X7jyP//TWKmTeHpo+vybWcxWth3/va9H4OUC9M67ySGEx
23 | ThcIBA+IzirOwf31aTbqEEuiEQje1m5NyvYQ8OS6nHDBJ9qHg78S0lAoXiLtYtBT
24 | 04HSauSQDvlY2cOzm77cMjN7K9b9Oy0aPRfW5dmpAoGAGesq4Ojky4crpi0H1O7n
25 | cMuIAzaPozsMx7iSrhUe69fwVFiMkEKR6ems01DmjYwPb6DtxCieaRlGbd9E8oIZ
26 | y6n+Uh9Qbc5sDhPMsys6NyKOv/A6rkn49/etr40f0Z5g9g/d2+qtwoAXjo3sSPuW
27 | 7iqbruRjbKUaJKzdpIqOKD0=
28 | -----END PRIVATE KEY-----
29 |
--------------------------------------------------------------------------------
/scripts/_common.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | HAS_ROOT=false
4 | USE_SU=false
5 | ROOT_CHECKED=false
6 |
7 | _log_cmd() {
8 | echo " \$ $*" >&2
9 | "$@"
10 | }
11 |
12 | _adb() {
13 | _log_cmd adb ${ADB_FLAGS:-} "$@"
14 | }
15 |
16 | # NOTE:
17 | # - on android eng builds adb is always running as root
18 | # - on android debug builds adb can be restarted as root
19 | # - on rooted android production builds a su binary is available for use by adb shell
20 | _enable_root() {
21 | if $ROOT_CHECKED; then
22 | return
23 | fi
24 | ROOT_CHECKED=true
25 | # check if debuggable, run "adb root" then
26 | _adb root || true
27 | if _adb shell id | grep "root" >/dev/null 2>/dev/null; then
28 | HAS_ROOT=true
29 | return
30 | fi
31 | # check if su exists, set USE_SU then
32 | if _adb shell "su -c id" | grep "root" >/dev/null 2>/dev/null; then
33 | HAS_ROOT=true
34 | USE_SU=true
35 | return
36 | fi
37 | }
38 |
39 | enable_root() {
40 | _enable_root >/dev/null
41 | }
42 |
43 | require_root() {
44 | enable_root
45 | if ! $HAS_ROOT; then
46 | echo "ERROR: no root found but script requires it" >&2
47 | exit 2
48 | fi
49 | }
50 |
51 | with_root() {
52 | require_root
53 | if $USE_SU; then
54 | _adb shell "su -c '$*'"
55 | else
56 | _adb shell "$@"
57 | fi
58 | }
59 |
--------------------------------------------------------------------------------
/scripts/android-clean-vm.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Deletes all data created by previous VMs
4 |
5 | set -euo pipefail
6 |
7 | SELF=$(dirname "$(readlink -f "$0")")
8 | . "$SELF/_common.sh"
9 |
10 | with_root rm -rfv /data/data/com.android.virtualization.terminal/{files/nixos.log,files/debian.log,files/linux,vm/nixos,vm/debian}
11 |
--------------------------------------------------------------------------------
/scripts/android-download-vm.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Copyright 2024 Google Inc. All rights reserved.
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | set -euo pipefail
18 |
19 | SELF=$(dirname "$(readlink -f "$0")")
20 | . "$SELF/_common.sh"
21 | ADB_FLAGS="-d"
22 |
23 | require_root
24 |
25 | user=$(_adb shell am get-current-user)
26 |
27 | # Identify file to download
28 | arch=$(with_root getprop ro.bionic.arch)
29 | if [ ${arch} == "arm64" ]; then
30 | src=https://github.com/nix-community/nixos-avf/releases/download/nixos-unstable/image-unstable-aarch64.tar.gz
31 | else
32 | src=https://github.com/nix-community/nixos-avf/releases/download/nixos-unstable/image-unstable-x86_64.tar.gz
33 | fi
34 |
35 | # Download
36 | downloaded=$(mktemp)
37 | # NOTE: wget can run on device where available, we can implement this later
38 | wget ${src} -O ${downloaded}
39 |
40 | # Push the file to the device
41 | dst=/data/media/${user}/linux
42 | _adb shell mkdir -p ${dst}
43 | _adb push ${downloaded} ${dst}/images.tar.gz
44 |
--------------------------------------------------------------------------------
/todo:
--------------------------------------------------------------------------------
1 | rewrite main navigation to composable
2 |
3 | install: turn toasts into must-confirm dialog prompts in ui
4 |
5 | rewrite home fragment to composable
6 |
7 | build extra view that allows viewing logs, etc with root
8 |
9 |
--------------------------------------------------------------------------------