summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2024-02-01Merge pull request #510 from matthiasbeyer/prepare-release-0.14.x0.14.0release-0.14.xMatthias Beyer
Prepare release 0.14.x
2024-02-01Update version: 0.13.1 -> 0.14.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Add changelog for 0.14.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Merge pull request #511 from ↵Matthias Beyer
matthiasbeyer/fix-cargo-check-external-types-nightly-version Fix: cargo-check-external-types must use nightly 2023-10-10
2024-02-01Fix: cargo-check-external-types must use nightly 2023-10-10Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-12-15Merge pull request #507 from matthiasbeyer/check-external-typesMatthias Beyer
Check external types
2023-12-15Add CI check to enforce external types checkMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-12-15Add allowed external types configMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-12-07Merge pull request #503 from ↵Matthias Beyer
mehcode/dependabot/github_actions/actions/setup-python-5 Bump actions/setup-python from 4 to 5
2023-12-06Bump actions/setup-python from 4 to 5dependabot[bot]
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23Merge pull request #489 from ijackson/string-ser-unifyMatthias Beyer
deserialize: strings: Introduce string_serialize_via_display macro
2023-10-23Merge pull request #488 from ijackson/deser-unify-2Matthias Beyer
Unify deser impl (redux)
2023-10-23deserialize: strings: Introduce string_serialize_via_display macroIan Jackson
This removes a lot of duplicated code. It could be even shorter if we were to use the `paste` crate. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23impl Deserializer for Config: forward everything to cacheIan Jackson
This had open-coded copies of the impl for Value. Replace them with calls to the impl for Value. This reduces duplication. It would allow us to change the impl for Value. Use a macro for the many very-similar functions. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23Introduce an error test case for deserialising a whole structIan Jackson
This tests, in particular, that the error messdage is as expected including the right key and filename. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23Merge pull request #481 from ijackson/warningMatthias Beyer
Fix docs warnings
2023-10-23Fix a doc link by properly marking Vec<String>Ian Jackson
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-23Fix a doc link to with_list_parse_keyIan Jackson
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-23Merge pull request #465 from ijackson/nested-arrayMatthias Beyer
Fix nested arrays (by reworking array handling)
2023-10-23Merge pull request #480 from ijackson/asyncMatthias Beyer
Hide and deprecate AsyncConfigBuilder
2023-10-23Mark AsyncConfigBuilder deprecatedIan Jackson
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-23Delete docs for vestigial AsyncConfigBuilderIan Jackson
This struct seems to be a remnant of a previous approach to async. It cannot be used, and the documentation was lies. There isn't a `build` method. There are, in fact, no methods at all. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-23Merge pull request #485 from matthiasbeyer/add-dcoMatthias Beyer
Add DCO
2023-10-23ser: sequences: Test a more comprehensive round-tripIan Jackson
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23ser: sequences: Rework, fixing handling of nested arraysIan Jackson
Change the representation of our "current location". Previously it was a list of increasingly-long full paths, but excepting the putative final array index. Now we just record the individual elements. and assemble the whole path just before calling .set(). This saves a little memory on the whole since the entries in keys are now a bit shorter. It is much less confusing. (There are perhaps still further opportunities to use Rust's type system to better advantage to eliminuate opportunities for bugs.) Arrays that appear other than at the top level are now handled correctly. This includes nested arrays, and arrays containing structs, etc. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23ser: sequences: Introduce SeqSerializer newtypeIan Jackson
We're going to want to do something more complicated. In particular, to handle nested arrays properly, we need to do some work at the start and end of each array. The `new` and (inherent) `end` methods of this newtype is where that work will be done. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23ser: sequences: CentraliseIan Jackson
Have all the various versions of sequences (arrays and various forms of tuple) all go via ser::SerializeSeq. This reduces some duplication. And, we're about to change the implementation. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2023-10-23Add DCOMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-23Merge pull request #483 from matthiasbeyer/update-msrvMatthias Beyer
Update MSRV: 1.66.0 -> 1.70.0
2023-10-23Update MSRV: 1.66.0 -> 1.70.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-22Merge pull request #479 from Elsoberanold/masterMatthias Beyer
docs: Example for conditionally loading sources
2023-10-22Added read pem files exampleElsoberanold
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Signed-off-by: Elsoberanold <42942305+Elsoberanold@users.noreply.github.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-18Merge pull request #477 from ↵Matthias Beyer
mehcode/dependabot/github_actions/actions/checkout-4.1.1 Bump actions/checkout from 4.1.0 to 4.1.1
2023-10-17Bump actions/checkout from 4.1.0 to 4.1.1dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-10-07Merge pull request #469 from polarathene/chore/common-parser-root-checkMatthias Beyer
chore: Use a common method in parsers to check root is a table
2023-10-07chore: Use a common method in parsers to check root is a tablepolarathene
Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2023-10-06Merge pull request #471 from matthiasbeyer/clippy-exact-toolchainsMatthias Beyer
Clippy exact toolchains
2023-10-06Fix clippy: Remove redundant closuresMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-06Fix clippy: Remove redundant closuresMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-06Fix clippy: Rewrite string buildingMatthias Beyer
Clippy complained about how we build the strings here, so rewrite it. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-06Fix clippy: Remove redundant closuresMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-10-06Fix: Run clippy with exact toolchainsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-09-28Merge pull request #462 from mehcode/dependabot/cargo/warp-eq-0.3.6Matthias Beyer
Update warp requirement from =0.3.5 to =0.3.6
2023-09-27Update warp requirement from =0.3.5 to =0.3.6dependabot[bot]
Updates the requirements on [warp](https://github.com/seanmonstar/warp) to permit the latest version. - [Release notes](https://github.com/seanmonstar/warp/releases) - [Changelog](https://github.com/seanmonstar/warp/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/warp/compare/v0.3.5...v0.3.6) --- updated-dependencies: - dependency-name: warp dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-26Merge pull request #460 from sunshowers/weakMatthias Beyer
Use weak features for preserve_order
2023-09-25Use weak features for preserve_orderRain
Currently, `preserve_order` causes the toml, serde_json and ron dependencies to be enabled. This can be avoided by using cargo's support for [weak features]. [weak features]: https://rust-lang.github.io/rfcs/3143-cargo-weak-namespaced-features.html Weak features were stabilized in Rust 1.60 so there are no MSRV concerns. I think this probably is a breaking change since it's possible some downstream users weren't enabling support explicitly. Signed-off-by: Rain <rain@sunshowers.io>
2023-09-23Merge pull request #459 from ↵Matthias Beyer
mehcode/dependabot/github_actions/actions/checkout-4.1.0 Bump actions/checkout from 4.0.0 to 4.1.0
2023-09-23Merge pull request #458 from matthiasbeyer/update-msrvMatthias Beyer
Update MSRV in cron job
2023-09-22Bump actions/checkout from 4.0.0 to 4.1.0dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22Update MSRV in cron jobMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>