Skip to content

Comments

refactor(cactus-sys): clean up build.rs for readability and upstream portability#4111

Closed
yujonglee wants to merge 2 commits intomainfrom
refactor/cactus-sys-cleanup
Closed

refactor(cactus-sys): clean up build.rs for readability and upstream portability#4111
yujonglee wants to merge 2 commits intomainfrom
refactor/cactus-sys-cleanup

Conversation

@yujonglee
Copy link
Contributor

Summary

  • Extract monolithic main() into focused helper functions (locate_cactus_source, set_rebuild_triggers, build_native_library, link_native_library, link_platform_dependencies, generate_bindings)
  • Use &Path instead of &PathBuf in all function signatures (idiomatic Rust)
  • Add CACTUS_SOURCE_DIR env var override via a char_workspace_fallback() function — the workspace-specific path is isolated and easy to delete when moving this crate to cactus-compute/cactus
  • Consolidate #[cfg]-gated platform blocks into top-level functions
  • Group #![allow(...)] attributes in src/lib.rs into a single directive

Made with Cursor

…portability

- Extract monolithic main() into focused helper functions
- Use &Path instead of &PathBuf in all function signatures
- Add CACTUS_SOURCE_DIR env var override via char_workspace_fallback() pattern,
  making the workspace-specific path easy to identify and remove when moving upstream
- Consolidate #[cfg]-gated platform logic into top-level functions
- Group allow attributes in src/lib.rs into a single directive

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit de65bd4
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6997bf257e8e120008e2a6cd

@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit de65bd4
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6997bf267c7024000875c09f

- Add build.rs guard in crates/data that panics on release profile
- Remove phantom hypr-data dep from plugins/listener
- Remove dead get_words_onboarding() and hypr-data dep from db-user
- Add deepgram.json, soniox.json fixtures for english_1 and korean_1

Co-authored-by: Cursor <cursoragent@cursor.com>
@yujonglee yujonglee closed this Feb 20, 2026
@yujonglee yujonglee deleted the refactor/cactus-sys-cleanup branch February 20, 2026 01:56
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant