summaryrefslogtreecommitdiff
path: root/serde_dhall (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-08inject_types -> with_builtin_typessubstitutionsstuebinm2-13/+13
at request of Nadrieril.
2021-05-02substitute_names -> inject_typesstuebinm2-9/+98
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!
2021-05-01remove forgotten printlnstuebinm1-1/+0
2021-04-26substitutions: add test to serde.rsstuebinm1-0/+21
2021-04-10substitutions: add documentationstuebinm1-0/+37
2021-04-10add type substitutions to serde_dhallstuebinm1-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
2021-04-03release: serde_dhall version 0.10.1Nadrieril2-2/+2
2021-04-03release: dhall_proc_macros version 0.5.1Nadrieril1-1/+1
2021-04-03release: dhall version 0.10.1Nadrieril1-1/+1
2021-03-27Remove a redundant semicolon in a test for good measure.Ceri Storey1-2/+2
2021-03-09fix: don't use `Option` to signal errorsNadrieril1-24/+31
2021-02-04release: serde_dhall version 0.10.0Nadrieril2-2/+2
2021-02-04release: dhall version 0.10.0Nadrieril1-1/+1
2021-01-25fixes #210 avoid possible conflicts by not using AsRef traitQeenon1-1/+1
2020-12-18chore: convert doc links to intra-doc linksNadrieril6-67/+52
2020-12-08tests: add a test that fetches the remote preludeNadrieril1-1/+17
It's too slow even in release mode.
2020-12-07Unify `skip_resolve_expr` with normal resolutionNadrieril2-1/+20
2020-12-07Thread cx everywhere else imports are readNadrieril2-5/+13
2020-12-07Thread cx through normalizationNadrieril2-21/+23
2020-12-07Don't store internal structures of `dhall` in `serde_dhall`Nadrieril3-38/+86
2020-11-20release: serde_dhall version 0.9.0Nadrieril2-2/+2
2020-11-20release: dhall version 0.9.0Nadrieril1-1/+1
2020-11-20Expose binary parsing in the APINadrieril3-1/+63
2020-10-28release: serde_dhall version 0.8.0Nadrieril2-2/+2
2020-10-28release: dhall version 0.8.0Nadrieril1-1/+1
2020-10-28Fix clippy and formattingNadrieril2-2/+4
2020-10-28Move some testsNadrieril2-61/+59
2020-10-28Implement SimpleValue serializationNadrieril2-16/+61
2020-10-28Move table of type correspondancesNadrieril2-23/+26
2020-10-28Add missing documentationNadrieril3-10/+316
2020-10-28Make type annotation optional to allow serializing SimpleValueNadrieril8-157/+202
2020-10-28Implement serializationNadrieril11-72/+724
2020-10-28Prefer u64/i64 to usize/isizeNadrieril4-40/+14
2020-10-28Release serde_dhall version 0.7.5Nadrieril2-2/+2
2020-10-27Make `SimpleValue` deserializable within other typesNadrieril3-19/+145
Fixes https://github.com/Nadrieril/dhall-rust/issues/184
2020-10-25Release serde_dhall version 0.7.4Nadrieril2-2/+2
2020-10-25Release dhall version 0.7.4Nadrieril1-1/+1
2020-10-24Release serde_dhall version 0.7.3Nadrieril2-2/+2
2020-10-24Make SimpleValue public and add from_simple_value()Benjamin Levy3-6/+130
2020-10-24Release serde_dhall version 0.7.2Nadrieril2-2/+2
2020-10-24Release dhall version 0.7.2Nadrieril1-1/+1
2020-10-23Propagate reqwest feature to serde_dhallBasile Henry1-1/+5
2020-10-16Release serde_dhall version 0.7.1Nadrieril2-2/+2
2020-10-16feat: Add a `Display` impl for `SimpleType`Nadrieril1-0/+21
Fixes https://github.com/Nadrieril/dhall-rust/issues/179
2020-09-15Release serde_dhall version 0.7.0Nadrieril2-2/+2
2020-09-15Release dhall version 0.7.0Nadrieril1-1/+1
2020-08-05Release serde_dhall version 0.6.0Nadrieril2-2/+2
2020-08-05Release dhall version 0.6.0Nadrieril1-1/+1
2020-06-25fix: update version_numbers testNadrieril1-2/+2
2020-06-25doc: extract changelog to its own fileNadrieril1-4/+4