Repository navigation
feat: give fensu-facts and fensu-native a deliberate Rust API and release them with Fensu - #133
Merged
Merged
Conversation
Deploying fensu with
|
| Latest commit: |
1aa7c07
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e06718a4.fensu.pages.dev |
| Branch Preview URL: | https://chore-publish-analysis-crate.fensu.pages.dev |
kvlonge
enabled auto-merge (squash)
November 14, 2026 08:31
kvlonge
disabled auto-merge
November 14, 2026 08:39
…ease them with Fensu
…ct internals, harden the consumer check
kvlonge
enabled auto-merge (squash)
November 14, 2026 09:12
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.
Why
SQLBuild needs Fensu's Python analysis and core rules from Rust (CHI-1353).
fensu-factsandfensu-native0.1.0 were published by hand from this branch's first commit, but that surface was never designed as a library: no clean constructor, internals public, bundled SQLite always pulled in, and a fresh project can't build them.Changes
fensu-native: rule functions and models at the crate root, rule codes inrules::constants, internalspub(crate).rusqlite,flate2andsha2are optional, enabled bypython.fensu-facts: rootProgramHandleandParseFailure, newProgramHandle::parse_source(source, major, minor). Modules shared with the workspace are#[doc(hidden)].fensu-factspinsget-size2 = "=0.10.1": later versions usecompact_str0.10, which breaksruff_python_ast0.0.4 in a fresh resolution. That also breaks 0.1.0.fensu-policy. The release metadata check, version guard and publish metadata step cover the new files.publish.ymlpublishesfensu-facts, thenfensu-native, on Rust 1.95.evaluate_core_ruleswithdefault-features = false. It fails if Python, SQLite or compression crates appear.Verification
cargo test -p fensu-facts -p fensu-native -p fensu-cli, release metadata tests, and focused Python tests loadingfensu._native.