Skip to content

Releases: sval-rs/sval

0.4.1

10 Jul 22:22
e57abd1
Compare
Choose a tag to compare

0.4.0

09 Jul 06:36
Compare
Choose a tag to compare

Key changes

  • Rename sval_json::IntoInner to sval_json::End.
  • Add From impls to OwnedValue for primitive types when it's free

Contributions

0.3.0

09 Jul 00:31
b6834a6
Compare
Choose a tag to compare

Key changes

  • Remove Stream::begin and Stream::end since they rely on callers to be used correctly, and are confusing when thinking about re-usable vs non-re-usable streams.
  • Replace OwnedStream::end with OwnedStream::into_inner, which is infallible.
  • Make the debug-only validation for OwnedStream panic instead of returning an error (but only if the inner stream doesn't error itself).
  • Improve error messages for invalid stream calls.

Contributions

0.2.0

10 May 01:14
151c921
Compare
Choose a tag to compare

Key changes

Refactor the OwnedStream API so it's clearer how it relates to value::Stream. You can now create a value::Stream:

let mut stream = OwnedStream::begin(s)?;

// Previously you couldn't do this
// value::Stream was its own thing
v.stream(&mut stream.borrow_mut())?;

stream.end()?;

It's more convenient to use OwnedStream::any instead:

let mut stream = OwnedStream::begin(s)?;

stream.any(v)?;

stream.end()?;

But not actually being able to call stream on a Value was a bit of an oddity that didn't make much sense after we added OwnedStream as a concept.

Contributions

0.1.5

09 May 08:18
6c89fa5
Compare
Choose a tag to compare

0.1.4

30 Apr 23:44
806db76
Compare
Choose a tag to compare

Key changes

Allow any sval::Value to be treated like a std::fmt::Debug with a reasonable representation.

Contributions

0.1.3

28 Mar 00:48
69b701f
Compare
Choose a tag to compare

Key changes

Add an OwnedStream API as a safe and ergonomic wrapper over a raw Stream.

Contributions

0.1.2

23 Jan 22:03
33e2693
Compare
Choose a tag to compare

0.1.1

17 Jan 04:10
fcb17b7
Compare
Choose a tag to compare

Key changes

Fixes up some issues with the docs, and a few other non-public changes to tests.

Contributions

0.1.0

15 Jan 06:09
1222dc2
Compare
Choose a tag to compare

The initial release.