Skip to content

Flatten fdb::Error so the FDB's schema errors are matched without fdb-sys - #422

Merged
simondsmart merged 1 commit into
developfrom
rust/flat-error
Nov 12, 2026
Merged

simondsmart merged 1 commit into
developfrom
rust/flat-error

Conversation

@Choochmeque

@Choochmeque Choochmeque commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

Gives fdb::Error one variant per FDB exception class the Rust bridge can observe, next to Eckit, Io, SizeOverflow and Other, so an application matches Error::SchemaError without a dependency on ecmwf-fdb-sys.

ecmwf-fdb-sys now lists SchemaError.h as its own exception source: the handler is generated from the source tree in a vendored build, from the installation in a system build and from a docs-headers symlink on docs.rs, and the sources are exported for downstream crates.

Same shape as metkit #370.

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

🌈🌦️📖🚧 Documentation FDB 🚧📖🌦️🌈
https://sites.ecmwf.int/docs/fdb/pull-requests/PR-422

@Choochmeque
Choochmeque marked this pull request as ready for review November 12, 2026 08:41
@Choochmeque Choochmeque added downstream-ci-not-needed Deliberately skip the downstream fan-out hpc-ci-not-needed Deliberately skip the HPC legs of CI labels Nov 12, 2026
@simondsmart
simondsmart merged commit a82ff3b into develop Nov 12, 2026
@simondsmart
simondsmart deleted the rust/flat-error branch November 12, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

downstream-ci-not-needed Deliberately skip the downstream fan-out hpc-ci-not-needed Deliberately skip the HPC legs of CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants