Skip to content

Commit e38c821

Browse files
committed
chore: (Temporaly) Delete proc_macro interface
1 parent 0a523e3 commit e38c821

File tree

4 files changed

+5
-24
lines changed

4 files changed

+5
-24
lines changed

crates/macros/src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl<'a> ParsedTrait<'a> {
6969
self.functions.push(FnBuilder {
7070
builder,
7171
vis: opts.vis,
72-
r#abstract: false,
72+
r#abstract: true,
7373
});
7474
}
7575
}

crates/macros/src/lib.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ mod fastcall;
66
mod function;
77
mod helpers;
88
mod impl_;
9-
mod interface;
109
mod module;
1110
mod syn_ext;
1211
mod zval;
@@ -203,23 +202,6 @@ pub fn php_class(args: TokenStream, input: TokenStream) -> TokenStream {
203202
.into()
204203
}
205204

206-
///
207-
/// Declare trait as php interface class entry
208-
/// ```rust,no_run,ignore
209-
/// #[php_interface]
210-
/// trait SomeInterface {
211-
///
212-
/// }
213-
/// ```
214-
#[proc_macro_attribute]
215-
pub fn php_interface(args: TokenStream, input: TokenStream) -> TokenStream {
216-
let input = parse_macro_input!(input as ItemTrait);
217-
218-
interface::parser(args.into(), input)
219-
.unwrap_or_else(|e| e.to_compile_error())
220-
.into()
221-
}
222-
223205
/// # `#[php_function]` Attribute
224206
///
225207
/// Used to annotate functions which should be exported to PHP. Note that this

src/builders/class.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ impl InterfaceBuilder {
442442

443443
pub fn builder(mut self) -> ClassBuilder {
444444
self.class_builder = self.class_builder.flags(ClassFlags::Interface);
445-
dbg!(self.class_builder.ce.ce_flags);
446445
self.class_builder
447446
}
448447
}

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ pub mod prelude {
4747
pub use crate::php_println;
4848
pub use crate::types::ZendCallable;
4949
pub use crate::{
50-
php_class, php_const, php_extern, php_function, php_impl, php_interface, php_module,
51-
wrap_constant, wrap_function, zend_fastcall, ZvalConvert,
50+
php_class, php_const, php_extern, php_function, php_impl, php_module, wrap_constant,
51+
wrap_function, zend_fastcall, ZvalConvert,
5252
};
5353
}
5454

@@ -62,6 +62,6 @@ pub const PHP_DEBUG: bool = cfg!(php_debug);
6262
pub const PHP_ZTS: bool = cfg!(php_zts);
6363

6464
pub use ext_php_rs_derive::{
65-
php_class, php_const, php_extern, php_function, php_impl, php_interface, php_module,
66-
wrap_constant, wrap_function, zend_fastcall, ZvalConvert,
65+
php_class, php_const, php_extern, php_function, php_impl, php_module, wrap_constant,
66+
wrap_function, zend_fastcall, ZvalConvert,
6767
};

0 commit comments

Comments
 (0)