summaryrefslogtreecommitdiff
path: root/serde_dhall/src/options (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add type substitutions to serde_dhallstuebinm2021-04-101-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 linksNadrieril2020-12-182-48/+36
|
* Unify `skip_resolve_expr` with normal resolutionNadrieril2020-12-071-1/+1
|
* Thread cx everywhere else imports are readNadrieril2020-12-071-0/+1
|
* Thread cx through normalizationNadrieril2020-12-071-19/+21
|
* Don't store internal structures of `dhall` in `serde_dhall`Nadrieril2020-12-071-4/+7
|
* Expose binary parsing in the APINadrieril2020-11-201-0/+41
|
* Fix clippy and formattingNadrieril2020-10-281-1/+1
|
* Add missing documentationNadrieril2020-10-281-0/+184
|
* Make type annotation optional to allow serializing SimpleValueNadrieril2020-10-283-55/+49
|
* Implement serializationNadrieril2020-10-283-0/+441