Skip to content

Commit 3c2724f

Browse files
committed
Merge branch 'main' of https://github.com/swimos/swim-rust into unused-deps
# Conflicts: # api/swimos_api/Cargo.toml
2 parents a62004a + ee6f9c3 commit 3c2724f

File tree

169 files changed

+1287
-1157
lines changed

Some content is hidden

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

169 files changed

+1287
-1157
lines changed

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ use either::Either;
2222
use rmp::decode::{read_str_len, ValueReadError};
2323
use rmp::Marker;
2424

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

3030
use crate::{BIG_INT_EXT, BIG_UINT_EXT};

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use rmp::encode::{
2424
write_sint, write_str, write_u64, ValueWriteError,
2525
};
2626

27-
use swimos_form::structural::write::{
27+
use swimos_form::write::{
2828
BodyWriter, HeaderWriter, Label, PrimitiveWriter, RecordBodyKind, StructuralWritable,
2929
StructuralWriter,
3030
};

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> {

api/formats/swimos_recon/src/encoding.rs

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

1515
use bytes::{Buf, BufMut, BytesMut};
1616
use std::fmt::Write;
17-
use swimos_form::structural::{read::recognizer::Recognizer, write::StructuralWritable};
17+
use swimos_form::{read::Recognizer, write::StructuralWritable};
1818
use swimos_utilities::encoding::consume_bounded;
1919
use tokio_util::codec::{Decoder, Encoder};
2020

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
use bytes::{BufMut, BytesMut};
16-
use swimos_form::structural::read::recognizer::RecognizerReadable;
16+
use swimos_form::read::RecognizerReadable;
1717
use swimos_model::{Attr, Item, Value};
1818
use tokio_util::codec::{Decoder, Encoder};
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod tests;
1818
use base64::display::Base64Display;
1919
use std::borrow::Cow;
2020
use std::fmt::{Debug, Display, Formatter};
21-
use swimos_form::structural::write::{
21+
use swimos_form::write::{
2222
BodyWriter, HeaderWriter, Label, PrimitiveWriter, RecordBodyKind, StructuralWritable,
2323
StructuralWriter,
2424
};

api/formats/swimos_recon/src/recon_parser/async_parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use nom::Parser;
2323
use std::error::Error;
2424
use std::fmt::{Display, Formatter};
2525
use std::str::Utf8Error;
26-
use swimos_form::structural::read::recognizer::{Recognizer, RecognizerReadable};
27-
use swimos_form::structural::read::ReadError;
26+
use swimos_form::read::ReadError;
27+
use swimos_form::read::{Recognizer, RecognizerReadable};
2828
use swimos_model::{Item, Value};
2929
use tokio::io::{AsyncRead, AsyncReadExt};
3030
use tokio_util::codec::Decoder;

0 commit comments

Comments
 (0)