Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2021-05-08 | inject_types -> with_builtin_typessubstitutions | stuebinm | 2 | -13/+13 | |
at request of Nadrieril. | |||||
2021-05-02 | substitute_names -> inject_types | stuebinm | 2 | -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-01 | remove forgotten println | stuebinm | 1 | -1/+0 | |
2021-04-26 | substitutions: add test to serde.rs | stuebinm | 1 | -0/+21 | |
2021-04-10 | substitutions: add documentation | stuebinm | 1 | -0/+37 | |
2021-04-10 | add type substitutions to serde_dhall | stuebinm | 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 | |||||
2021-04-03 | release: serde_dhall version 0.10.1 | Nadrieril | 2 | -2/+2 | |
2021-04-03 | release: dhall_proc_macros version 0.5.1 | Nadrieril | 1 | -1/+1 | |
2021-04-03 | release: dhall version 0.10.1 | Nadrieril | 1 | -1/+1 | |
2021-03-27 | Remove a redundant semicolon in a test for good measure. | Ceri Storey | 1 | -2/+2 | |
2021-03-09 | fix: don't use `Option` to signal errors | Nadrieril | 1 | -24/+31 | |
2021-02-04 | release: serde_dhall version 0.10.0 | Nadrieril | 2 | -2/+2 | |
2021-02-04 | release: dhall version 0.10.0 | Nadrieril | 1 | -1/+1 | |
2021-01-25 | fixes #210 avoid possible conflicts by not using AsRef trait | Qeenon | 1 | -1/+1 | |
2020-12-18 | chore: convert doc links to intra-doc links | Nadrieril | 6 | -67/+52 | |
2020-12-08 | tests: add a test that fetches the remote prelude | Nadrieril | 1 | -1/+17 | |
It's too slow even in release mode. | |||||
2020-12-07 | Unify `skip_resolve_expr` with normal resolution | Nadrieril | 2 | -1/+20 | |
2020-12-07 | Thread cx everywhere else imports are read | Nadrieril | 2 | -5/+13 | |
2020-12-07 | Thread cx through normalization | Nadrieril | 2 | -21/+23 | |
2020-12-07 | Don't store internal structures of `dhall` in `serde_dhall` | Nadrieril | 3 | -38/+86 | |
2020-11-20 | release: serde_dhall version 0.9.0 | Nadrieril | 2 | -2/+2 | |
2020-11-20 | release: dhall version 0.9.0 | Nadrieril | 1 | -1/+1 | |
2020-11-20 | Expose binary parsing in the API | Nadrieril | 3 | -1/+63 | |
2020-10-28 | release: serde_dhall version 0.8.0 | Nadrieril | 2 | -2/+2 | |
2020-10-28 | release: dhall version 0.8.0 | Nadrieril | 1 | -1/+1 | |
2020-10-28 | Fix clippy and formatting | Nadrieril | 2 | -2/+4 | |
2020-10-28 | Move some tests | Nadrieril | 2 | -61/+59 | |
2020-10-28 | Implement SimpleValue serialization | Nadrieril | 2 | -16/+61 | |
2020-10-28 | Move table of type correspondances | Nadrieril | 2 | -23/+26 | |
2020-10-28 | Add missing documentation | Nadrieril | 3 | -10/+316 | |
2020-10-28 | Make type annotation optional to allow serializing SimpleValue | Nadrieril | 8 | -157/+202 | |
2020-10-28 | Implement serialization | Nadrieril | 11 | -72/+724 | |
2020-10-28 | Prefer u64/i64 to usize/isize | Nadrieril | 4 | -40/+14 | |
2020-10-28 | Release serde_dhall version 0.7.5 | Nadrieril | 2 | -2/+2 | |
2020-10-27 | Make `SimpleValue` deserializable within other types | Nadrieril | 3 | -19/+145 | |
Fixes https://github.com/Nadrieril/dhall-rust/issues/184 | |||||
2020-10-25 | Release serde_dhall version 0.7.4 | Nadrieril | 2 | -2/+2 | |
2020-10-25 | Release dhall version 0.7.4 | Nadrieril | 1 | -1/+1 | |
2020-10-24 | Release serde_dhall version 0.7.3 | Nadrieril | 2 | -2/+2 | |
2020-10-24 | Make SimpleValue public and add from_simple_value() | Benjamin Levy | 3 | -6/+130 | |
2020-10-24 | Release serde_dhall version 0.7.2 | Nadrieril | 2 | -2/+2 | |
2020-10-24 | Release dhall version 0.7.2 | Nadrieril | 1 | -1/+1 | |
2020-10-23 | Propagate reqwest feature to serde_dhall | Basile Henry | 1 | -1/+5 | |
2020-10-16 | Release serde_dhall version 0.7.1 | Nadrieril | 2 | -2/+2 | |
2020-10-16 | feat: Add a `Display` impl for `SimpleType` | Nadrieril | 1 | -0/+21 | |
Fixes https://github.com/Nadrieril/dhall-rust/issues/179 | |||||
2020-09-15 | Release serde_dhall version 0.7.0 | Nadrieril | 2 | -2/+2 | |
2020-09-15 | Release dhall version 0.7.0 | Nadrieril | 1 | -1/+1 | |
2020-08-05 | Release serde_dhall version 0.6.0 | Nadrieril | 2 | -2/+2 | |
2020-08-05 | Release dhall version 0.6.0 | Nadrieril | 1 | -1/+1 | |
2020-06-25 | fix: update version_numbers test | Nadrieril | 1 | -2/+2 | |
2020-06-25 | doc: extract changelog to its own file | Nadrieril | 1 | -4/+4 | |