qubit-value 0.12.2

Type-safe containers for single, multi-valued, and named runtime values
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================

//! Borrowed collection V1 wire behavior.

#[test]
fn test_borrowed_collection_wire_serializes() {
    use qubit_value::ValueContainer;
    use qubit_value::ValueWireRefV1;

    let value = ValueContainer::from(vec![1_i32]);
    assert!(serde_json::to_value(ValueWireRefV1::try_from(&value).unwrap()).is_ok());
}