Skip to content

Commit 8268dd4

Browse files
committed
Merge branch 'main' of https://github.com/swimos/swim-rust into dependabot/cargo/base64-0.22
# Conflicts: # api/swimos_schema/src/schema/tests/mod.rs
2 parents a496e05 + 2ae1bdd commit 8268dd4

File tree

479 files changed

+5315
-22800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

479 files changed

+5315
-22800
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ members = [
77
"api/formats/swimos_*",
88
"macro_utilities",
99
"runtime/swimos_*",
10-
"swimos_store",
1110
"swimos_utilities",
1211
"swimos_utilities/swimos_*",
1312
"swimos_downlink",
@@ -104,7 +103,6 @@ clap = "4.1"
104103
crossbeam-queue = { version = "0.3" }
105104
crossbeam-channel = { version = "0.5" }
106105
hyper = "0.14"
107-
lazy_static = "1.4.0"
108106
percent-encoding = "2.1.0"
109107
mime = "0.3"
110108
serde_json = "1.0"

api/formats/swimos_msgpack/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ swimos_model = { path = "../../swimos_model" }
1212
bytes = { workspace = true }
1313
byteorder = { workspace = true }
1414
rmp = { workspace = true }
15+
num-bigint = { workspace = true }
1516

1617
[dev-dependencies]
1718

api/formats/swimos_msgpack/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
//! Provides a MessagesPack backend for the Swim serialization system. This consists of two parts:
1818
//!
1919
//! - A function [`read_from_msg_pack`] that will attempt to deserialize any type that implements
20-
//! [`swimos_form::structural::read::StructuralReadable`] from a buffer containing MessagePack data.
21-
//! - The type [`MsgPackInterpreter`] that implements [`swimos_form::structural::write::StructuralWriter`]
22-
//! allowing any type that implements [`swimos_form::structural::write::StructuralWritable`] to be
20+
//! [`swimos_form::read::StructuralReadable`] from a buffer containing MessagePack data.
21+
//! - The type [`MsgPackInterpreter`] that implements [`swimos_form::write::StructuralWriter`]
22+
//! allowing any type that implements [`swimos_form::write::StructuralWritable`] to be
2323
//! serialized as MessagePack.
2424
//!
2525
//! # Examples
2626
//!
2727
//! ```
2828
//! use bytes::{BufMut, BytesMut};
29-
//! use swimos_form::structural::write::StructuralWritable;
29+
//! use swimos_form::write::StructuralWritable;
3030
//! use swimos_msgpack::{read_from_msg_pack, MsgPackInterpreter};
3131
//!
3232
//! let mut buffer = BytesMut::with_capacity(128);

api/formats/swimos_msgpack/src/reader/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ use std::str::Utf8Error;
1919

2020
use bytes::{Buf, BufMut, BytesMut};
2121
use either::Either;
22+
use num_bigint::Sign;
2223
use rmp::decode::{read_str_len, ValueReadError};
2324
use rmp::Marker;
2425

25-
use swimos_form::structural::read::event::ReadEvent;
26-
use swimos_form::structural::read::recognizer::Recognizer;
27-
use swimos_form::structural::read::{ReadError, StructuralReadable};
28-
use swimos_model::bigint::{BigInt, BigUint, Sign};
26+
use swimos_form::read::ReadEvent;
27+
use swimos_form::read::Recognizer;
28+
use swimos_form::read::{ReadError, StructuralReadable};
29+
use swimos_model::{BigInt, BigUint};
2930

3031
use crate::{BIG_INT_EXT, BIG_UINT_EXT};
3132

api/formats/swimos_msgpack/src/reader/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use crate::reader::MsgPackReadError;
1616
use rmp::Marker;
17-
use swimos_form::structural::read::ReadError;
17+
use swimos_form::read::ReadError;
1818

1919
const INVALID_UTF8: [u8; 2] = [0xc3, 0x28];
2020

api/formats/swimos_msgpack/src/writer/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ use std::io;
1919
use std::io::Write;
2020

2121
use byteorder::WriteBytesExt;
22+
use num_bigint::Sign;
2223
use rmp::encode::{
2324
write_array_len, write_bin, write_bool, write_ext_meta, write_f64, write_map_len, write_nil,
2425
write_sint, write_str, write_u64, ValueWriteError,
2526
};
2627

27-
use swimos_form::structural::write::{
28+
use swimos_form::write::{
2829
BodyWriter, HeaderWriter, Label, PrimitiveWriter, RecordBodyKind, StructuralWritable,
2930
StructuralWriter,
3031
};
31-
use swimos_model::bigint::{BigInt, BigUint, Sign};
32+
use swimos_model::{BigInt, BigUint};
3233

3334
use crate::{BIG_INT_EXT, BIG_UINT_EXT};
3435

api/formats/swimos_msgpack/src/writer/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use crate::MsgPackWriteError;
1616
use std::io::ErrorKind;
17-
use swimos_model::bigint::{BigInt, BigUint};
17+
use swimos_model::{BigInt, BigUint};
1818

1919
#[test]
2020
fn msgpack_write_err_display() {

api/formats/swimos_recon/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ tokio-util = { workspace = true, features = ["codec"] }
2323
bytes = { workspace = true }
2424
smallvec = { workspace = true }
2525
thiserror = { workspace = true }
26+
num-bigint = { workspace = true }
2627

2728
[dev-dependencies]
2829
tokio = { workspace = true, features = ["io-util", "macros", "rt", "fs"] }

api/formats/swimos_recon/src/comparator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use crate::recon_parser::{record::ParseIterator, Span};
1616
use smallvec::SmallVec;
1717
use std::iter::Peekable;
18-
use swimos_form::structural::read::event::ReadEvent;
18+
use swimos_form::read::ReadEvent;
1919

2020
#[cfg(test)]
2121
mod tests;

api/formats/swimos_recon/src/comparator/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::recon_parser::record::ParseIterator;
1717
use crate::recon_parser::{parse_recognize, ParseError, Span};
1818
use nom::error::ErrorKind;
1919
use std::borrow::Cow;
20-
use swimos_form::structural::read::event::{NumericValue, ReadEvent};
20+
use swimos_form::read::{NumericValue, ReadEvent};
2121
use swimos_model::Value;
2222

2323
fn value_from_string(rep: &str) -> Result<Value, ParseError> {

0 commit comments

Comments
 (0)