We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a523e3 commit 79e8a51Copy full SHA for 79e8a51
crates/macros/src/interface.rs
@@ -69,7 +69,7 @@ impl<'a> ParsedTrait<'a> {
69
self.functions.push(FnBuilder {
70
builder,
71
vis: opts.vis,
72
- r#abstract: false,
+ r#abstract: true,
73
});
74
}
75
crates/macros/src/lib.rs
@@ -6,7 +6,6 @@ mod fastcall;
6
mod function;
7
mod helpers;
8
mod impl_;
9
-mod interface;
10
mod module;
11
mod syn_ext;
12
mod zval;
@@ -203,23 +202,6 @@ pub fn php_class(args: TokenStream, input: TokenStream) -> TokenStream {
203
202
.into()
204
205
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
223
/// # `#[php_function]` Attribute
224
///
225
/// Used to annotate functions which should be exported to PHP. Note that this
src/lib.rs
@@ -47,8 +47,8 @@ pub mod prelude {
47
pub use crate::php_println;
48
pub use crate::types::ZendCallable;
49
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,
+ php_class, php_const, php_extern, php_function, php_impl, php_module, wrap_constant,
+ wrap_function, zend_fastcall, ZvalConvert,
52
};
53
54
@@ -62,6 +62,6 @@ pub const PHP_DEBUG: bool = cfg!(php_debug);
62
pub const PHP_ZTS: bool = cfg!(php_zts);
63
64
pub use ext_php_rs_derive::{
65
66
67
0 commit comments