Generate a uuid v4 based document id when missing

This commit is contained in:
Clément Renault
2020-10-31 12:54:43 +01:00
parent ddbd336387
commit 9d47ee52b4
4 changed files with 140 additions and 14 deletions

10
Cargo.lock generated
View File

@ -1054,6 +1054,7 @@ dependencies = [
"structopt",
"tempfile",
"tokio",
"uuid",
"warp",
]
@ -2259,6 +2260,15 @@ version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05e42f7c18b8f902290b009cde6d651262f956c98bc51bca4cd1d511c9cd85c7"
[[package]]
name = "uuid"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fde2f6a4bea1d6e007c4ad38c6839fa71cbb63b6dbf5b595aa38dc9b1093c11"
dependencies = [
"rand 0.7.3",
]
[[package]]
name = "version_check"
version = "0.1.5"