slotgate 0.5.0

A bounded-parallelism job runner that gives each slot its own disjoint port range, so port-binding tests run in parallel without collisions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) 2025-2026 Umberto Gotti
// SPDX-License-Identifier: MIT

pub struct PortRange {
    pub base: u16,
    pub count: u16,
}

impl PortRange {
    pub fn end(&self) -> u16 {
        self.base.saturating_add(self.count.saturating_sub(1))
    }
}