v0.3.9-pre.002-fix.001

This commit is contained in:
2026-09-04 14:23:54 +02:00
parent 7d0710a1e6
commit 156d237460
9 changed files with 210 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-worker-api/src/identity.rs
// version: 1
// version: 2
/// Maximum UTF-8 byte length admitted for one Worker identifier.
pub const MAX_WORKER_ID_BYTES: usize = 128;
@@ -10,7 +10,7 @@ pub const MAX_WORKER_KIND_CODE_BYTES: usize = 128;
#[derive(Clone, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct WorkerId(std::string::String);
impl WorkerId {
impl crate::WorkerId {
/// Creates one non-empty Worker identifier using the KSP safe-code alphabet.
pub fn new(value: impl std::convert::Into<std::string::String>) -> crate::Result<Self> {
let value = value.into();
@@ -27,7 +27,7 @@ impl WorkerId {
}
}
impl std::fmt::Debug for WorkerId {
impl std::fmt::Debug for crate::WorkerId {
fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
return formatter.write_str("WorkerId(..)");
}
@@ -37,7 +37,7 @@ impl std::fmt::Debug for WorkerId {
#[derive(Clone, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct WorkerKindCode(std::string::String);
impl WorkerKindCode {
impl crate::WorkerKindCode {
/// Creates one non-empty Worker kind using the KSP safe-code alphabet.
pub fn new(value: impl std::convert::Into<std::string::String>) -> crate::Result<Self> {
let value = value.into();
@@ -54,7 +54,7 @@ impl WorkerKindCode {
}
}
impl std::fmt::Debug for WorkerKindCode {
impl std::fmt::Debug for crate::WorkerKindCode {
fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
return formatter.debug_tuple("WorkerKindCode").field(&self.0).finish();
}