mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 14:51:31 -07:00
make sqlite compat
This commit is contained in:
parent
128a354b83
commit
968943c7c0
2 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@ edition = "2021"
|
|||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[features]
|
||||
default = ["compat"]
|
||||
compat = ["sea-orm/postgres-array"]
|
||||
default = ["legacy"]
|
||||
legacy = ["sea-orm/postgres-array"]
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.68"
|
||||
|
|
|
@ -16,7 +16,7 @@ pub struct JsonStringVec(pub Vec<String>);
|
|||
impl_json_newtype!(JsonStringVec);
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "compat")] {
|
||||
if #[cfg(feature = "legacy")] {
|
||||
pub type StringVec = Vec<String>;
|
||||
} else {
|
||||
pub type StringVec = JsonStringVec;
|
||||
|
|
Loading…
Reference in a new issue