mirror of
https://git.proxmox.com/git/proxmox
synced 2026-01-26 05:53:10 +00:00
api-macro: let tests depend on api-macro
the updater tests require both the trait and the proc macros to be visible, running tests with `--all-features` prevents them from being imported from two separate locations as their names are the same, so let's always include the macro versions in test cases by depending on the `api-macro` feature in tests in the api-macro crate Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
9ee0276f13
commit
223d7ed55c
@ -19,7 +19,7 @@ syn = { version = "1.0", features = [ "full", "visit-mut" ] }
|
||||
|
||||
[dev-dependencies]
|
||||
futures = "0.3"
|
||||
proxmox = { version = "0.10.0", path = "../proxmox", features = [ "test-harness" ] }
|
||||
proxmox = { version = "0.10.1", path = "../proxmox", features = [ "test-harness", "api-macro" ] }
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
serde_json = "1.0"
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::Value;
|
||||
|
||||
use proxmox::api::schema::Updater;
|
||||
use proxmox_api_macro::{api, Updatable, Updater};
|
||||
use proxmox::api::api;
|
||||
use proxmox::api::schema::{Updatable, Updater};
|
||||
|
||||
#[api]
|
||||
/// An example of a simple struct type.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user