mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Update dependencies
This commit is contained in:
parent
ff17549b8b
commit
6dbc2f949c
6 changed files with 117 additions and 158 deletions
|
|
@ -4,10 +4,10 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
diesel = { version = "1.4.5", features = ["sqlite"] }
|
||||
diesel = { version = "1.4.8", features = ["sqlite"] }
|
||||
diesel_migrations = "1.4.0"
|
||||
chrono = "0.4.19"
|
||||
log = "0.4.14"
|
||||
rand = "0.7.3"
|
||||
thiserror = "1.0.23"
|
||||
uuid = { version = "0.8", features = ["v4"] }
|
||||
log = "0.4.16"
|
||||
rand = "0.8.5"
|
||||
thiserror = "1.0.31"
|
||||
uuid = { version = "1.0.0", features = ["v4"] }
|
||||
|
|
|
|||
|
|
@ -37,10 +37,7 @@ embed_migrations!();
|
|||
|
||||
/// Generate a random string suitable as an item ID.
|
||||
pub fn generate_id() -> String {
|
||||
let mut buffer = uuid::Uuid::encode_buffer();
|
||||
let id = uuid::Uuid::new_v4().to_simple().encode_lower(&mut buffer);
|
||||
|
||||
id.to_string()
|
||||
uuid::Uuid::new_v4().simple().to_string()
|
||||
}
|
||||
|
||||
/// Interface to a Musicus database.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue