Repository navigation
refactor(api)!: move the research readers to rvt::research behind the unstable-research feature (#873) - #890
Merged
Merged
Conversation
… unstable-research feature (#873) The crate's stable API is now 27 modules (reading and identity, typed elements and the element walk, export, the writer). The other 67, the partition, native and element-record readers behind the format findings and the Phase 1 contract stubs, are declared under src/research.rs with #[path] so no file moves, and are public only with `unstable-research`. Crate-internal paths are unchanged through pub(crate) aliases at the root. Probes, tests and benches get the feature from a self dev-dependency; `cargo build`, `cargo install` and the published crate do not. CI checks the default-features build with `unnameable_types` denied, so no stable item can hand out a research type, and checks that docs.rs marks the research module. RELEASE.md names what 1.0 keeps stable (S1).
DrunkOnJava
marked this pull request as ready for review
October 23, 2026 11:43
Owner
Author
|
Evidence so far, on e44eea6 (the commits after it touch CI only):
|
3 of 5 tasks
This was referenced Oct 23, 2026
Merged
DrunkOnJava
added a commit
to puzzbobb/rvt-rs
that referenced
this pull request
Oct 23, 2026
…a stable elements::parameters::saved_parameters_lossy DrunkOnJava#890 moved the research readers behind unstable-research, and CI builds the library and its CLIs without the feature (cargo check --lib --bins), so a CLI or rvt-py cannot call research::native_element_parameters. The stable function wraps it and returns an opaque SavedParameters whose only method gives an element's JSON entries, the shape the schema and the Python stubs already describe; a file whose parameters cannot be read gives none and a saved-parameters-unread warning, as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Splits the crate's public API into a stable core and an opt-in research tree, the first half of #873 (1.0 criteria S1). 27 modules stay public and are what 1.0 keeps stable; the other 67 move to
rvt::research, public only with the newunstable-researchfeature.RELEASE.mdnow names every surface 1.0 keeps stable and what each leaves out.Motivation
Part of #873. All 95 modules were public, research ones included, so a 1.0 tag would have frozen code that changes with every finding: in the 30 days to 2026-10-23, at least 22 commits removed or rewrote a public item in a research module. The maintainer chose this split on 2026-10-23: stable core = reading and identity, elements, export, and writing; research behind a feature; docs.rs shows research marked unstable. The CLIs, the Python package, the output formats and the viewer's wasm API are named stable too.
Changes
src/research.rs(new): declares the 67 research modules with#[path = "<module>.rs"], so no file moves, every module keeps its//!docs, and open PRs touching those files do not conflict.src/lib.rs: 27 stablepub mods,cli#[doc(hidden)],researchpublic only with the feature, andpub(crate) use research::{...}so everycrate::<module>path inside the crate is unchanged. The module overview lists all 27.RevitFileaccessors that return them (element_names,design_options,second_prologue_ids,partition_data_objects) arepubonly with the feature, overpub(crate)memoised_*methods that the crate's own readers call. The ElemTable linkers,arc_wall::decode_candidateandfrom_partition_arc_wallare feature-gated.EvidenceTierand the relation-domain registry the capability manifest reports moved intocapability, re-exported fromresearch::evidenceandresearch::relations.Cargo.toml: theunstable-researchfeature, and a path-only self dev-dependency that turns it on for probes, tests and benches only (stripped bycargo publish).fuzz/Cargo.tomlenables it for the two research fuzz targets.rvt::<module>torvt::research::<module>(script, then rustfmt). The shipped binaries, rvt-py, rvt-wasm and the benches needed no change.cargo doc -D warningsstays clean.cargo check --lib --binswith-D warnings -D unnameable_types(fails if a stable item hands out a research type), and a check that docs.rs marksrvt::researchas needing the feature.tools/check-local.shmirrors the first.RELEASE.md"What 1.0 keeps stable";docs/release-1.0-criteria.mdS1 to passed;CONTRIBUTING.mdsays where a new reader goes;CHANGELOG.mdhas the breaking entry with the migration.Testing
No unit tests (banned). The code is the same in both configurations; only visibility changes, so the evidence is the build matrix:
gh workflow run fuzz.yml --ref feat/873-stable-core(separate workspace)Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
Yes, for library users of research modules. Enable
unstable-researchand addresearch::to the path, e.g.rvt::partition_element_recordsbecomesrvt::research::partition_element_records. The gated accessors and functions need the feature.rvt::evidence::EvidenceTieris alsorvt::capability::EvidenceTier;relations::RelationDomain::for_edge_kindisrelations::domain_for_edge_kind. Nothing changes for the CLIs, the Python package or the viewer.Screenshots or output samples
N/A: no output change.