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
- Host: GitHub
- URL: https://github.com/euank/serde-nix
- Owner: euank
- License: apache-2.0
- Created: 2021-08-04T08:23:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T09:03:33.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T17:19:17.911Z (over 1 year ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
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.