[repo] Release: version 0.2.0 (client and host); const assertions for the applist cap (clippy)

This commit is contained in:
2026-12-04 13:31:17 +01:00
parent 1fca3abd49
commit 1f95cc8db4
7 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ pub const MAX_STATUS_MESSAGE_BYTES: usize = 256;
/// Most apps one `applist` answer carries: the client's [`crate::http::applist::MAX_APPS`], which is set so the
/// document (the root plus four elements per app) stays within the client's [`crate::http::xml::MAX_XML_ELEMENTS`].
pub const MAX_WRITTEN_APPS: usize = MAX_APPS;
const _: () = assert!(1 + 4 * MAX_WRITTEN_APPS <= MAX_XML_ELEMENTS, "an applist at the cap must fit the XML cap");
const _: () =
assert!(4 * MAX_WRITTEN_APPS < MAX_XML_ELEMENTS, "an applist at the cap (root + 4 per app) must fit the XML cap");
/// The declaration every answer starts with.
const DECLARATION: &str = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";