Skip to content

Commit 5a61026

Browse files
committed
Flattened bigint reexport.
1 parent 126b5e3 commit 5a61026

File tree

30 files changed

+36
-26
lines changed

30 files changed

+36
-26
lines changed

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 = "1.4"
1414
rmp = "0.8"
15+
num-bigint = { workspace = true }
1516

1617
[dev-dependencies]
1718

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

Lines changed: 2 additions & 1 deletion
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

2526
use swimos_form::read::ReadEvent;
2627
use swimos_form::read::Recognizer;
2728
use swimos_form::read::{ReadError, StructuralReadable};
28-
use swimos_model::bigint::{BigInt, BigUint, Sign};
29+
use swimos_model::{BigInt, BigUint};
2930

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ 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,
@@ -28,7 +29,7 @@ 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/printer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use swimos_form::write::{
2222
BodyWriter, HeaderWriter, Label, PrimitiveWriter, RecordBodyKind, StructuralWritable,
2323
StructuralWriter,
2424
};
25-
use swimos_model::bigint::{BigInt, BigUint};
25+
use swimos_model::{BigInt, BigUint};
2626
use swimos_model::literal::write_string_literal;
2727

2828
/// Print an inline Recon representation of [`StructuralWritable`] value.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use nom::IResult;
2121
use std::borrow::Cow;
2222
use std::ops::{Add, Neg, Sub};
2323
use swimos_form::read::{NumericValue, ReadEvent};
24-
use swimos_model::bigint::{BigInt, BigUint};
24+
use swimos_model::{BigInt, BigUint};
2525
use swimos_model::{Attr, Item, Text, Value};
2626

2727
fn span(input: &str) -> Span<'_> {

api/formats/swimos_recon/src/recon_parser/tokens.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ use std::convert::TryFrom;
2525
use std::fmt::{Display, Formatter};
2626
use std::ops::Neg;
2727
use swimos_form::read::NumericValue;
28-
use swimos_model::bigint::{BigInt, BigUint, ParseBigIntError, Sign};
28+
use swimos_model::{BigInt, BigUint};
2929
use swimos_model::identifier::{is_identifier_char, is_identifier_start};
3030
use swimos_model::Text;
31+
use num_bigint::{ParseBigIntError, Sign};
3132

3233
fn unwrap_span(span: Span<'_>) -> &str {
3334
&span

api/swimos_form/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ swimos_model = { path = "../swimos_model" }
1111
chrono = { workspace = true }
1212
either = { workspace = true }
1313
num-traits = { workspace = true }
14+
num-bigint = { workspace = true }
1415

1516
[dev-dependencies]
1617
trybuild = { workspace = true }

api/swimos_form/src/structural/bridge/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::structural::write::{
2323
StructuralWriter,
2424
};
2525
use std::borrow::Cow;
26-
use swimos_model::bigint::{BigInt, BigUint};
26+
use swimos_model::{BigInt, BigUint};
2727

2828
/// Bridge to forward writes to a [`StructuralWriter`] instance to the builder methods
2929
/// on a [`StructuralReadable`] type.

0 commit comments

Comments
 (0)