-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
增加 Rust 桥接 && taro init 部分使用 Rust 改造 #14870
Conversation
@@ -0,0 +1,2 @@ | |||
tab_spaces = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust 官方建议的缩进风格是 4 个空格
crates/native_binding/Cargo.toml
Outdated
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
napi = { workspace = true, features = ["napi4", "tokio_rt"]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
常用的 features 可以改为在 workspace 设置?这样就不用每个成员包都设置了
packages/taro-cli/package.json
Outdated
@@ -56,8 +57,6 @@ | |||
"joi": "^17.6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLI 的 joi 依赖应该可以干掉了?
8de250d
to
fe101ab
Compare
fe101ab
to
0e3b559
Compare
Box::pin(fut) | ||
} | ||
|
||
pub fn create_dir_all<P: AsRef<std::path::Path>>(dir: P) -> BoxFuture<'static, Result<()>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AsRef
Box::pin(fut) | ||
} | ||
|
||
pub fn write<P: AsRef<std::path::Path>, D: AsRef<[u8]>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AsRef
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: