Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.cargo/ | 03-May-2024 | - | 2 | 2 | ||
.github/workflows/ | 03-May-2024 | - | 86 | 66 | ||
src/ | 03-May-2024 | - | 507 | 417 | ||
tests/ | 03-May-2024 | - | 70 | 38 | ||
.cargo_vcs_info.json | D | 03-May-2024 | 74 | 6 | 5 | |
.gitignore | D | 03-May-2024 | 54 | 6 | 5 | |
Android.bp | D | 03-May-2024 | 812 | 37 | 32 | |
Cargo.toml | D | 03-May-2024 | 1,009 | 34 | 30 | |
Cargo.toml.orig | D | 03-May-2024 | 418 | 20 | 17 | |
LICENSE | D | 03-May-2024 | 11.1 KiB | 202 | 169 | |
METADATA | D | 03-May-2024 | 357 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | |||
Makefile | D | 03-May-2024 | 2.4 KiB | 73 | 39 | |
OWNERS | D | 03-May-2024 | 40 | 2 | 1 | |
README.android | D | 03-May-2024 | 226 | 4 | 3 | |
README.md | D | 03-May-2024 | 581 | 36 | 22 |
README.android
1local_modifications: 2 "Cherry-picked https://github.com/qwandor/vsock-rs/commit/4f73c26fc9a95e36e3ac4d304a02b6a424d7bcfd to fix Android build. This should be included in the next upstream release." 3 See patches/src.lib.diff 4
README.md
1# vsock-rs 2 3Virtio socket support for Rust. Implements VsockListener and VsockStream 4which are analogous to the `std::net::TcpListener` and `std::net::TcpStream` types. 5 6## Usage 7 8Refer to the crate [documentation](https://docs.rs/vsock). 9 10## Testing 11 12### Prerequisites 13 14You will need a recent qemu-system-x86_64 build in your path. 15 16### Host 17 18Setup the required virtio kernel modules: 19 20``` 21make kmod 22``` 23 24Start the test vm, you can shutdown the vm with the keyboard shortcut ```Ctrl+A``` and then ```x```: 25 26``` 27make vm 28``` 29 30### Tests 31 32Run the test suite with: 33 34``` 35make check 36```