In preparation to upgrade to Rust version 1.63.0, address clippy
warning demanding that 'Eq' be derived when 'PartialEq' is.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Update a number of rust-vmm crates to align to the common version of
vm-memory.
Also update the tests to fix the build.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This allows the use of newer versions of vm-memory and matches with
other crates (e.g. vhost, vhost-user-backend, etc) who also have such a
relaxed vm-memory dependency.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
The versions of virtio-queue conflicts as both vhost-device and
vhost-user-backend are trying to fetch different versions of it. Fix it
by updating vhost-user-backend as well.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
If the user passes socket-path with whitespace before or after, like -l
" /tmp/vi2c.sock", then the Listener API fails and errors out. Fix this
by trimming the argument for whitespace at start or end.
Also add a test for the same.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
If the user passes device list with whitespace before or after, like -l
" 6:32", then " 6".parse::<u32>() fails. Fix this by trimming the
argument for whitespace at start or end.
Also add a test for the same.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Lets not use beta release anymore, since we have a stable version
available now.
The newer version doesn't support Yamls anymore, but rather another
feature "derive", which is quite easy to use actually. Lets migrate to
it.
Some of the tests can't be done anymore, drop them.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
For tests we can pass a non related vring to just make it run, hence no
need of making it optional. Always pass the vring.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
The i2c crate now uses log crate to publish error, info and warn
messages, but doesn't initialize a logger yet and these messages never
make it out.
Initialize the env_logger to see these messages.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
The workspace section in Rust documentation suggests adding new crates
in the top level directory itself instead of the src folder. Remove the
top level src folder.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>