Skip to content

Update Rust Plugin Usage Doc #129

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

Open
wre232114 opened this issue Jul 16, 2024 · 3 comments
Open

Update Rust Plugin Usage Doc #129

wre232114 opened this issue Jul 16, 2024 · 3 comments

Comments

@wre232114
Copy link
Member

since 1.3.0, rust plugins can be used the same as js plugins:

import farmPlugin from 'farm-plugin-xxx'; // import farm rust plugin

export default {
  plugins: [
    farmPlugin() // use rust plugin the same as js plugin
   ],
}
@wang-yi-bit64
Copy link
Contributor

从 1.3.0 开始,Rust 插件可以像 JS 插件一样使用:

import farmPlugin from 'farm-plugin-xxx'; // import farm rust plugin

export default {
plugins: [
farmPlugin() // use rust plugin the same as js plugin
],
}

所有的 rust plugin 都支持这样子使用么?

@wre232114
Copy link
Member Author

是的

@wang-yi-bit64
Copy link
Contributor

是的

放在 rust plugin 模块做统一说明还是放在 每个 rust plugin 单个说明? 那种形式更好?

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