Skip to content

Exclude Linux backend on OHOS - #20

Open
FrankHan052176 wants to merge 1 commit into
rustdesk-org:masterfrom
FrankHan052176:ohos/exclude-linux-backend-on-ohos
Open

Exclude Linux backend on OHOS#20
FrankHan052176 wants to merge 1 commit into
rustdesk-org:masterfrom
FrankHan052176:ohos/exclude-linux-backend-on-ohos

Conversation

@FrankHan052176

@FrankHan052176 FrankHan052176 commented Jul 6, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • Bug Fixes
    • Improved platform detection so Linux-only features no longer appear on OHOS builds.
    • Tightened availability checks for several desktop features to better match supported platforms.
    • Kept behavior unchanged for standard Linux, Android, and iOS builds.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: da9ba318-7ab9-4e7b-8c04-f34038a8ab67

📥 Commits

Reviewing files that changed from the base of the PR and between 2e91a16 and f15c204.

📒 Files selected for processing (2)
  • Cargo.toml
  • src/lib.rs
🚧 Files skipped from review as they are similar to previous changes (2)
  • Cargo.toml
  • src/lib.rs

📝 Walkthrough

Walkthrough

Conditional compilation guards in Cargo.toml and src/lib.rs now exclude target_env = "ohos" from Linux-specific dependencies, modules, re-exports, and public functions.

Changes

OHOS cfg exclusion

Layer / File(s) Summary
Dependency scoping
Cargo.toml
The Linux dependency table now requires target_os = "linux" and not(target_env = "ohos").
Linux module and re-export gating
src/lib.rs
mod linux and Linux re-exports for display_size, listen, and simulate use the narrowed Linux condition.
Public function cfg guards
src/lib.rs
listen, simulate, display_size, and grab now exclude OHOS alongside Android and iOS; the Linux-only block after display_size uses the narrowed condition.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: excluding the Linux backend on OHOS.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@FrankHan052176
FrankHan052176 force-pushed the ohos/exclude-linux-backend-on-ohos branch from 2e91a16 to f15c204 Compare July 27, 2026 16:00
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