mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
rename feature
This commit is contained in:
parent
ed8122ea8c
commit
a2e6c78f09
@ -10,7 +10,7 @@ path = "src/lib.rs"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
convert = []
|
convert = ["model/noarray"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
||||||
|
@ -6,7 +6,7 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
legacy = []
|
noarray = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-trait = "0.1.68"
|
async-trait = "0.1.68"
|
||||||
|
@ -20,11 +20,11 @@ pub struct JsonI32Vec(pub Vec<i32>);
|
|||||||
impl_json_newtype!(JsonI32Vec);
|
impl_json_newtype!(JsonI32Vec);
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(feature = "legacy")] {
|
if #[cfg(feature = "noarray")] {
|
||||||
pub type StringVec = Vec<String>;
|
|
||||||
pub type I32Vec = Vec<i32>;
|
|
||||||
} else {
|
|
||||||
pub type StringVec = JsonStringVec;
|
pub type StringVec = JsonStringVec;
|
||||||
pub type I32Vec = JsonI32Vec;
|
pub type I32Vec = JsonI32Vec;
|
||||||
|
} else {
|
||||||
|
pub type StringVec = Vec<String>;
|
||||||
|
pub type I32Vec = Vec<i32>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user