Open kvark opened 2 years ago
I'd say a decent guideline is that if the type is used by other non-CoreGraphics APIs opaquely it's a good candidate for core-graphics-types.
Though I guess separating out the CGColorSpace type from the wrapper is a bit of a pain.
That being said, I have no objection to the whole thing being moved over if it makes life easier.
Would be good for https://github.com/gfx-rs/metal-rs/pull/296
@kvark Any chance you want to do a PR for this?
@wusyong This is another thing that should go into the next release.
I wonder if there is a guideline on what goes into the types crate and what doesn't. In https://github.com/gfx-rs/metal-rs/pull/221/, we use
CGColorSpaceRef
as opaque type, and it would be nice to avoid depending on the whole core-graphics crate there.