summaryrefslogtreecommitdiff
path: root/serde_dhall/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* substitute_names -> inject_typesstuebinm2021-05-021-7/+30
| | | | | | | | | | | | This does three things: 1. rename the substitute_names function into inject_types, and makes it accept anything that implements IntoIterator instead of just HashMaps 2. adds an extra function to inject just a single type 3. makes these functions chainable; before, each call to substitute_names would discard previous invocations. However, this currently comes at the cost of a lot of ugly copying. also, more tests!
* remove forgotten printlnstuebinm2021-05-011-1/+0
|
* substitutions: add documentationstuebinm2021-04-101-0/+37
|
* 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
* release: serde_dhall version 0.10.1Nadrieril2021-04-031-1/+1
|
* fix: don't use `Option` to signal errorsNadrieril2021-03-091-24/+31
|
* release: serde_dhall version 0.10.0Nadrieril2021-02-041-1/+1
|
* fixes #210 avoid possible conflicts by not using AsRef traitQeenon2021-01-251-1/+1
|
* chore: convert doc links to intra-doc linksNadrieril2020-12-186-67/+52
|
* Unify `skip_resolve_expr` with normal resolutionNadrieril2020-12-071-1/+1
|
* Thread cx everywhere else imports are readNadrieril2020-12-072-5/+13
|
* Thread cx through normalizationNadrieril2020-12-072-21/+23
|
* Don't store internal structures of `dhall` in `serde_dhall`Nadrieril2020-12-072-37/+73
|
* release: serde_dhall version 0.9.0Nadrieril2020-11-201-1/+1
|
* Expose binary parsing in the APINadrieril2020-11-202-1/+42
|
* release: serde_dhall version 0.8.0Nadrieril2020-10-281-1/+1
|
* Fix clippy and formattingNadrieril2020-10-281-1/+1
|
* Implement SimpleValue serializationNadrieril2020-10-281-1/+45
|
* Move table of type correspondancesNadrieril2020-10-282-23/+26
|
* Add missing documentationNadrieril2020-10-283-10/+316
|
* Make type annotation optional to allow serializing SimpleValueNadrieril2020-10-285-122/+138
|
* Implement serializationNadrieril2020-10-289-14/+578
|
* Prefer u64/i64 to usize/isizeNadrieril2020-10-283-33/+9
|
* Release serde_dhall version 0.7.5Nadrieril2020-10-281-1/+1
|
* Make `SimpleValue` deserializable within other typesNadrieril2020-10-272-18/+112
| | | | Fixes https://github.com/Nadrieril/dhall-rust/issues/184
* Release serde_dhall version 0.7.4Nadrieril2020-10-251-1/+1
|
* Release serde_dhall version 0.7.3Nadrieril2020-10-241-1/+1
|
* Make SimpleValue public and add from_simple_value()Benjamin Levy2020-10-243-6/+130
|
* Release serde_dhall version 0.7.2Nadrieril2020-10-241-1/+1
|
* Release serde_dhall version 0.7.1Nadrieril2020-10-161-1/+1
|
* feat: Add a `Display` impl for `SimpleType`Nadrieril2020-10-161-0/+21
| | | | Fixes https://github.com/Nadrieril/dhall-rust/issues/179
* Release serde_dhall version 0.7.0Nadrieril2020-09-151-1/+1
|
* Release serde_dhall version 0.6.0Nadrieril2020-08-051-1/+1
|
* Release serde_dhall version 0.5.3Nadrieril2020-05-301-1/+1
|
* Release serde_dhall version 0.5.2Nadrieril2020-04-121-1/+1
|
* Deserialize `Prelude.Map` and `toMap` to a map instead of a listNadrieril2020-04-102-5/+54
|
* Release serde_dhall version 0.5.1Nadrieril2020-04-091-1/+1
|
* Move BinOp and Builtin definitions in the relevant moduleNadrieril2020-04-061-1/+2
|
* Extract operation-related code to a new moduleNadrieril2020-04-061-1/+2
|
* Split off operations from main expr enumNadrieril2020-04-061-6/+7
|
* Fix cargo-release substitutionsNadrieril2020-04-051-1/+1
|
* Doc tweaksNadrieril2020-04-051-0/+4
|
* Fix clippy warningsNadrieril2020-04-052-6/+4
|
* Final doc tweaksNadrieril2020-04-054-58/+59
|
* TweaksNadrieril2020-04-051-10/+13
|
* Borrow type annotationNadrieril2020-04-051-10/+8
|
* Rewrite builder with state machine to allow parse::<>Nadrieril2020-04-052-95/+132
|
* Make Deserializer functions the only functionsNadrieril2020-04-056-308/+30
|
* Document Deserializer methodsNadrieril2020-04-052-17/+198
|
* Rename Deserialize trait to FromDhallNadrieril2020-04-055-11/+11
|