diff --git a/packages/backend/native-utils/crates/migration/Cargo.toml b/packages/backend/native-utils/crates/migration/Cargo.toml index 49accc9a20..dbfd41be69 100644 --- a/packages/backend/native-utils/crates/migration/Cargo.toml +++ b/packages/backend/native-utils/crates/migration/Cargo.toml @@ -10,7 +10,7 @@ path = "src/lib.rs" [features] default = [] -convert = [] +convert = ["model/noarray"] [dependencies] async-std = { version = "1", features = ["attributes", "tokio1"] } diff --git a/packages/backend/native-utils/crates/model/Cargo.toml b/packages/backend/native-utils/crates/model/Cargo.toml index a511e6e997..e9a3260c42 100644 --- a/packages/backend/native-utils/crates/model/Cargo.toml +++ b/packages/backend/native-utils/crates/model/Cargo.toml @@ -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" diff --git a/packages/backend/native-utils/crates/model/src/entity/newtype/mod.rs b/packages/backend/native-utils/crates/model/src/entity/newtype/mod.rs index bd43024416..45aa175409 100644 --- a/packages/backend/native-utils/crates/model/src/entity/newtype/mod.rs +++ b/packages/backend/native-utils/crates/model/src/entity/newtype/mod.rs @@ -20,11 +20,11 @@ pub struct JsonI32Vec(pub Vec); impl_json_newtype!(JsonI32Vec); cfg_if! { - if #[cfg(feature = "legacy")] { - pub type StringVec = Vec; - pub type I32Vec = Vec; - } else { + if #[cfg(feature = "noarray")] { pub type StringVec = JsonStringVec; pub type I32Vec = JsonI32Vec; + } else { + pub type StringVec = Vec; + pub type I32Vec = Vec; } }