diff --git a/cidre/Cargo.toml b/cidre/Cargo.toml index 447ca3b6..0cf1d56b 100644 --- a/cidre/Cargo.toml +++ b/cidre/Cargo.toml @@ -94,7 +94,7 @@ cmio = ["cm"] cv = ["cf", "cg"] ci = ["cf", "ns"] cg = ["cf"] # optional io, dispatch, blocks -iio = ["cg"] +iio = ["cg", "blocks"] objc = ["dep:cidre-macros"] ns = ["objc"] nl = ["ns"] diff --git a/cidre/src/cg/image/animation.rs b/cidre/src/cg/image/animation.rs index acb7978c..fa6da17a 100644 --- a/cidre/src/cg/image/animation.rs +++ b/cidre/src/cg/image/animation.rs @@ -52,7 +52,6 @@ impl OptKey { } } -#[cfg(feature = "blocks")] #[doc(alias = "CGAnimateImageAtURLWithBlock")] #[inline] pub fn animate_image_at_url_with_block( @@ -63,7 +62,6 @@ pub fn animate_image_at_url_with_block( unsafe { CGAnimateImageAtURLWithBlock(url, options, block).result() } } -#[cfg(feature = "blocks")] #[doc(alias = "CGAnimateImageAtURLWithBlock")] #[inline] pub fn animate_image_at_url( @@ -75,7 +73,6 @@ pub fn animate_image_at_url( unsafe { CGAnimateImageAtURLWithBlock(url, options, &mut block).result() } } -#[cfg(feature = "blocks")] #[doc(alias = "CGAnimateImageDataWithBlock")] #[inline] pub fn animate_image_data_with_block( @@ -86,7 +83,6 @@ pub fn animate_image_data_with_block( unsafe { CGAnimateImageDataWithBlock(data, options, block).result() } } -#[cfg(feature = "blocks")] #[doc(alias = "CGAnimateImageDataWithBlock")] #[inline] pub fn animate_image_data(