diag_proto/lib.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! The Underhill diagnostics server protocol definitions.
5
6#![expect(missing_docs)]
7#![forbid(unsafe_code)]
8
9// Crates used by generated code. Reference them explicitly to ensure that
10// automated tools do not remove them.
11use inspect as _;
12use mesh_rpc as _;
13use prost as _;
14
15include!(concat!(env!("OUT_DIR"), "/diag.rs"));
16
17/// The AF_VSOCK port number the server runs on.
18///
19/// Happens to be the address of Bag End.
20pub const VSOCK_CONTROL_PORT: u32 = 1;
21pub const VSOCK_DATA_PORT: u32 = 2;
22
23/// The maximum length of a file line.
24pub const FILE_LINE_MAX: usize = 2048;