Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add type substitutions to serde_dhall | stuebinm | 2021-04-10 | 1 | -2/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | this adds subsititutions, which work similar to the `Dhall.substitutions` mechanism of the Haskell dhall package, and which can be used e.g. like this: ```rust serde_dhall.from_str(...) .substitute_names(hashmap!["Newtype" => static_type]) .parse::<SimpleType>()? ``` The idea behind this is to make it easy to add programmer-defined types which may be used in configs for programs, without forcing the program's users to re-import the same type definitions each time (or the programmers to keep the dhall-based definitions in sync with their rust types, since these are now generated automatically). Caveats so far: - makes some of the code ugly (dhall internals are now used in serde_dhall/src/lib.rs, for example) - haven't tested error messages so far - some unecessary copying of strings and static type values | ||||
* | chore: convert doc links to intra-doc links | Nadrieril | 2020-12-18 | 2 | -48/+36 |
| | |||||
* | Unify `skip_resolve_expr` with normal resolution | Nadrieril | 2020-12-07 | 1 | -1/+1 |
| | |||||
* | Thread cx everywhere else imports are read | Nadrieril | 2020-12-07 | 1 | -0/+1 |
| | |||||
* | Thread cx through normalization | Nadrieril | 2020-12-07 | 1 | -19/+21 |
| | |||||
* | Don't store internal structures of `dhall` in `serde_dhall` | Nadrieril | 2020-12-07 | 1 | -4/+7 |
| | |||||
* | Expose binary parsing in the API | Nadrieril | 2020-11-20 | 1 | -0/+41 |
| | |||||
* | Fix clippy and formatting | Nadrieril | 2020-10-28 | 1 | -1/+1 |
| | |||||
* | Add missing documentation | Nadrieril | 2020-10-28 | 1 | -0/+184 |
| | |||||
* | Make type annotation optional to allow serializing SimpleValue | Nadrieril | 2020-10-28 | 3 | -55/+49 |
| | |||||
* | Implement serialization | Nadrieril | 2020-10-28 | 3 | -0/+441 |