chore(deps): bump vm-memory and criterion versions#223
chore(deps): bump vm-memory and criterion versions#223theoparis wants to merge 1 commit intorust-vmm:mainfrom
Conversation
| //! boot protocol. | ||
|
|
||
| use vm_memory::{Bytes, GuestMemory}; | ||
| use vm_memory::{Bytes, GuestMemory, GuestMemoryBackend}; |
There was a problem hiding this comment.
Wasn't this trait introduced in vm-memory 0.18.0? How does this work with the lower versions of vm-memory that are still marked as compatible?
There was a problem hiding this comment.
Yeah, we'll need to bump the vm-memory version to >=0.18 if we start explicitly depending on the new traits
Cargo.toml
Outdated
|
|
||
| [dependencies] | ||
| vm-memory = ">=0.16.0, <=0.17.1" | ||
| vm-memory = { version = ">=0.16.0, <=0.18.0", default-features = false } |
There was a problem hiding this comment.
| vm-memory = { version = ">=0.16.0, <=0.18.0", default-features = false } | |
| vm-memory = { version = ">=0.16.0, <0.19", default-features = false } |
Otherwise, when 0.18.1 comes out, it won't be considered compatible, even though it won't have breaking changes.
There was a problem hiding this comment.
I think neither makes sense. The code was just adjusted and it can't work with version older than 0.18 -- that's why you adjusted it! Just run cargo update --precise 0.16.0 vm-memory and build. It doesn't work.
| vm-memory = { version = ">=0.16.0, <=0.18.0", default-features = false } | |
| vm-memory = { version = "0.18.0", default-features = false } |
More generally: Please, please, please stop doing this semver incompatible version range dance, particularly if you aren't even testing with it. Somehow this seems to be prevalent for the vm-memory dependency and it's a major source of pain to debug cases where different parts of the dependency tree pull in different versions of the crate, causing trait mismatches etc.
If, somehow, you really need this compatibility range, then please make sure to test it.
There was a problem hiding this comment.
Sorry, I skipped over the other comment that already mentions something similar. Anyway, would be good to move this forward in a timely manner, as libkrun changes are also blocked on this bump.
0d6d1a8 to
9eed607
Compare
Bump maximum vm-memory version to 0.18.0, and disable default features that depend on rawfd. Signed-off-by: Theo Paris <theo@theoparis.com>
9eed607 to
1b200f4
Compare
| fn write_bootparams<M>(params: &BootParams, guest_memory: &M) -> Result<()> | ||
| where | ||
| M: GuestMemory, | ||
| M: GuestMemory + GuestMemoryBackend, |
There was a problem hiding this comment.
Here and everywhere: I think GuestMemory has been renamed to GuestMemoryBackend and you can stick to only the latter to keep things minimal. See rust-vmm/vm-memory#362.
Summary of the PR
Bumped maximum vm-memory version to 0.18.0.
Also bumped criterion to 0.8.1.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafecode is properly documented.