Bump uuid from 0.8.2 to 1.0.0 (#311)
* Bump uuid from 0.8.2 to 1.0.0 Bumps [uuid](https://github.com/uuid-rs/uuid) from 0.8.2 to 1.0.0. - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/0.8.2...1.0.0) --- updated-dependencies: - dependency-name: uuid dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * patch Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
This commit is contained in:
parent
831cc98c24
commit
89549b367b
6 changed files with 8 additions and 10 deletions
5
Cargo.lock
generated
5
Cargo.lock
generated
|
@ -2167,7 +2167,6 @@ dependencies = [
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
|
||||||
"webpki 0.21.4",
|
"webpki 0.21.4",
|
||||||
"webpki-roots 0.21.1",
|
"webpki-roots 0.21.1",
|
||||||
"whoami",
|
"whoami",
|
||||||
|
@ -2624,9 +2623,9 @@ checksum = "68b90931029ab9b034b300b797048cf23723400aa757e8a2bfb9d748102f9821"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "uuid"
|
name = "uuid"
|
||||||
version = "0.8.2"
|
version = "1.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
|
checksum = "8cfcd319456c4d6ea10087ed423473267e1a071f3bc0aa89f80d60997843c6f0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"getrandom",
|
"getrandom",
|
||||||
]
|
]
|
||||||
|
|
|
@ -28,7 +28,7 @@ log = "0.4"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
eyre = "0.6"
|
eyre = "0.6"
|
||||||
directories = "4"
|
directories = "4"
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
uuid = { version = "1.0", features = ["v4"] }
|
||||||
whoami = "1.1.2"
|
whoami = "1.1.2"
|
||||||
chrono-english = "0.1.4"
|
chrono-english = "0.1.4"
|
||||||
config = "0.13"
|
config = "0.13"
|
||||||
|
@ -40,7 +40,6 @@ itertools = "0.10.3"
|
||||||
shellexpand = "2"
|
shellexpand = "2"
|
||||||
sqlx = { version = "0.5", features = [
|
sqlx = { version = "0.5", features = [
|
||||||
"runtime-tokio-rustls",
|
"runtime-tokio-rustls",
|
||||||
"uuid",
|
|
||||||
"chrono",
|
"chrono",
|
||||||
"sqlite",
|
"sqlite",
|
||||||
] }
|
] }
|
||||||
|
|
|
@ -14,4 +14,4 @@ repository = "https://github.com/ellie/atuin"
|
||||||
rust-crypto = "^0.2"
|
rust-crypto = "^0.2"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
serde = { version = "1.0.126", features = ["derive"] }
|
serde = { version = "1.0.126", features = ["derive"] }
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
uuid = { version = "1.0", features = ["v4"] }
|
||||||
|
|
|
@ -13,7 +13,7 @@ pub fn hash_str(string: &str) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn uuid_v4() -> String {
|
pub fn uuid_v4() -> String {
|
||||||
Uuid::new_v4().to_simple().to_string()
|
Uuid::new_v4().as_simple().to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: more reliable, more tested
|
// TODO: more reliable, more tested
|
||||||
|
|
|
@ -14,7 +14,7 @@ atuin-common = { path = "../atuin-common", version = "0.8.1" }
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
eyre = "0.6"
|
eyre = "0.6"
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
uuid = { version = "1.0", features = ["v4"] }
|
||||||
whoami = "1.1.2"
|
whoami = "1.1.2"
|
||||||
config = "0.13"
|
config = "0.13"
|
||||||
serde = { version = "1.0.126", features = ["derive"] }
|
serde = { version = "1.0.126", features = ["derive"] }
|
||||||
|
@ -24,7 +24,7 @@ base64 = "0.13.0"
|
||||||
rand = "0.8.4"
|
rand = "0.8.4"
|
||||||
rust-crypto = "^0.2"
|
rust-crypto = "^0.2"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
sqlx = { version = "0.5", features = [ "runtime-tokio-rustls", "uuid", "chrono", "postgres" ] }
|
sqlx = { version = "0.5", features = [ "runtime-tokio-rustls", "chrono", "postgres" ] }
|
||||||
async-trait = "0.1.49"
|
async-trait = "0.1.49"
|
||||||
axum = "0.5"
|
axum = "0.5"
|
||||||
http = "0.2"
|
http = "0.2"
|
||||||
|
|
|
@ -82,7 +82,7 @@ pub async fn register(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let token = Uuid::new_v4().to_simple().to_string();
|
let token = Uuid::new_v4().as_simple().to_string();
|
||||||
|
|
||||||
let new_session = NewSession {
|
let new_session = NewSession {
|
||||||
user_id,
|
user_id,
|
||||||
|
|
Loading…
Reference in a new issue