reallyme-codec-cbor 0.2.0

Canonical CBOR codec support for ReallyMe Codec.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
//
// SPDX-License-Identifier: Apache-2.0

use super::{try_vec_with_capacity, DeterministicCborError};

#[test]
fn impossible_capacity_returns_typed_allocation_failure() {
    assert!(matches!(
        try_vec_with_capacity::<u8>(usize::MAX),
        Err(DeterministicCborError::AllocationFailure)
    ));
}