Skip to content

Commit cc26ba7

Browse files
committed
fix CI try one
1 parent 26db1e7 commit cc26ba7

File tree

4 files changed

+280
-0
lines changed

4 files changed

+280
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
#![allow(
4+
dead_code,
5+
non_snake_case,
6+
non_camel_case_types,
7+
non_upper_case_globals
8+
)]
9+
#![cfg(target_os = "macos")]
10+
11+
#[macro_use]
12+
extern crate objc;
13+
#[allow(non_camel_case_types)]
14+
pub type id = *mut objc::runtime::Object;
15+
#[repr(transparent)]
16+
#[derive(Clone, Copy)]
17+
pub struct Baz(pub id);
18+
impl std::ops::Deref for Baz {
19+
type Target = objc::runtime::Object;
20+
fn deref(&self) -> &Self::Target {
21+
unsafe { &*self.0 }
22+
}
23+
}
24+
unsafe impl objc::Message for Baz {}
25+
impl Baz {
26+
pub fn alloc() -> Self {
27+
Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
28+
}
29+
}
30+
impl IBaz for Baz {}
31+
pub trait IBaz: Sized + std::ops::Deref {
32+
unsafe fn initWithFirstNumber_(
33+
self,
34+
firstNumber: ::std::os::raw::c_int,
35+
) -> instancetype
36+
where
37+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
38+
{
39+
msg_send!(self, initWithFirstNumber: firstNumber)
40+
}
41+
}
42+
#[repr(transparent)]
43+
#[derive(Clone, Copy)]
44+
pub struct Foo(pub id);
45+
impl std::ops::Deref for Foo {
46+
type Target = objc::runtime::Object;
47+
fn deref(&self) -> &Self::Target {
48+
unsafe { &*self.0 }
49+
}
50+
}
51+
unsafe impl objc::Message for Foo {}
52+
impl Foo {
53+
pub fn alloc() -> Self {
54+
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
55+
}
56+
}
57+
impl IBaz for Foo {}
58+
impl IFoo for Foo {}
59+
pub trait IFoo: Sized + std::ops::Deref {
60+
unsafe fn initWithFirstNumber_(
61+
self,
62+
firstNumber: ::std::os::raw::c_int,
63+
) -> instancetype
64+
where
65+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
66+
{
67+
msg_send!(self, initWithFirstNumber: firstNumber)
68+
}
69+
}
70+
pub type instancetype = id;
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
#![allow(
4+
dead_code,
5+
non_snake_case,
6+
non_camel_case_types,
7+
non_upper_case_globals
8+
)]
9+
#![cfg(target_os = "macos")]
10+
11+
#[macro_use]
12+
extern crate objc;
13+
#[allow(non_camel_case_types)]
14+
pub type id = *mut objc::runtime::Object;
15+
#[repr(transparent)]
16+
#[derive(Clone, Copy)]
17+
pub struct Baz(pub id);
18+
impl std::ops::Deref for Baz {
19+
type Target = objc::runtime::Object;
20+
fn deref(&self) -> &Self::Target {
21+
unsafe { &*self.0 }
22+
}
23+
}
24+
unsafe impl objc::Message for Baz {}
25+
impl Baz {
26+
pub fn alloc() -> Self {
27+
Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
28+
}
29+
}
30+
impl IBaz for Baz {}
31+
pub trait IBaz: Sized + std::ops::Deref {
32+
unsafe fn initWithFirstNumber_(
33+
self,
34+
firstNumber: ::std::os::raw::c_int,
35+
) -> instancetype
36+
where
37+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
38+
{
39+
msg_send!(self, initWithFirstNumber: firstNumber)
40+
}
41+
}
42+
#[repr(transparent)]
43+
#[derive(Clone, Copy)]
44+
pub struct Foo(pub id);
45+
impl std::ops::Deref for Foo {
46+
type Target = objc::runtime::Object;
47+
fn deref(&self) -> &Self::Target {
48+
unsafe { &*self.0 }
49+
}
50+
}
51+
unsafe impl objc::Message for Foo {}
52+
impl Foo {
53+
pub fn alloc() -> Self {
54+
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
55+
}
56+
}
57+
impl IBaz for Foo {}
58+
impl IFoo for Foo {}
59+
pub trait IFoo: Sized + std::ops::Deref {
60+
unsafe fn initWithFirstNumber_(
61+
self,
62+
firstNumber: ::std::os::raw::c_int,
63+
) -> instancetype
64+
where
65+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
66+
{
67+
msg_send!(self, initWithFirstNumber: firstNumber)
68+
}
69+
}
70+
pub type instancetype = id;
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
#![allow(
4+
dead_code,
5+
non_snake_case,
6+
non_camel_case_types,
7+
non_upper_case_globals
8+
)]
9+
#![cfg(target_os = "macos")]
10+
11+
#[macro_use]
12+
extern crate objc;
13+
#[allow(non_camel_case_types)]
14+
pub type id = *mut objc::runtime::Object;
15+
#[repr(transparent)]
16+
#[derive(Clone, Copy)]
17+
pub struct Baz(pub id);
18+
impl std::ops::Deref for Baz {
19+
type Target = objc::runtime::Object;
20+
fn deref(&self) -> &Self::Target {
21+
unsafe { &*self.0 }
22+
}
23+
}
24+
unsafe impl objc::Message for Baz {}
25+
impl Baz {
26+
pub fn alloc() -> Self {
27+
Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
28+
}
29+
}
30+
impl IBaz for Baz {}
31+
pub trait IBaz: Sized + std::ops::Deref {
32+
unsafe fn initWithFirstNumber_(
33+
self,
34+
firstNumber: ::std::os::raw::c_int,
35+
) -> instancetype
36+
where
37+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
38+
{
39+
msg_send!(self, initWithFirstNumber: firstNumber)
40+
}
41+
}
42+
#[repr(transparent)]
43+
#[derive(Clone, Copy)]
44+
pub struct Foo(pub id);
45+
impl std::ops::Deref for Foo {
46+
type Target = objc::runtime::Object;
47+
fn deref(&self) -> &Self::Target {
48+
unsafe { &*self.0 }
49+
}
50+
}
51+
unsafe impl objc::Message for Foo {}
52+
impl Foo {
53+
pub fn alloc() -> Self {
54+
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
55+
}
56+
}
57+
impl IBaz for Foo {}
58+
impl IFoo for Foo {}
59+
pub trait IFoo: Sized + std::ops::Deref {
60+
unsafe fn initWithFirstNumber_(
61+
self,
62+
firstNumber: ::std::os::raw::c_int,
63+
) -> instancetype
64+
where
65+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
66+
{
67+
msg_send!(self, initWithFirstNumber: firstNumber)
68+
}
69+
}
70+
pub type instancetype = id;
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
#![allow(
4+
dead_code,
5+
non_snake_case,
6+
non_camel_case_types,
7+
non_upper_case_globals
8+
)]
9+
#![cfg(target_os = "macos")]
10+
11+
#[macro_use]
12+
extern crate objc;
13+
#[allow(non_camel_case_types)]
14+
pub type id = *mut objc::runtime::Object;
15+
#[repr(transparent)]
16+
#[derive(Clone, Copy)]
17+
pub struct Baz(pub id);
18+
impl std::ops::Deref for Baz {
19+
type Target = objc::runtime::Object;
20+
fn deref(&self) -> &Self::Target {
21+
unsafe { &*self.0 }
22+
}
23+
}
24+
unsafe impl objc::Message for Baz {}
25+
impl Baz {
26+
pub fn alloc() -> Self {
27+
Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
28+
}
29+
}
30+
impl IBaz for Baz {}
31+
pub trait IBaz: Sized + std::ops::Deref {
32+
unsafe fn initWithFirstNumber_(
33+
self,
34+
firstNumber: ::std::os::raw::c_int,
35+
) -> instancetype
36+
where
37+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
38+
{
39+
msg_send!(self, initWithFirstNumber: firstNumber)
40+
}
41+
}
42+
#[repr(transparent)]
43+
#[derive(Clone, Copy)]
44+
pub struct Foo(pub id);
45+
impl std::ops::Deref for Foo {
46+
type Target = objc::runtime::Object;
47+
fn deref(&self) -> &Self::Target {
48+
unsafe { &*self.0 }
49+
}
50+
}
51+
unsafe impl objc::Message for Foo {}
52+
impl Foo {
53+
pub fn alloc() -> Self {
54+
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
55+
}
56+
}
57+
impl IBaz for Foo {}
58+
impl IFoo for Foo {}
59+
pub trait IFoo: Sized + std::ops::Deref {
60+
unsafe fn initWithFirstNumber_(
61+
self,
62+
firstNumber: ::std::os::raw::c_int,
63+
) -> instancetype
64+
where
65+
<Self as std::ops::Deref>::Target: objc::Message + Sized,
66+
{
67+
msg_send!(self, initWithFirstNumber: firstNumber)
68+
}
69+
}
70+
pub type instancetype = id;

0 commit comments

Comments
 (0)