Please add FreeBSD support

Open
#91 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 12 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
rust
Domain
desktop

Research direction

The issue names src/window.rs and shows the cfg block that currently selects win vs x11. Mirror the linux arm so FreeBSD also uses crate::x11 as platform. Confirm whether the x11 module already builds on FreeBSD and whether any other target_os = "linux" gates in the crate need the same treatment. Done when the crate compiles with target_os freebsd using the x11 backend.

Written by the indexing model from the issue text.

Description

Here https://github.com/RustAudio/baseview/blob/master/src/window.rs#L12 FreeBSD support should be added.

@@ -11,6 +11,8 @@
 use crate::win as platform;
 #[cfg(target_os = "linux")]
 use crate::x11 as platform;
+#[cfg(target_os = "freebsd")]
+use crate::x11 as platform;
 
 pub trait WindowHandler {
     fn on_frame(&mut self);
Dominant language
Rust
Stars
387
Forks
128
Avg merge
11d 18h
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/baseview

All issues in RustAudio/baseview

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.