[repo] Release: version 0.2.0 (client and host); const assertions for the applist cap (clippy)
This commit is contained in:
Generated
+1
-1
@@ -241,7 +241,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "domistream"
|
name = "domistream"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes",
|
"aes",
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ exclude = ["fuzz"]
|
|||||||
resolver = "3"
|
resolver = "3"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.89"
|
rust-version = "1.89"
|
||||||
license = "CPAL-1.0"
|
license = "CPAL-1.0"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "domistream"
|
name = "domistream"
|
||||||
description = "Sans-I/O GameStream client protocol for Arena Domi Play remotely"
|
description = "Sans-I/O GameStream protocol (client and host) for Arena Domi Play remotely"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
rust-version.workspace = true
|
rust-version.workspace = true
|
||||||
|
|||||||
@@ -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
|
/// 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`].
|
/// 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;
|
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.
|
/// The declaration every answer starts with.
|
||||||
const DECLARATION: &str = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
const DECLARATION: &str = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
||||||
|
|||||||
@@ -508,7 +508,7 @@ fn applist_cap_is_reachable_with_full_apps() {
|
|||||||
.map(|i| format!("<App><AppTitle>g</AppTitle><ID>{i}</ID><IsHdrSupported>1</IsHdrSupported></App>"))
|
.map(|i| format!("<App><AppTitle>g</AppTitle><ID>{i}</ID><IsHdrSupported>1</IsHdrSupported></App>"))
|
||||||
.collect::<String>()
|
.collect::<String>()
|
||||||
};
|
};
|
||||||
assert!(1 + 4 * MAX_APPS <= MAX_XML_ELEMENTS, "root + 4 per app = {} elements", 1 + 4 * MAX_APPS);
|
const { assert!(4 * MAX_APPS < MAX_XML_ELEMENTS, "root + 4 per app must fit the element cap") };
|
||||||
let apps = http::parse_app_list(&xml_root(200, &full(MAX_APPS))).expect("a full list at the app cap");
|
let apps = http::parse_app_list(&xml_root(200, &full(MAX_APPS))).expect("a full list at the app cap");
|
||||||
assert_eq!(apps.len(), MAX_APPS);
|
assert_eq!(apps.len(), MAX_APPS);
|
||||||
assert!(apps.iter().all(|a| a.hdr_supported));
|
assert!(apps.iter().all(|a| a.hdr_supported));
|
||||||
|
|||||||
Generated
+1
-1
@@ -236,7 +236,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "domistream"
|
name = "domistream"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes",
|
"aes",
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
|
|||||||
Generated
+1
-1
@@ -228,7 +228,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "domistream"
|
name = "domistream"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes",
|
"aes",
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
|
|||||||
Reference in New Issue
Block a user