Skip to content

Commit 9d85ff0

Browse files
authored
feat: add raw_value feature (#10)
1 parent f17139e commit 9d85ff0

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
.vscode/
2+
13
/target
24
/Cargo.lock

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ exclude = [".github"]
1616

1717

1818
[features]
19-
20-
# We currently don't forward any features to serde_json or serde_path_to_error.
21-
# I'm happy to accept PRs that add support for that.
19+
raw_value = ["serde_json/raw_value"]
2220

2321
[dependencies]
2422
serde = "1.0.188"

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ pub mod value {
208208
// See caveats in README.md
209209
pub use serde_json::value::Serializer;
210210

211+
#[cfg(feature = "raw_value")]
212+
pub use serde_json::value::{to_raw_value, RawValue};
213+
211214
use crate::{Error, Result};
212215

213216
/// Convert a `T` into `serde_json::Value` which is an enum that can represent

0 commit comments

Comments
 (0)