mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Remove unused proptest dependency
This commit is contained in:
parent
9194508a0f
commit
07b90dec08
6 changed files with 90 additions and 227 deletions
|
@ -17,8 +17,6 @@ flate2 = "1.0.24"
|
|||
fst = "0.4.7"
|
||||
memmap2 = "0.5.7"
|
||||
milli = { path = "/Users/meilisearch/Documents/milli2/milli", default-features = false }
|
||||
proptest = { version = "1.0.0", optional = true }
|
||||
proptest-derive = { version = "0.3.0", optional = true }
|
||||
roaring = { version = "0.10.0", features = ["serde"] }
|
||||
serde = { version = "1.0.145", features = ["derive"] }
|
||||
serde-cs = "0.2.4"
|
||||
|
@ -33,8 +31,6 @@ uuid = { version = "1.1.2", features = ["serde", "v4"] }
|
|||
[dev-dependencies]
|
||||
insta = "1.19.1"
|
||||
meili-snap = { path = "../meili-snap" }
|
||||
proptest = "1.0.0"
|
||||
proptest-derive = "0.3.0"
|
||||
|
||||
[features]
|
||||
# all specialized tokenizations
|
||||
|
@ -48,4 +44,3 @@ hebrew = ["milli/hebrew"]
|
|||
japanese = ["milli/japanese"]
|
||||
# thai specialized tokenization
|
||||
thai = ["milli/thai"]
|
||||
test-traits = ["proptest", "proptest-derive"]
|
||||
|
|
|
@ -9,7 +9,6 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[cfg_attr(feature = "test-traits", derive(proptest_derive::Arbitrary))]
|
||||
pub struct ResponseError {
|
||||
#[serde(skip)]
|
||||
code: StatusCode,
|
||||
|
|
|
@ -9,10 +9,7 @@ use crate::error::{Code, ErrorCode};
|
|||
/// An index uid is composed of only ascii alphanumeric characters, - and _, between 1 and 400
|
||||
/// bytes long
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "test-traits", derive(proptest_derive::Arbitrary))]
|
||||
pub struct IndexUid(
|
||||
#[cfg_attr(feature = "test-traits", proptest(regex("[a-zA-Z0-9_-]{1,400}")))] String,
|
||||
);
|
||||
pub struct IndexUid(String);
|
||||
|
||||
impl IndexUid {
|
||||
pub fn new_unchecked(s: impl AsRef<str>) -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue