Skip to content

OpenBSD support #42

Closed
Closed
@Superpat

Description

I'd like to see OpenBSD support.

I tried compiling on OpenBSD-current, but it would not compile correctly. I'm open to trying to fix this myself, but I'll need guidance on the rust front.

Also this might be a simple fix, so I'm asking you first.

   Compiling tracing v0.1.40=======>     ] 27/32: ad_event, tracing-attributes
error[E0277]: the trait bound `DefaultSystem: system::System` is not satisfied
  --> src/editor/mod.rs:94:6
   |
94 | impl Editor<DefaultSystem> {
   |      ^^^^^^^^^^^^^^^^^^^^^ the trait `system::System` is not implemented for `DefaultSystem`
   |
help: this trait has no implementations, consider adding one
  --> src/system.rs:16:1
   |
16 | pub trait System: fmt::Debug {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `Editor`
  --> src/editor/mod.rs:58:8
   |
56 | pub struct Editor<S>
   |            ------ required by a bound in this struct
57 | where
58 |     S: System,
   |        ^^^^^^ required by this bound in `Editor`

error[E0277]: the trait bound `DefaultSystem: system::System` is not satisfied
   --> src/editor/mod.rs:101:10
    |
101 |     ) -> Self {
    |          ^^^^ the trait `system::System` is not implemented for `DefaultSystem`
    |
help: this trait has no implementations, consider adding one
   --> src/system.rs:16:1
    |
16  | pub trait System: fmt::Debug {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `Editor`
   --> src/editor/mod.rs:58:8
    |
56  | pub struct Editor<S>
    |            ------ required by a bound in this struct
57  | where
58  |     S: System,
    |        ^^^^^^ required by this bound in `Editor`

error[E0599]: the function or associated item `new_with_system` exists for struct `Editor<DefaultSystem>`, but its trait bounds were not satisfied
   --> src/editor/mod.rs:102:15
    |
56  | pub struct Editor<S>
    | -------------------- function or associated item `new_with_system` not found for this struct
...
102 |         Self::new_with_system(cfg, plumbing_rules, mode, log_buffer, De...
    |               ^^^^^^^^^^^^^^^ function or associated item cannot be called on `Editor<DefaultSystem>` due to unsatisfied trait bounds
    |
   ::: src/system.rs:67:1
    |
67  | pub struct DefaultSystem;
    | ------------------------ doesn't satisfy `DefaultSystem: system::System`
    |
note: if you're trying to build a new `Editor<DefaultSystem>`, consider using `Editor::<DefaultSystem>::new` which returns `Editor<DefaultSystem>`
   --> src/editor/mod.rs:96:5
    |
96  | /     pub fn new(
97  | |         cfg: Config,
98  | |         plumbing_rules: PlumbingRules,
99  | |         mode: EditorMode,
100 | |         log_buffer: LogBuffer,
101 | |     ) -> Self {
    | |_____________^
note: trait bound `DefaultSystem: system::System` was not satisfied
   --> src/editor/mod.rs:108:8
    |
106 | impl<S> Editor<S>
    |         ---------
107 | where
108 |     S: System,
    |        ^^^^^^ unsatisfied trait bound introduced here
note: the trait `system::System` must be implemented
   --> src/system.rs:16:1
    |
16  | pub trait System: fmt::Debug {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `DefaultSystem: system::System` is not satisfied
   --> src/editor/mod.rs:102:9
    |
102 |         Self::new_with_system(cfg, plumbing_rules, mode, log_buffer, De...
    |         ^^^^ the trait `system::System` is not implemented for `DefaultSystem`
    |
help: this trait has no implementations, consider adding one
   --> src/system.rs:16:1
    |
16  | pub trait System: fmt::Debug {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `Editor`
   --> src/editor/mod.rs:58:8
    |
56  | pub struct Editor<S>
    |            ------ required by a bound in this struct
57  | where
58  |     S: System,
    |        ^^^^^^ required by this bound in `Editor`

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `ad-editor` (lib) due to 4 previous errors

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions