Crate snix_serde

Source
Expand description

snix-serde implements (de-)serialisation of Rust data structures to/from Nix. This is intended to make it easy to use Nix as as configuration language.

Modulesยง

de ๐Ÿ”’
Deserialisation from Nix to Rust values.
error ๐Ÿ”’
When serialising Nix goes wrong โ€ฆ

Functionsยง

from_str
Evaluate the Nix code in src and attempt to deserialise the value it returns to T.
from_str_with_config
Evaluate the Nix code in src, with extra configuration for the snix_eval::Evaluation provided by the given closure.