Skip to content

Commit

Permalink
Reexport json_number::Buffer trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed Feb 15, 2024
1 parent a9c0ad2 commit 9e087d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "json-syntax"
version = "0.11.3"
version = "0.11.4"
edition = "2021"
authors = ["Timothée Haudebourg <author@haudebourg.net>"]
description = "Strict JSON parsing and mapping library"
Expand All @@ -22,7 +22,7 @@ serde = [ "dep:serde", "json-number/serde", "smallstr/serde" ]
serde_json = [ "dep:serde_json", "json-number/serde_json" ]

[dependencies]
json-number = { version = "0.4.6", features = [ "smallnumberbuf" ] }
json-number = { version = "0.4.8", features = [ "smallnumberbuf" ] }
smallvec = "1.9"
smallstr = "0.3"
locspan = "0.8.2"
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
//! let mut value = Value::parse_str(&input).expect("parse error").0;
//! println!("value: {}", value.pretty_print());
//! ```
pub use json_number::Number;
pub use json_number::{InvalidNumber, Number};
use smallvec::SmallVec;
use std::fmt;

Expand All @@ -50,6 +50,10 @@ pub use print::Print;
mod convert;
mod macros;

pub mod number {
pub use json_number::Buffer;
}

#[cfg(feature = "serde")]
mod serde;

Expand Down

0 comments on commit 9e087d1

Please sign in to comment.