Skip to content

Releases: sval-rs/sval

1.0.0-alpha.4

01 Nov 21:28
aff1d9f
Compare
Choose a tag to compare

1.0.0-alpha.3

20 Aug 23:05
acd7071
Compare
Choose a tag to compare
1.0.0-alpha.3 Pre-release
Pre-release

1.0.0-alpha.1

04 Aug 04:18
8f723d0
Compare
Choose a tag to compare
1.0.0-alpha.1 Pre-release
Pre-release

Key changes

  • Refactor the public API in preparation for a stable 1.0 release.
  • Remove the top-levl sval::Value and sval::Stream imports.
  • Move serde integration to a serde::v1 module.

Migrating from 0.5.x

sval::Stream and sval::Value

These types were removed from the top-level of the crate because they're just re-exports from the value and stream modules, and since those modules also define their own Stream and Value types it was confusing to have them appear at the top-level too.

Instead of writing:

use sval::{Value, value};
use sval::{Stream, stream};

you'll now write:

use sval::value::{self, Value};
use sval::stream::{self, Stream};

sval::Error

The Error type now implements the standard std::error::Error trait when it's available. Doing that has meant removing a blanket From<E: std::error::Error> impl. It's a bit unfortunate because now you'll need to map sval::Errors into fmt::Error or io::Error manually:

stream.any(&self.0).map_err(sval::Error::into_fmt_error)?;

sval::serde

The serde support has been moved into a nested v1 module so that a future major version of serde can be added to a v2 module.

Instead of writing:

sval::serde::to_serialize(v);

you'll now write:

sval::serde::v1::to_serialize(v);

Contributions

0.5.2

04 Jun 12:25
c432b60
Compare
Choose a tag to compare

Key changes

  • Respect other formatting flags in sval::fmt

Contributions

0.5.1

02 Feb 23:45
85ccf03
Compare
Choose a tag to compare

Key changes

  • Syntactic change for older compilers

Contributions

0.4.7

19 Oct 11:32
2ef7c2f
Compare
Choose a tag to compare

Key changes

  • Implement the Stream trait for OwnedStream, RefMutStream and Stack

Contributions

0.4.6

17 Oct 05:06
d3cd18e
Compare
Choose a tag to compare

Key changes

  • Update dependencies
  • Ensure cloning an OwnedValue::from(s: String) is cheap

Contributions

0.4.5

01 Sep 21:33
c3dc93e
Compare
Choose a tag to compare

Key changes

  • Re-organize the crate docs.

Contributions

0.4.4

30 Jul 02:47
5e89dad
Compare
Choose a tag to compare

Key changes

  • Tidies up some Cargo metadata (no actual API changes)

Contributions

0.4.2

13 Jul 09:43
8cb66dc
Compare
Choose a tag to compare

Key changes

  • Add limited no-std support for serde integration.

Contributions