rename feature

This commit is contained in:
Namekuji 2023-06-02 01:10:23 -04:00
parent 193c75a2bb
commit 3eb87c8f04
No known key found for this signature in database
GPG Key ID: B541BD6E646CABC7
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ path = "src/lib.rs"
[features]
default = []
convert = []
convert = ["model/noarray"]
[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }

View File

@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
legacy = []
noarray = []
[dependencies]
async-trait = "0.1.68"

View File

@ -20,11 +20,11 @@ pub struct JsonI32Vec(pub Vec<i32>);
impl_json_newtype!(JsonI32Vec);
cfg_if! {
if #[cfg(feature = "legacy")] {
pub type StringVec = Vec<String>;
pub type I32Vec = Vec<i32>;
} else {
if #[cfg(feature = "noarray")] {
pub type StringVec = JsonStringVec;
pub type I32Vec = JsonI32Vec;
} else {
pub type StringVec = Vec<String>;
pub type I32Vec = Vec<i32>;
}
}