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:
Wolfgang Bumiller 2021-02-03 10:48:31 +01:00
parent 9ee0276f13
commit 223d7ed55c
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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.