Releases: sval-rs/sval
Releases · sval-rs/sval
0.4.1
Key changes
- Optimize library internals.
Contributions
0.4.0
0.3.0
Key changes
- Remove
Stream::begin
andStream::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
withOwnedStream::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
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
Key changes
Some internal cleanups around stream poisoning.
Contributions
0.1.4
Key changes
Allow any sval::Value
to be treated like a std::fmt::Debug
with a reasonable representation.
Contributions
0.1.3
Key changes
Add an OwnedStream
API as a safe and ergonomic wrapper over a raw Stream
.
Contributions
0.1.2
Key changes
Tidy up OwnedValue
implementation.
Contributions
0.1.1
Key changes
Fixes up some issues with the docs, and a few other non-public changes to tests.