Skip to content

Build error: core-graphics-0.3.2 #37

Description

@ws051682

Hi, everyone,

I'm trying to build it on a MacOS 12.3.1 with rust 1.61.0.
however, I received a lot of build errors. it looks many functions that being used is a private function.
just 3 examples.

error: type `CGSRegionObject` is private
  --> /Users/xxx.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.3.2/src/private.rs:50:25
   |
50 |                 region: region,
   |                         ^^^^^^ private type

error: type `CGSRegionObject` is private
  --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.3.2/src/private.rs:81:21
   |
81 |             assert!(ffi::CGSSetSurfaceShape(self.context_id,
   |                     ^^^^^^^^^^^^^^^^^^^^^^^ private type

error: type `CGSRegionObject` is private
  --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.3.2/src/private.rs:84:45
   |
84 | ...                   region.region) == 0)
   |                       ^^^^^^^^^^^^^ private type

error: could not compile `core-graphics` due to 19 previous errors

can anyone help on this topic?
thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions