summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2024-02-01Merge pull request #512 from matthiasbeyer/update-msrvHEADmasterMatthias Beyer
Update MSRV: 1.70.0 -> 1.75.0
2024-02-01Update MSRV: 1.70.0 -> 1.75.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Merge pull request #493 from matthiasbeyer/ci-optimizationMatthias Beyer
CI speed optimization
2024-02-01Execute tests on same toolchain as buildsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Remove matrix buildsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Merge pull request #478 from polarathene/chore/update-cargo-dependenciesMatthias Beyer
chore: Update dependencies (`Cargo.toml`)
2024-02-01Merge pull request #490 from ijackson/deser-string-unreachableMatthias Beyer
deserialize: strings: Introduce Unreachable type
2024-02-01Merge pull request #484 from matthiasbeyer/do-no-longer-ignore-cargolockMatthias Beyer
No longer ignore Cargo.lock
2024-02-01chore: Update dependencies (`Cargo.toml`)Brennan Kinney
Consistently omit patch version. Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2024-02-01deserialize: strings: Introduce Unreachable typeIan Jackson
This allows us to remove a lot of code that contains calls to unreachable! (ie, a runtime panic) with code that demonstrates, in a way that's checked by the compiler, that the call cannot happen. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2024-02-01No longer ignore Cargo.lockMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Run tests only with current stable toolchainMatthias Beyer
This saves a bit of execution time. There's no point in running MSRV and stable, because there shouldn't be a difference. So we opt for stable because it tends to be faster. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Revert "Use nextest as test runner"Matthias Beyer
The nextest runner does not help enough to be viable. Installing it takes more time than the runner saves, so go back to the normal test runner with this patch. This reverts commit 284de85f4e16f28caece29ae7ae3aa41b48afa54. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Move cache job after toolchain installationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Do not depend on "check" phase for testsMatthias Beyer
The test phase is the slowest, because it actually produces binaries for running tests. So do not depend on the "check" phase, so that the test phase starts as soon as possible, to speed up overall CI time. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Use nextest as test runnerMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Remove dedicated example checking, non-MSRV checkingMatthias Beyer
This is another attempt at increasing the CI speed. It does so by removin the dedicated example checking phase, by putting all checks in one phase (examples, tests) and run that phase only for MSRV. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Do not allow changing rust toolchain breaking our CIMatthias Beyer
Same as with the mutable "stable" being removed from our CI, we run beta toolchain CI stuff, but we should no longer allow a changing beta version break our CI "randomly". Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Do not depend on changing toolchain versionMatthias Beyer
If stable updates and introduces a new lint for example, that could break our CI "randomly". Thus, we do no longer depend on a mutable version of the toolchain, but on a fixed one (that now has to be updated regularly, of course). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Run rustfmt with MSRV toolchainMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Remove nightly from CIMatthias Beyer
We do not get any benefit from running CI with the nightly toolchain. We still run it with beta, so that should catch some errors if there are any. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Remove clippy from cargo-check call for examplesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Only run checks on examples with one rust toolchain versionMatthias Beyer
There's no point in running it with two versions, and MSRV should suffice. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Only run clippy with MSRV toolchainMatthias Beyer
The comment says it all. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-02-01Add caching to CI jobsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
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>