-
Notifications
You must be signed in to change notification settings - Fork 42
uniform the form of dependent versions in Cargo.toml & reorganize the order of use
declarations
#56
uniform the form of dependent versions in Cargo.toml & reorganize the order of use
declarations
#56
Conversation
Use semver without any operator instead of other forms of dependents' version. Note: semver without any operator is equivalent to the caret form. Signed-off-by: Zizheng Bian <zizheng.bian@linux.alibaba.com>
uniform the order of `use` declarations by the order of std, other crates, and current crate. Signed-off-by: Zizheng Bian <zizheng.bian@linux.alibaba.com>
0ed2d60
to
b6bd14e
Compare
Codecov Report
@@ Coverage Diff @@
## main #56 +/- ##
=======================================
Coverage 90.20% 90.20%
=======================================
Files 23 23
Lines 3350 3350
=======================================
Hits 3022 3022
Misses 328 328
Continue to review full report at Codecov.
|
mod brand_string; | ||
mod common; | ||
mod transformer; | ||
pub mod cpu_leaf; |
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.
why do you put cpu_leaf here?
arc-swap = ">=0.4.8" | ||
libc = ">=0.2.39" | ||
nix = ">=0.15.0" | ||
arc-swap = "1.5.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.
we need to be careful to adjust the dependency version.
thiserror = "1" | ||
vmm-sys-util = ">=0.8.0" | ||
vmm-sys-util = "0.9.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.
This locks down vmm-sys-util to 0.9.x.
nix = ">=0.15.0" | ||
arc-swap = "1.5.0" | ||
libc = "0.2.0" | ||
nix = "0.23.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.
this locks nix to 0x.23.x.
@@ -12,4 +12,4 @@ readme = "README.md" | |||
[dependencies] | |||
thiserror = "1" | |||
vm-memory = { version = "0.7.0", features = ["backend-mmap"] } | |||
libc = "0.2.39" | |||
libc = "0.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.
This is inconsistent to "libc = "0.2.0"
We may need to work a rule for dependency
It seems that we need to discuss a set of specifications first |
any update on this? |
I haven't had time to do it |
I will close thie PR. |
commit 0ed2d60 (HEAD -> jason/better-crate-version, origin/jason/better-crate-version)
Author: Zizheng Bian zizheng.bian@linux.alibaba.com
Date: Fri Feb 18 19:24:52 2022 +0800
commit 399e133
Author: Zizheng Bian zizheng.bian@linux.alibaba.com
Date: Fri Feb 18 19:15:48 2022 +0800