Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提问: 应用端v11的支持程度 #2

Open
Itsusinn opened this issue May 3, 2022 · 5 comments
Open

提问: 应用端v11的支持程度 #2

Itsusinn opened this issue May 3, 2022 · 5 comments

Comments

@Itsusinn
Copy link
Contributor

Itsusinn commented May 3, 2022

最近使用walle-core作为应用端lib使用
发现walle-core对应用端v11支持并不完善?(event部分正常,action宏生成的代码调用时会报错)
做了以下修改
Itsusinn-Forks@e3f1017
不知是否符合您的料想

如果符合的话,我想完善相关的实现

主要是walle-v11 action

@abrahum
Copy link
Collaborator

abrahum commented May 3, 2022

是的,目前 v11 的应用端还处于不可用的状态。
Walle 的第一目的还是对 Onebot V12 协议的支持。
对于 v11 和 v12 无法通用部分的代码,我倾向于在 v11 定义额外的 trait impl 相应的代码。

From 约束的原意是对于 A 泛型为用户自定义的而非 StandardAction 时,该类型应涵盖 StandardAction 以满足 v12 协议的要求。

关于 v11 应用端的支持,目前还在考虑中,该 issue 将保持 open,期待您的意见。

@Itsusinn
Copy link
Contributor Author

Itsusinn commented May 3, 2022

我也赞成在 v11 定义额外的 trait
再于v11 impl 相应的代码
但是要怎么向v11用户隐藏 位于 https://github.com/abrahum/Walle-core/blob/042add1e8b250486dcf30fec5475e2029cc6fe94/src/app/bot.rs#L34-L38 的实现呢
是用cargo feature吗?

@abrahum
Copy link
Collaborator

abrahum commented May 3, 2022

使用 feature 或者把原 impl 也独立成一个 trait 吧。

@Itsusinn
Copy link
Contributor Author

Itsusinn commented May 3, 2022

请问您有qq或者telegram吗?

@abrahum
Copy link
Collaborator

abrahum commented May 3, 2022

来 onebot 开发者群:849850391

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants