Skip to main content

sval_dynamic/
lib.rs

1/*!
2Object-safe wrappers for `sval::Stream` and `sval::Value`.
3
4This crate makes it possible to erase a concrete `sval::Value` or `sval::Stream`
5as a `dyn Value` or `dyn Stream`. It doesn't require any allocator,
6so it's possible to use in no-std environments.
7*/
8
9#![doc(html_logo_url = "https://raw.githubusercontent.com/sval-rs/sval/main/asset/logo.svg")]
10#![no_std]
11#![deny(missing_docs)]
12
13mod stream;
14mod value;
15
16mod private {
17    pub struct Erased<T>(pub(crate) T);
18}
19
20pub use self::{stream::Stream, value::Value};
21
22// NOTE: Tests for forwarding through dynamic traits is in `sval_test`