-
Notifications
You must be signed in to change notification settings - Fork 1.9k
lib: cfl: upgrade to v0.7.1 #11795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lib: cfl: upgrade to v0.7.1 #11795
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # Repository Guidelines | ||
|
|
||
| ## Preferred Commands | ||
| - Configure with tests: `cmake -S . -B build -DCFL_TESTS=On` | ||
| - Build: `cmake --build build -j8` | ||
| - Run all tests: `ctest --test-dir build --output-on-failure` | ||
| - Run a focused test: `ctest --test-dir build -R <name> --output-on-failure` | ||
| - Check staged or local patches for whitespace before closing a change: | ||
| `git diff --check` | ||
|
|
||
| ## Project Structure & Module Organization | ||
| CFL is a small C library built with CMake. | ||
|
|
||
| - `include/cfl/`: public CFL headers. | ||
| - `src/`: library implementation files. | ||
| - `tests/`: acutest-based unit tests. | ||
| - `lib/xxhash/`: bundled xxHash dependency. | ||
| - `cmake/`: project CMake helpers. | ||
|
|
||
| Keep changes scoped to the affected module. Put public declarations in | ||
| `include/cfl/`, implementation in `src/`, and matching unit coverage in | ||
| `tests/` when behavior changes. | ||
|
|
||
| ## Build, Test, and Development Commands | ||
| - `cmake -S . -B build -DCFL_TESTS=On`: configure the project with tests. | ||
| - `cmake --build build -j8`: compile the static library and tests. | ||
| - `ctest --test-dir build --output-on-failure`: run the enabled test suite. | ||
| - `ctest --test-dir build -R cfl-test-<name> --output-on-failure`: run a | ||
| focused unit test. | ||
|
|
||
| Prefer targeted test runs while iterating, then run the full enabled suite | ||
| before closing changes that touch shared code or public APIs. | ||
|
|
||
| ## Coding Style & Naming Conventions | ||
| - Follow the existing Apache-style C conventions used in this repository. | ||
| - Use 4-space indentation and keep lines readable; avoid unnecessary wrapping. | ||
| - Always use braces for `if/else/while/do` blocks. | ||
| - Put function opening braces on the next line: | ||
| `int fn(void)\n{ ... }` | ||
| - Declare variables at the start of functions, not mid-block. | ||
| - Prefer descriptive `snake_case` names with the `cfl_` prefix for public APIs. | ||
| - Use `CFL_TRUE` and `CFL_FALSE` for CFL boolean-style return values. | ||
| - Use `/* ... */` comments, and add comments only where they clarify non-obvious | ||
| behavior. | ||
| - Keep public headers self-contained by including the standard headers they need. | ||
|
|
||
| ## Testing Guidelines | ||
| - Add or update acutest unit coverage for behavior changes. | ||
| - Keep tests close to the affected module and name test binaries through | ||
| `tests/CMakeLists.txt`. | ||
| - Validate both success and failure paths for parsers, containers, allocation | ||
| handling, and boundary conditions. | ||
| - Run broader coverage when changing shared headers, CMake wiring, memory | ||
| ownership, or common data structures. | ||
| - If a relevant test cannot be run, report the exact blocker in the final | ||
| response. | ||
|
|
||
| ## Commit & Pull Request Guidelines | ||
| - Follow observed local history style: | ||
| `component: short imperative description` | ||
| Examples: `sds: do not export internal sds_alloc function`, | ||
| `build: bump to v0.6.2`, `atomic: add atomic operations API`. | ||
| - Keep each commit scoped to one component or interface. | ||
| - Keep subject/body lines concise; use a body when the reason or scope is not | ||
| obvious from the subject. | ||
| - Do not mix unrelated code and documentation updates in one commit unless the | ||
| user explicitly asks for a combined commit. | ||
| - Do not rewrite history, amend commits, create remote branches, or open pull | ||
| requests unless explicitly requested. | ||
|
|
||
| ## Agent Action Limits | ||
| - Do not modify repositories or files outside this project unless the user | ||
| explicitly asks. | ||
| - Do not revert user changes outside the requested scope. | ||
| - Preserve unrelated untracked or modified files in the worktree. | ||
| - Prefer minimal patches that avoid unrelated formatting or refactoring churn. |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
What is the latest version of the cfl library (C Floppy library)?💡 Result:
The “C Floppy library” (cfl) appears to refer to the fluent/cfl C-flavored library. Its latest released version is v0.6.1 (marked “Latest” and dated May 22, 2025 on the repository page). [1] Note: there are other unrelated software projects abbreviated “cfl” (e.g., “Causal Feature Learning”, “Compressed File Library”, etc.), so the name is ambiguous; the fluent/cfl repository is the only one in the sources explicitly describing “c:\ floppy” as “CFL”. [2]
Citations:
Update PR title and description or adjust version numbers for consistency.
The version configured in the code (0.7.1) does not match the PR title and description, which state "upgrade to v0.7.0." The computed version string will be "0.7.1", which flows through to package naming and release artifacts. Either update
CFL_VERSION_PATCHto0(to match the stated v0.7.0), or update the PR title/description to "v0.7.1" for consistency.Note: The upstream cfl library's latest released version is v0.6.1; the 0.7.x version does not yet have an official release.
🤖 Prompt for AI Agents