An open API service indexing awesome lists of open source software.

https://github.com/euank/serde-nix

Serialize rust data into nix expressions
https://github.com/euank/serde-nix

Last synced: over 1 year ago
JSON representation

Serialize rust data into nix expressions

Awesome Lists containing this project

README

          

## serde-nix

serde-nix provides a way to serialize a Rust type implementing
[serde::ser::Serialize](https://docs.serde.rs/serde/ser/trait.Serialize.html)
into a nix expression.

This crate does not provide a deserializer due to evaluating arbitrary nix
expressions being a little more involved.

#### License

Code in this crate is partially derived from
[serde-rs/json](https://github.com/serde-rs/json) code, and so for simplicity
the same license is retained.


Licensed under either of Apache License, Version
2.0
or MIT license at your option.



Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.