Skip to content

Commit 1421a5c

Browse files
committed
Update objc2 to v0.3.0-beta.5
1 parent c8194e5 commit 1421a5c

File tree

15 files changed

+23
-27
lines changed

15 files changed

+23
-27
lines changed

cocoa-foundation/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ license = "MIT OR Apache-2.0"
1212
default-target = "x86_64-apple-darwin"
1313

1414
[dependencies]
15-
block = { version = "=0.2.0-alpha.7", package = "block2" }
15+
block = { version = "=0.2.0-alpha.8", package = "block2" }
1616
bitflags = "1.0"
1717
libc = "0.2"
1818
core-foundation = { path = "../core-foundation", version = "0.9" }
1919
core-graphics-types = { path = "../core-graphics-types", version = "0.1" }
20-
objc2 = { version = "=0.3.0-beta.4" }
21-
objc2-encode = { version = "=2.0.0-pre.3" }
20+
objc2 = "=0.3.0-beta.5"

cocoa-foundation/src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ extern crate bitflags;
1515
extern crate core_foundation;
1616
extern crate core_graphics_types;
1717
extern crate libc;
18-
pub extern crate objc2_encode;
1918
#[macro_use]
20-
extern crate objc2;
21-
22-
pub use objc2_encode as __objc2_encode;
19+
pub extern crate objc2;
2320

2421
#[macro_export]
2522
macro_rules! impl_Encode {
2623
($t:ty, $delegation:ty) => {
27-
unsafe impl $crate::__objc2_encode::Encode for $t {
28-
const ENCODING: $crate::__objc2_encode::Encoding = <$delegation>::ENCODING;
24+
unsafe impl $crate::objc2::encode::Encode for $t {
25+
const ENCODING: $crate::objc2::encode::Encoding = <$delegation>::ENCODING;
2926
}
3027
};
3128
}

cocoa/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ license = "MIT OR Apache-2.0"
1212
default-target = "x86_64-apple-darwin"
1313

1414
[dependencies]
15-
block = { version = "=0.2.0-alpha.7", package = "block2" }
15+
block = { version = "=0.2.0-alpha.8", package = "block2" }
1616
bitflags = "1.0"
1717
libc = "0.2"
1818
cocoa-foundation = { path = "../cocoa-foundation", version = "0.1" }
1919
core-foundation = { path = "../core-foundation", version = "0.9" }
2020
core-graphics = { path = "../core-graphics", version = "0.23" }
2121
foreign-types = "0.5"
22-
objc2 = { version = "=0.3.0-beta.4" }
22+
objc2 = "=0.3.0-beta.5"

core-foundation-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["The Servo Project Developers"]
88
license = "MIT OR Apache-2.0"
99

1010
[dependencies]
11-
objc2-encode = { version = "=2.0.0-pre.3" }
11+
objc2 = "=0.3.0-beta.5"
1212

1313
[features]
1414
mac_os_10_7_support = [] # backwards compatibility

core-foundation-sys/src/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ pub struct __CFArray(c_void);
3636
pub type CFArrayRef = *const __CFArray;
3737
pub type CFMutableArrayRef = *mut __CFArray;
3838

39-
unsafe impl ::objc2_encode::RefEncode for __CFArray {
40-
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
39+
unsafe impl ::objc2::encode::RefEncode for __CFArray {
40+
const ENCODING_REF: ::objc2::encode::Encoding = ::objc2::encode::Encoding::Object;
4141
}
4242

4343
extern "C" {

core-foundation-sys/src/attributed_string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pub struct __CFAttributedString(c_void);
1919
pub type CFAttributedStringRef = *const __CFAttributedString;
2020
pub type CFMutableAttributedStringRef = *mut __CFAttributedString;
2121

22-
unsafe impl ::objc2_encode::RefEncode for __CFAttributedString {
23-
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
22+
unsafe impl ::objc2::encode::RefEncode for __CFAttributedString {
23+
const ENCODING_REF: ::objc2::encode::Encoding = ::objc2::encode::Encoding::Object;
2424
}
2525

2626
extern "C" {

core-foundation-sys/src/dictionary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub struct __CFDictionary(c_void);
5151
pub type CFDictionaryRef = *const __CFDictionary;
5252
pub type CFMutableDictionaryRef = *mut __CFDictionary;
5353

54-
unsafe impl ::objc2_encode::RefEncode for __CFDictionary {
55-
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
54+
unsafe impl ::objc2::encode::RefEncode for __CFDictionary {
55+
const ENCODING_REF: ::objc2::encode::Encoding = ::objc2::encode::Encoding::Object;
5656
}
5757

5858
extern "C" {

core-foundation-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
feature(linkage)
1818
)] // back-compat requires weak linkage
1919

20-
extern crate objc2_encode;
20+
extern crate objc2;
2121

2222
// Link to CoreFoundation on any Apple device.
2323
//

core-foundation-sys/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ pub fn CFStringInitInlineBuffer(str: CFStringRef, buf: *mut CFStringInlineBuffer
206206
pub fn CFStringGetCharacterFromInlineBuffer(buf: *mut CFStringInlineBuffer, idx: CFIndex) -> UniChar;
207207
*/
208208

209-
unsafe impl ::objc2_encode::RefEncode for __CFString {
210-
const ENCODING_REF: ::objc2_encode::Encoding = ::objc2_encode::Encoding::Object;
209+
unsafe impl ::objc2::encode::RefEncode for __CFString {
210+
const ENCODING_REF: ::objc2::encode::Encoding = ::objc2::encode::Encoding::Object;
211211
}
212212

213213
extern "C" {

core-graphics-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
bitflags = "1.0"
1212
core-foundation = { path = "../core-foundation", version = "0.9" }
1313
libc = "0.2"
14-
objc2-encode = { version = "=2.0.0-pre.3" }
14+
objc2 = "=0.3.0-beta.5"
1515

1616
[package.metadata.docs.rs]
1717
default-target = "x86_64-apple-darwin"

core-graphics-types/src/geometry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use base::CGFloat;
1111
use core_foundation::base::TCFType;
1212
use core_foundation::dictionary::CFDictionary;
13-
use objc2_encode::{Encode, Encoding};
13+
use objc2::encode::{Encode, Encoding};
1414

1515
pub const CG_ZERO_POINT: CGPoint = CGPoint { x: 0.0, y: 0.0 };
1616

core-graphics-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010
extern crate core_foundation;
11-
extern crate objc2_encode;
11+
extern crate objc2;
1212

1313
pub mod base;
1414
pub mod geometry;

core-graphics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ core-foundation = { path = "../core-foundation", version = "0.9" }
1818
core-graphics-types = { path = "../core-graphics-types", version = "0.1" }
1919
foreign-types = "0.5.0"
2020
libc = "0.2"
21-
objc2-encode = { version = "=2.0.0-pre.3" }
21+
objc2 = "=0.3.0-beta.5"
2222

2323
[package.metadata.docs.rs]
2424
default-target = "x86_64-apple-darwin"

core-graphics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// except according to those terms.
99

1010
extern crate libc;
11-
extern crate objc2_encode;
11+
extern crate objc2;
1212

1313
#[macro_use]
1414
extern crate core_foundation;

core-graphics/src/sys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::os::raw::c_void;
22

3-
use objc2_encode::{Encoding, RefEncode};
3+
use objc2::encode::{Encoding, RefEncode};
44

55
pub enum CGImage {}
66
pub type CGImageRef = *mut CGImage;

0 commit comments

Comments
 (0)